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/azure-arc/kubernetes/custom-locations.md
+10-6Lines changed: 10 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -58,7 +58,7 @@ In this article, you learn how to enable custom locations on an Arc-enabled Kube
58
58
## Enable custom locations on your cluster
59
59
60
60
> [!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:
62
62
63
63
If you are signed in to Azure CLI as a Microsoft Entra user, use the following command:
64
64
@@ -72,18 +72,22 @@ If you run the above command while signed in to Azure CLI using a service princi
72
72
Unable to fetch oid of 'custom-locations' app. Proceeding without enabling the feature. Insufficient privileges to complete the operation.
73
73
```
74
74
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:
76
76
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.
78
78
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
80
84
az ad sp show --id bc313c14-388c-4e7d-a58e-70017303ee3b --query id -o tsv
81
85
```
82
86
83
-
1. Sign in to Azure CLI using the service principal. Use the `<objectId>` or `id`value from the previous step to enable customlocations 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:
0 commit comments