...
Code Block | ||
---|---|---|
| ||
# Login to Azure and configure CLI $> az login $> az account set --subscription My-Azure-Subscription $> az config set defaults.location=mygeolocation # Create a Resource Group to group our MettleCI-related resources $> az group create --name MettleCI # Create key vault $> az keyvault create \\n --name MyDataStageEnvironment \\n --resource-group MettleCI # Set a secret in the vault $> az keyvault secret set \\n --name "MyPassword" \\n --value "mysecretpassword" \\n --vault-name MettleCI # Create an Azure service principal called 'MettleCI' $> az ad sp create-for-rbac --name MettleCI |
Create a Key Vault
When your Key Vault ensure you attach an Access Policy which provides the Get and List permissions for Secrets.
...