Skip to content

Latest commit

 

History

History
52 lines (27 loc) · 2.44 KB

KEYVAULT.md

File metadata and controls

52 lines (27 loc) · 2.44 KB

Setting up Azure Key Vault

Setting up a new Azure Key Vault

For official documentation on creating an Azure Key Vault, see Quickstart: Create a key vault using the Azure portal.

Note

You only need to go through the following steps if you do not have an existing Azure Key Vault, or if you want to use a separate Azure Key Vault for this sample.

  1. Go to Azure Portal.

  2. In the portal menu, select Create a resource.

    The Create a resource menu item on the portal menu in the Azure Portal

  3. Search for Key Vault. Select Key Vault, then select Create.

  4. Fill in the required fields as appropriate for your Azure subscription, and select Next: Access policy.

  5. Select Add Access Policy.

  6. Change the Configure from template dropdown to Key, Secret, & Certificate Management.

  7. For Select principal, select the None selected. Enter your application ID from your app registration in the search box, then select your app registration. Select Select.

    A screenshot of the Add access policy page in the Azure portal

  8. Select Add, then select Review + create. Finally, select Create.

  9. Wait for the Azure Key Vault to finish deploying, then follow the steps in Adding a self-signed certificate.

Add your application to an existing Azure Key Vault

Note: you only need to go through the following steps if you have an existing Azure Key Vault you want to reuse for the current sample.

  1. Go to your existing Azure Key Vault in the Azure portal.

  2. Select Access policies under Settings. Select Add Access Policy.

  3. Change the Configure from template dropdown to Key, Secret, & Certificate Management.

  4. For Select principal, select the None selected. Enter your application ID from your app registration in the search box, then select your app registration. Select Select.

  5. Select Add to add the new access policy. Wait for your access policy to deploy.

Adding a self-signed certificate

  1. Go to the Key Vault in the Azure Portal.

  2. Select Certificates under Settings, then select Generate/Import.

  3. Provide values for Certificate Name and Subject. Leave all other fields at their defaults, then select Create.