Skip to content

Commit 029a98a

Browse files
committed
Clarify step
1 parent 16b3e53 commit 029a98a

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

articles/iot-operations/includes/connect-cluster.md

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ ms.custom: include file, ignite-2023, devx-track-azurecli
1111

1212
To connect your cluster to Azure Arc:
1313

14-
1. Sign in with Azure CLI.
14+
1. On the machine where you deployed the Kubernetes cluster, sign in with Azure CLI:
1515

1616
```azurecli
1717
az login
@@ -70,9 +70,17 @@ To connect your cluster to Azure Arc:
7070
az connectedk8s connect -n $CLUSTER_NAME -l $LOCATION -g $RESOURCE_GROUP --subscription $SUBSCRIPTION_ID
7171
```
7272

73-
1. Use the [az connectedk8s enable-features](/cli/azure/connectedk8s#az-connectedk8s-enable-features) command to enable custom location support on your cluster. This command uses the `objectId` of the Microsoft Entra ID application that the Azure Arc service uses:
73+
1. Get the `objectId` of the Microsoft Entra ID application that the Azure Arc service uses. Run this command in the [Azure Cloud Shell](https://portal.azure.com/#cloudshell) or on your local machine:
74+
75+
```azurecli
76+
az ad sp show --id bc313c14-388c-4e7d-a58e-70017303ee3b --query id -o tsv
77+
```
78+
79+
Make a note of the `objectId` that's returned. You use it in the next step.
80+
81+
1. Use the [az connectedk8s enable-features](/cli/azure/connectedk8s#az-connectedk8s-enable-features) command to enable custom location support on your cluster. This command uses the `objectId` of the Microsoft Entra ID application that the Azure Arc service uses. Run this command on the machine where you deployed the Kubernetes cluster:
7482

7583
```azurecli
76-
export OBJECT_ID=$(az ad sp show --id bc313c14-388c-4e7d-a58e-70017303ee3b --query id -o tsv)
84+
export OBJECT_ID=<objectID from the previous step>
7785
az connectedk8s enable-features -n $CLUSTER_NAME -g $RESOURCE_GROUP --custom-locations-oid $OBJECT_ID --features cluster-connect custom-locations
7886
```

0 commit comments

Comments
 (0)