Skip to content

Commit 441ad43

Browse files
Merge pull request #252095 from khdownie/patch-1
Update install-container-storage-aks.md
2 parents 7b63a67 + e9278ef commit 441ad43

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

articles/storage/container-storage/install-container-storage-aks.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ description: Learn how to install Azure Container Storage Preview for use with A
44
author: khdownie
55
ms.service: azure-container-storage
66
ms.topic: how-to
7-
ms.date: 09/07/2023
7+
ms.date: 09/19/2023
88
ms.author: kendownie
99
ms.custom: devx-track-azurecli
1010
---
@@ -176,12 +176,11 @@ Azure Container Service is a separate service from AKS, so you'll need to grant
176176

177177
# [Azure CLI](#tab/cli)
178178

179-
Run the following commands to assign Contributor role to AKS managed identity. Remember to replace `<resource-group>` and `<cluster-name>` with your own values.
179+
Run the following commands to assign Contributor role to AKS managed identity. Remember to replace `<resource-group>`, `<cluster-name>`, and `<azure-subscription-id>` with your own values. You can also narrow the scope to your resource group, for example `/subscriptions/<azure-subscription-id>/resourceGroups/<resource-group>`.
180180

181181
```azurecli-interactive
182182
export AKS_MI_OBJECT_ID=$(az aks show --name <cluster-name> --resource-group <resource-group> --query "identityProfile.kubeletidentity.objectId" -o tsv)
183-
export AKS_NODE_RG=$(az aks show --name <cluster-name> --resource-group <resource-group> --query "nodeResourceGroup" -o tsv)
184-
az role assignment create --assignee $AKS_MI_OBJECT_ID --role "Contributor" --resource-group "$AKS_NODE_RG"
183+
az role assignment create --assignee $AKS_MI_OBJECT_ID --role "Contributor" --scope "/subscriptions/<azure-subscription-id>"
185184
```
186185
---
187186

0 commit comments

Comments
 (0)