Skip to content

Commit 437a969

Browse files
committed
added clarifying comments
1 parent 95f0239 commit 437a969

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

articles/aks/use-azure-ad-pod-identity.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -181,8 +181,13 @@ The managed identity that will be assigned to the pod needs to be granted permis
181181
To run the demo, the *IDENTITY_CLIENT_ID* managed identity must have Virtual Machine Contributor permissions in the resource group that contains the Virtual Machine Scale Set of your AKS cluster.
182182

183183
```azurecli-interactive
184+
# Obtain the name of the resource group containing the Virtual Machine Scale set of your AKS cluster, commonly called the node resource group
184185
NODE_GROUP=$(az aks show -g myResourceGroup -n myAKSCluster --query nodeResourceGroup -o tsv)
186+
187+
# Obtain the id of the node resource group
185188
NODES_RESOURCE_ID=$(az group show -n $NODE_GROUP -o tsv --query "id")
189+
190+
# Create a role assignment granting your managed identity permissions on the node resource group
186191
az role assignment create --role "Virtual Machine Contributor" --assignee "$IDENTITY_CLIENT_ID" --scope $NODES_RESOURCE_ID
187192
```
188193

0 commit comments

Comments
 (0)