Skip to content

Commit 8e685a2

Browse files
authored
Merge pull request #1 from chianw/chianw-patch-1
Corrected the command for Grant permission on storage account
2 parents 07eb5e8 + fad5459 commit 8e685a2

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)