Managing Secrets with Azure Key Vault
Requirements
Original task text was not present in the source file. Use the current lab objective to create and manage secrets with Azure Key Vault in a standard KKE format.
Note
This page was reconstructed from an empty source file to keep Level 3 documentation complete and consistent.
Prerequisites
- Azure CLI installed and authenticated.
- Existing resource group available.
- Sufficient permissions to create Key Vault and secrets.
Steps
RG=$(az group list --query "[?contains(name, 'kml')].name" --output tsv)
KV_NAME="nautilus-kv-30001"
LOCATION="eastus"
SECRET_NAME="app-password"
SECRET_VALUE='S3cureP@ssw0rd!'
az keyvault create \
--name "$KV_NAME" \
--resource-group "$RG" \
--location "$LOCATION"
az keyvault secret set \
--vault-name "$KV_NAME" \
--name "$SECRET_NAME" \
--value "$SECRET_VALUE"
az keyvault secret show \
--vault-name "$KV_NAME" \
--name "$SECRET_NAME" \
--query value -o tsv
Verification
- Verify vault exists:
az keyvault show --name "$KV_NAME" --resource-group "$RG" --query name -o tsv
- Verify secret exists:
az keyvault secret show --vault-name "$KV_NAME" --name "$SECRET_NAME" --query id -o tsv
- Verify secret value retrieval works.