Skip to content

Commit 919e3ba

Browse files
Merge pull request #120348 from chianw/main
Corrected command for Granting extension identity permissions to Storage account
2 parents c2194e5 + 8e685a2 commit 919e3ba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

articles/backup/azure-kubernetes-service-cluster-manage-backups.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ To stop the Backup Extension install operation, use the following command:
120120
To provide *Storage Account Contributor Permission* to the Extension Identity on storage account, run the following command:
121121

122122
```azurecli-interactive
123-
az role assignment create --assignee-object-id $(az k8s-extension show --name azure-aks-backup --cluster-name <aksclustername> --resource-group <aksclusterrg> --cluster-type managedClusters --query identity.principalId --output tsv) --role 'Storage Blob Data Contributor' --scope /subscriptions/<subscriptionid>/resourceGroups/<storageaccountrg>/providers/Microsoft.Storage/storageAccounts/<storageaccountname>
123+
az role assignment create --assignee-object-id $(az k8s-extension show --name azure-aks-backup --cluster-name <aksclustername> --resource-group <aksclusterrg> --cluster-type managedClusters --query aksAssignedIdentity.principalId --output tsv) --role 'Storage Blob Data Contributor' --scope /subscriptions/<subscriptionid>/resourceGroups/<storageaccountrg>/providers/Microsoft.Storage/storageAccounts/<storageaccountname>
124124
```
125125

126126

0 commit comments

Comments
 (0)