Skip to content

Commit cb85c1f

Browse files
Merge pull request #239653 from khdownie/kendownie053023
tabbing portal and cli
2 parents 17ac51b + a4f0b22 commit cb85c1f

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

articles/storage/container-storage/container-storage-aks-quickstart.md

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ description: Learn how to install and configure Azure Container Storage Preview
44
author: khdownie
55
ms.service: storage
66
ms.topic: quickstart
7-
ms.date: 05/15/2023
7+
ms.date: 05/30/2023
88
ms.author: kendownie
99
ms.subservice: container-storage
1010
---
@@ -143,7 +143,9 @@ az aks nodepool update --resource-group <resource group> --cluster-name <cluster
143143
144144
## Assign Contributor role to AKS managed identity
145145

146-
Azure Container Service is a separate service from AKS, so you'll need to grant permissions to allow Azure Container Storage to provision storage for your cluster. Specifically, you must assign the [Contributor](../../role-based-access-control/built-in-roles.md#contributor) Azure RBAC built-in role to the AKS managed identity. You'll need an [Owner](../../role-based-access-control/built-in-roles.md#owner) role for your Azure subscription in order to do this. If you don't have sufficient permissions, ask your admin to perform these steps.
146+
Azure Container Service is a separate service from AKS, so you'll need to grant permissions to allow Azure Container Storage to provision storage for your cluster. Specifically, you must assign the [Contributor](../../role-based-access-control/built-in-roles.md#contributor) Azure RBAC built-in role to the AKS managed identity. You can do this using the Azure portal or Azure CLI. You'll need an [Owner](../../role-based-access-control/built-in-roles.md#owner) role for your Azure subscription in order to do this. If you don't have sufficient permissions, ask your admin to perform these steps.
147+
148+
# [Azure portal](#tab/portal)
147149

148150
1. Sign into the [Azure portal](https://portal.azure.com?azure-portal=true), and search for and select **Kubernetes services**.
149151
1. Locate and select your AKS cluster. Select **Settings** > **Properties** from the left navigation.
@@ -157,15 +159,17 @@ Azure Container Service is a separate service from AKS, so you'll need to grant
157159
1. Under **Select**, search for and select the managed identity with your cluster name and `-agentpool` appended.
158160
1. Select **Review + assign**.
159161

160-
Run the following command to assign Contributor role to AKS managed identity. Remember to replace `<resource-group>` and `<cluster-name>` with your own values.
162+
# [Azure CLI](#tab/cli)
163+
164+
Run the following commands to assign Contributor role to AKS managed identity. Remember to replace `<resource-group>` and `<cluster-name>` with your own values.
161165

162166
```azurecli-interactive
163167
export AKS_MI_OBJECT_ID=$(az aks show --name <cluster-name> --resource-group <resource-group> --query "identityProfile.kubeletidentity.objectId" -o tsv)
164168
export AKS_NODE_RG=$(az aks show --name <cluster-name> --resource-group <resource-group> --query "nodeResourceGroup" -o tsv)
165-
166169
az role assignment create --assignee $AKS_MI_OBJECT_ID --role "Contributor" --resource-group "$AKS_NODE_RG"
167170
```
168-
171+
---
172+
169173
## Install Azure Container Storage
170174

171175
The initial install uses Azure Arc CLI commands to download a new extension. Replace `<cluster-name>` and `<resource-group>` with your own values. The `<name>` value can be whatever you want; it's just a label for the extension you're installing.

0 commit comments

Comments
 (0)