Skip to content

Commit 07358a0

Browse files
authored
Merge pull request #206042 from JnHs/jh-arck8-clcli
Update CLI command info
2 parents b6d0f5f + 7e4c729 commit 07358a0

File tree

1 file changed

+21
-13
lines changed

1 file changed

+21
-13
lines changed

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

Lines changed: 21 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
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"
88
---
99

1010
# Create and manage custom locations on Azure Arc-enabled Kubernetes
1111

12-
The *Custom locations* feature provides a way for tenant or cluster administrators to configure their Azure Arc-enabled Kubernetes clusters as target locations for deploying instances of Azure offerings. Examples of Azure offerings that can be deployed on top of custom locations include databases, such as Azure Arc-enabled SQL Managed Instance and Azure Arc-enabled PostgreSQL Hyperscale, or application instances, such as App Services, Functions, Event Grid, Logic Apps, and API Management.
12+
The *custom locations* feature provides a way for tenant or cluster administrators to configure their Azure Arc-enabled Kubernetes clusters as target locations for deploying instances of Azure offerings. Examples of Azure offerings that can be deployed on top of custom locations include databases, such as Azure Arc-enabled SQL Managed Instance and Azure Arc-enabled PostgreSQL Hyperscale, or application instances, such as App Services, Functions, Event Grid, Logic Apps, and API Management.
1313

14-
A custom location has a one-to-one mapping to a namespace within the Azure Arc-enabled Kubernetes cluster. The custom location Azure resource combined with Azure RBAC can be used to grant granular permissions to application developers or database admins, enabling them to deploy resources such as databases or application instances on top of Arc-enabled Kubernetes clusters in a multi-tenant manner.
14+
A custom location has a one-to-one mapping to a namespace within the Azure Arc-enabled Kubernetes cluster. The custom location Azure resource combined with Azure role-based access control (Azure RBAC) can be used to grant granular permissions to application developers or database admins, enabling them to deploy resources such as databases or application instances on top of Arc-enabled Kubernetes clusters in a multi-tenant manner.
1515

1616
A conceptual overview of this feature is available in [Custom locations - Azure Arc-enabled Kubernetes](conceptual-custom-locations.md).
1717

@@ -27,15 +27,15 @@ 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
3434
az extension add --name k8s-extension
3535
az extension add --name customlocation
3636
```
3737
38-
If you have already installed the `connectedk8s`, `k8s-extension`, and `customlocation` extensions, update to the **latest version** using the following command:
38+
If you have already installed the `connectedk8s`, `k8s-extension`, and `customlocation` extensions, update to the **latest version** by using the following command:
3939
4040
```azurecli
4141
az extension update --name connectedk8s
@@ -63,7 +63,7 @@ In this article, you learn how to:
6363
6464
## Enable custom locations on your cluster
6565
66-
If you are signed in to Azure CLI as an Azure AD user, to enable this feature on your cluster, execute the following command:
66+
If you are signed in to Azure CLI as an Azure Active Directory (Azure AD) user, to enable this feature on your cluster, execute the following command:
6767
6868
```azurecli
6969
az connectedk8s enable-features -n <clusterName> -g <resourceGroupName> --features cluster-connect custom-locations
@@ -75,18 +75,26 @@ 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 `objectId` or `id` of the Azure AD application used by Azure Arc service. The command you use 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

86-
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:
94+
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:
8795

8896
```azurecli
89-
az connectedk8s enable-features -n <cluster-name> -g <resource-group-name> --custom-locations-oid <objectId> --features cluster-connect custom-locations
97+
az connectedk8s enable-features -n <cluster-name> -g <resource-group-name> --custom-locations-oid <objectId/id> --features cluster-connect custom-locations
9098
```
9199
92100
> [!NOTE]

0 commit comments

Comments
 (0)