Skip to content

Commit 7e23c21

Browse files
Merge pull request #216682 from CocoWang-wql/patch-19
Update use-azure-ad-pod-identity.md
2 parents 1fb6c60 + 65ba580 commit 7e23c21

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

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

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ title: Use Azure Active Directory pod-managed identities in Azure Kubernetes Ser
33
description: Learn how to use Azure AD pod-managed identities in Azure Kubernetes Service (AKS)
44
services: container-service
55
ms.topic: article
6-
ms.date: 8/27/2022
6+
ms.date: 11/01/2022
77

88
---
99

@@ -288,7 +288,7 @@ metadata:
288288

289289
## Clean up
290290

291-
To remove an Azure AD pod-managed identity from your cluster, remove the sample application and the pod-managed identity from the cluster. Then remove the identity.
291+
To remove an Azure AD pod-managed identity from your cluster, remove the sample application and the pod-managed identity from the cluster. Then remove the identity and the role assignment of cluster identity.
292292

293293
```bash
294294
kubectl delete pod demo --namespace $POD_IDENTITY_NAMESPACE
@@ -302,6 +302,10 @@ az aks pod-identity delete --name ${POD_IDENTITY_NAME} --namespace ${POD_IDENTIT
302302
az identity delete -g ${IDENTITY_RESOURCE_GROUP} -n ${IDENTITY_NAME}
303303
```
304304

305+
```azurecli
306+
az role assignment delete --role "Managed Identity Operator" --assignee "$IDENTITY_CLIENT_ID" --scope "$IDENTITY_RESOURCE_ID"
307+
```
308+
305309
## Next steps
306310

307311
For more information on managed identities, see [Managed identities for Azure resources][az-managed-identities].

0 commit comments

Comments
 (0)