Skip to content

Latest commit

 

History

History
42 lines (28 loc) · 1.03 KB

key-vault-python-qs-rg-kv-creation.md

File metadata and controls

42 lines (28 loc) · 1.03 KB
author ms.service ms.topic ms.date ms.author
msmbaldwin
key-vault
include
09/03/2020
msmbaldwin
  1. Use the az group create command to create a resource group:

    az group create --name KeyVault-PythonQS-rg --location eastus
    

    You can change "eastus" to a location nearer to you, if you prefer.

  2. Use az keyvault create to create the key vault:

    az keyvault create --name <your-unique-keyvault-name> --resource-group KeyVault-PythonQS-rg
    

    Replace <your-unique-keyvault-name> with a name that's unique across all of Azure. You typically use your personal or company name along with other numbers and identifiers.

  3. Create an environment variable that supplies the name of the Key Vault to the code:

    set KEY_VAULT_NAME=<your-unique-keyvault-name>
    export KEY_VAULT_NAME=<your-unique-keyvault-name>