Skip to content

Commit 8905d32

Browse files
committed
Updated WI Deploy code sample
1 parent 139fa02 commit 8905d32

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

articles/aks/workload-identity-deploy-cluster.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ title: Deploy and configure an Azure Kubernetes Service (AKS) cluster with workl
33
description: In this Azure Kubernetes Service (AKS) article, you deploy an Azure Kubernetes Service cluster and configure it with an Azure AD workload identity (preview).
44
ms.topic: article
55
ms.custom: devx-track-azurecli
6-
ms.date: 03/14/2023
6+
ms.date: 04/12/2023
77
---
88

99
# Deploy and configure workload identity (preview) on an Azure Kubernetes Service (AKS) cluster
@@ -106,6 +106,7 @@ Copy and paste the following multi-line input in the Azure CLI, and update the v
106106
```bash
107107
export SERVICE_ACCOUNT_NAME="workload-identity-sa"
108108
export SERVICE_ACCOUNT_NAMESPACE="my-namespace"
109+
export USER_ASSIGNED_CLIENT_ID="$(az identity show --resource-group "${RESOURCE_GROUP}" --name "${UAID}" --query 'clientId' -otsv)"
109110

110111
cat <<EOF | kubectl apply -f -
111112
apiVersion: v1

0 commit comments

Comments
 (0)