set up azure key vault and secrets

Lorenzo Matthews 0 Reputation points
2023-09-01T16:40:32.6166667+00:00

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.
1,261 questions
{count} votes

2 answers

Sort by: Most helpful
  1. AirGordon 7,120 Reputation points
    2023-09-01T17:06:54.4166667+00:00

    This quickstart will show you how to do this in the Azure Portal : https://learn.microsoft.com/en-us/azure/key-vault/secrets/quick-create-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: https://learn.microsoft.com/en-us/azure/key-vault/secrets/quick-create-bicep?tabs=CLI

    0 comments No comments

  2. JamesTran-MSFT 36,606 Reputation points Microsoft Employee
    2023-09-05T18:46:57.3+00:00

    @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.


    Findings:

    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.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.