You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/aks/use-azure-ad-pod-identity.md
+6-2Lines changed: 6 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,7 +3,7 @@ title: Use Azure Active Directory pod-managed identities in Azure Kubernetes Ser
3
3
description: Learn how to use Azure AD pod-managed identities in Azure Kubernetes Service (AKS)
4
4
services: container-service
5
5
ms.topic: article
6
-
ms.date: 8/27/2022
6
+
ms.date: 11/01/2022
7
7
8
8
---
9
9
@@ -288,7 +288,7 @@ metadata:
288
288
289
289
## Clean up
290
290
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.
292
292
293
293
```bash
294
294
kubectl delete pod demo --namespace $POD_IDENTITY_NAMESPACE
@@ -302,6 +302,10 @@ az aks pod-identity delete --name ${POD_IDENTITY_NAME} --namespace ${POD_IDENTIT
302
302
az identity delete -g ${IDENTITY_RESOURCE_GROUP} -n ${IDENTITY_NAME}
303
303
```
304
304
305
+
```azurecli
306
+
az role assignment delete --role "Managed Identity Operator" --assignee "$IDENTITY_CLIENT_ID" --scope "$IDENTITY_RESOURCE_ID"
307
+
```
308
+
305
309
## Next steps
306
310
307
311
For more information on managed identities, see [Managed identities for Azure resources][az-managed-identities].
0 commit comments