title: I have many B2B and B2C Azure Active Directory instances. How do I assign one to KeyVault?
body: <p>I used the following powershell commands to create an Azure Key Vault:</p>
  
  <pre><code>//https://docs.microsoft.com/en-us/azure/key-vault/key-vault-get-started
  
  Login-AzureRmAccount –Environment (Get-AzureRmEnvironment –Name AzureCloud)
  set-azureRMContext -SubscriptionId ( Get-AzureRmSubscription -SubscriptionName "Visual Studio Enterprise").SubscriptionId
  
  // Register-AzureRmResourceProvider -ProviderNamespace "Microsoft.KeyVault" (if error occurs in subscription)
  New-AzureRmResourceGroup –Name "VaVaultRG" –Location 'SouthCentralUS' 
  
  New-AzureRmKeyVault -VaultName "VaVault" -ResourceGroupName "VaVaultRG" -Location 'SouthCentralUS' 
  </code></pre>
  
  <p><a href="https://docs.microsoft.com/en-us/azure/key-vault/key-vault-get-started#a-idregisteraregister-an-application-with-azure-active-directory" rel="nofollow noreferrer">The instructions here</a> tell me how to link a web application to KeyVault. This leverages (both? ... either??) Azure AD B2C / B2B</p>
  
  <ul>
  <li>How can I make my associate my KeyVault with a specific directory? </li>
  </ul>