Skip to content

Commit 2068489

Browse files
authored
Update custom-locations.md
1 parent 5a61397 commit 2068489

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

articles/azure-arc/kubernetes/custom-locations.md

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ In this article, you learn how to enable custom locations on an Arc-enabled Kube
5858
## Enable custom locations on your cluster
5959
6060
> [!TIP]
61-
> The custom locations feature is dependent on the [cluster connect](cluster-connect.md) feature. Both features have to be enabled in the cluster for custom locations to work.
61+
> The custom locations feature is dependent on the [cluster connect](cluster-connect.md) feature. Both features must be enabled in the cluster for custom locations to function. To enable the custom locations feature, follow the steps below:
6262
6363
If you are signed in to Azure CLI as a Microsoft Entra user, use the following command:
6464
@@ -72,18 +72,22 @@ If you run the above command while signed in to Azure CLI using a service princi
7272
Unable to fetch oid of 'custom-locations' app. Proceeding without enabling the feature. Insufficient privileges to complete the operation.
7373
```
7474

75-
This is because a service principal doesn't have permissions to get information about the application used by the Azure Arc service (custom location). To avoid this error, complete the following steps:
75+
This warning occurs because the service principal lacks the necessary permissions to retrieve the `oid` (object ID) of the custom location used by the Azure Arc service. To avoid this error, follow these steps:
7676

77-
1. Sign in to Azure CLI with your user account. Run the following command to fetch the `oid` or `objectId` of the custom location application used by the Azure Arc service, where `--id` is predefined and set to `bc313c14-388c-4e7d-a58e-70017303ee3b` (Note: copy and run the command exactly as it is. Do not replace `--id` with a different value.):
77+
1. Sign in to Azure CLI with your user account.
7878

79-
```azurecli
79+
1. Run the following command to fetch the `oid` (object ID) of the custom location, where `--id` is predefined and set to `bc313c14-388c-4e7d-a58e-70017303ee3b`:
80+
81+
**Important!** Copy and run the command exactly as it is shown below. Do not replace the value passed to the `--id` parameter with a different value.
82+
83+
```azurecli
8084
az ad sp show --id bc313c14-388c-4e7d-a58e-70017303ee3b --query id -o tsv
8185
```
8286

83-
1. Sign in to Azure CLI using the service principal. Use the `<objectId>` or `id` value from the previous step to enable custom locations on the cluster:
87+
1. Sign in to Azure CLI using the service principal. Run the following command to enable the custom locations feature on the cluster, using the `oid` (object ID) value from the previous step for the `--custom-locations-oid` parameter:
8488

8589
```azurecli
86-
az connectedk8s enable-features -n <cluster-name> -g <resource-group-name> --custom-locations-oid <objectId/id> --features cluster-connect custom-locations
90+
az connectedk8s enable-features -n <cluster-name> -g <resource-group-name> --custom-locations-oid <cl-oid> --features cluster-connect custom-locations
8791
```
8892
8993
## Create custom location

0 commit comments

Comments
 (0)