Skip to content

Commit 2f3a95a

Browse files
Merge pull request #224072 from umagnus/correct-aks-disk-customer-managed-keys
correct azure-disk-customer-managed-keys
2 parents d78102c + 7e7c3d3 commit 2f3a95a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

articles/aks/azure-disk-customer-managed-keys.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ Use the DiskEncryptionSet and resource groups you created on the prior steps, an
6868

6969
```azurecli-interactive
7070
# Retrieve the DiskEncryptionSet value and set a variable
71-
$desIdentity=az disk-encryption-set show -n myDiskEncryptionSetName -g myResourceGroup --query "[identity.principalId]" -o tsv
71+
desIdentity=$(az disk-encryption-set show -n myDiskEncryptionSetName -g myResourceGroup --query "[identity.principalId]" -o tsv)
7272
7373
# Update security policy settings
7474
az keyvault set-policy -n myKeyVaultName -g myResourceGroup --object-id $desIdentity --key-permissions wrapkey unwrapkey get
@@ -83,7 +83,7 @@ Create a **new resource group** and AKS cluster, then use your key to encrypt th
8383
8484
```azurecli-interactive
8585
# Retrieve the DiskEncryptionSet value and set a variable
86-
$diskEncryptionSetId=az disk-encryption-set show -n mydiskEncryptionSetName -g myResourceGroup --query "[id]" -o tsv
86+
diskEncryptionSetId=$(az disk-encryption-set show -n mydiskEncryptionSetName -g myResourceGroup --query "[id]" -o tsv)
8787
8888
# Create a resource group for the AKS cluster
8989
az group create -n myResourceGroup -l myAzureRegionName

0 commit comments

Comments
 (0)