Skip to content

Step 5: Set Up the Key Vault and Store Secrets/Keys

Centered Image

Step 1: Create an Azure Key Vault

  1. Sign in to Azure Portal: Go to the Azure portal and sign in with your Azure account.
  2. Create a Key Vault:
  3. From the Azure portal menu, select Create a resource.
  4. In the Search box, type Key Vault and select Key Vault from the results.
  5. Click Create.
Centered Image
  • Fill in the required details:
    • Name: A unique name for your Key Vault.
    • Subscription: Select your Azure subscription.
    • Resource Group: Select an existing resource group or create a new one.
    • Location: Choose the Azure region.
  • Click Review + create and then Create.
Centered Image

Step 2: Store Secrets and Keys

  1. Add a Secret:
  2. Navigate to your Key Vault in the Azure portal.
  3. In the left-hand menu, select Secrets.
  4. Click + Generate/Import.
  5. Fill in the details:
    • Upload options: Select Manual.
    • Name: Enter a name for the secret (e.g., storage-account-key).
    • Value: Enter the value of the secret (e.g., your storage account key).
  6. Click Create.
Centered Image
  1. Add a Key:
  2. In the Key Vault menu, select Keys.
  3. Click + Generate/Import.
  4. Fill in the details:
    • Options: Select Generate.
    • Name: Enter a name for the key (e.g., encryption-key).
  5. Click Create.
Centered Image