Skip to content

Commit fe54c8d

Browse files
committed
add newer command
1 parent 8618ed8 commit fe54c8d

File tree

1 file changed

+15
-7
lines changed

1 file changed

+15
-7
lines changed

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

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: "Create and manage custom locations on Azure Arc-enabled Kubernetes"
33
ms.service: azure-arc
4-
ms.date: 07/21/2022
4+
ms.date: 07/27/2022
55
ms.topic: how-to
66
ms.custom: references_regions, devx-track-azurecli
77
description: "Use custom locations to deploy Azure PaaS services on Azure Arc-enabled Kubernetes clusters"
@@ -27,7 +27,7 @@ In this article, you learn how to:
2727
- Install the following Azure CLI extensions:
2828
- `connectedk8s` (version 1.2.0 or later)
2929
- `k8s-extension` (version 1.0.0 or later)
30-
- `customlocation` (version 0.1.3 or later)
30+
- `customlocation` (version 0.1.3 or later)
3131

3232
```azurecli
3333
az extension add --name connectedk8s
@@ -75,13 +75,21 @@ If you run the above command while signed in to Azure CLI using a service princi
7575
Unable to fetch oid of 'custom-locations' app. Proceeding without enabling the feature. Insufficient privileges to complete the operation.
7676
```
7777

78-
This is because a service principal doesn't have permissions to get information of the application used by the Azure Arc service. To avoid this error, execute the following steps:
78+
This is because a service principal doesn't have permissions to get information about the application used by the Azure Arc service. To avoid this error, complete the following steps:
7979

80-
1. Sign in to Azure CLI using your user account. Fetch the Object ID of the Azure AD application used by Azure Arc service:
80+
1. Sign in to Azure CLI using your user account. Fetch the Object ID/id of the Azure AD application used by Azure Arc service. The command to do this depends on your version of Azure CLI.
8181

82-
```azurecli
83-
az ad sp show --id bc313c14-388c-4e7d-a58e-70017303ee3b --query objectId -o tsv
84-
```
82+
If you're using an Azure CLI version lower than 2.37.0, use the following command:
83+
84+
```azurecli
85+
az ad sp show --id bc313c14-388c-4e7d-a58e-70017303ee3b --query objectId -o tsv
86+
```
87+
88+
If you're using Azure CLI version 2.37.0 or higher, use the following command instead:
89+
90+
```azurecli
91+
az ad sp show --id bc313c14-388c-4e7d-a58e-70017303ee3b --query id -o tsv
92+
```
8593

8694
1. Sign in to Azure CLI using the service principal. Use the `<objectId>` value from above step to enable custom locations feature on the cluster:
8795

0 commit comments

Comments
 (0)