set up azure key vault and secrets

Lorenzo Matthews 0 Reputation points

how do I set up azure key vault and secrets

Azure Key Vault
Azure Key Vault
An Azure service that is used to manage and protect cryptographic keys and other secrets used by cloud apps and services.
890 questions
{count} votes

2 answers

Sort by: Most helpful
  1. AirGordon 5,905 Reputation points

    This quickstart will show you how to do this in the Azure Portal :

    For a more robust method, I'd advocate for using Infrastructure as Code. This quickstart shows you how do create a Key Vault and secret with Bicep:

    0 comments No comments

  2. JamesTran-MSFT 32,796 Reputation points Microsoft Employee

    @Lorenzo Matthews

    Thank you for your post!

    I understand that you have a question on how to set up an Azure Key Vault and Secrets. To hopefully help point you in the right direction or resolve your issue, I'll share my findings below.


    As shared by AirGordon, you can follow the Quickstart: Set and retrieve a secret documentation to get you started.

    Note: Prior to deploying an Azure Key Vault, you'll need to make sure you have an active Azure subscription. For more info - Azure free account.

    For more info - Quickstart: Create a key vault using the Azure portal

    Create a vault:

    1. From the Azure portal menu, or from the Home page, select Create a resource.
    2. In the Search box, enter Key Vault.
    3. From the results list, choose Key Vault.
    4. On the Key Vault section, choose Create.
    5. On the Create key vault section provide the following information:
      • Name: A unique name is required. For this quickstart, we use Contoso-vault2.
        • Subscription: Choose a subscription.
          • Under Resource Group, choose Create new and enter a resource group name.
            • In the Location pull-down menu, choose a location.
              • Leave the other options to their defaults.
    6. Select Create.

    User's image

    Add a secret to your Key Vault:

    To add a secret to the vault, follow the steps:

    1. Navigate to your new key vault in the Azure portal
    2. On the Key Vault settings pages, select Secrets.
    3. Select on Generate/Import.
    4. On the Create a secret screen fill in the values.

    Once your secret has been successfully created, you can select it in your Vault's Secrets list.

    User's image

    If you're still having issues with creating a Key Vault and Secret, please let me know.

    Additional Links:

    I hope this helps!

    If you have any other questions, please let me know. Thank you for your time and patience throughout this issue.

    If the information helped address your question, please Accept the answer. This will help us and also improve searchability for others in the community who might be researching similar information.