Skip to content

Commit 64571a9

Browse files
committed
Joyce edits for roles
1 parent 6c1118b commit 64571a9

File tree

3 files changed

+8
-29
lines changed

3 files changed

+8
-29
lines changed

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

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ description: Learn how to install Azure Container Storage for use with Azure Kub
44
author: khdownie
55
ms.service: azure-container-storage
66
ms.topic: tutorial
7-
ms.date: 05/24/2024
7+
ms.date: 05/30/2024
88
ms.author: kendownie
99
ms.custom: devx-track-azurecli
1010
---
@@ -174,9 +174,9 @@ az aks nodepool update --resource-group <resource-group> --cluster-name <cluster
174174

175175
You can verify that the node pool is correctly labeled by signing into the [Azure portal](https://portal.azure.com?azure-portal=true) and navigating to your AKS cluster. Go to **Settings > Node pools**, select your node pool, and under **Taints and labels** you should see `Labels: acstor.azure.com/io-engine:acstor`.
176176

177-
## Assign Contributor role to AKS managed identity
177+
## Assign Azure Container Storage Operator role to AKS managed identity
178178

179-
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.
179+
You only need to perform this step if you plan to use Azure Elastic SAN as backing storage. In order to use Elastic SAN, you'll need to grant permissions to allow Azure Container Storage to provision storage for your cluster. Specifically, you must assign the [Azure Container Storage Operator](../../role-based-access-control/built-in-roles/containers.md#azure-container-storage-operator) role to the AKS managed identity. You can do this using the Azure portal or Azure CLI. You'll need either an [Azure Container Storage Owner](../../role-based-access-control/built-in-roles/containers.md#azure-container-storage-owner) role or [Azure Container Storage Contributor](../../role-based-access-control/built-in-roles/containers.md#azure-container-storage-contributor) role for your Azure subscription in order to do this. If you don't have sufficient permissions, ask your admin to perform these steps.
180180

181181
# [Azure portal](#tab/portal)
182182

@@ -185,10 +185,7 @@ Azure Container Service is a separate service from AKS, so you'll need to grant
185185
1. Under **Infrastructure resource group**, you should see a link to the resource group that AKS created when you created the cluster. Select it.
186186
1. Select **Access control (IAM)** from the left pane.
187187
1. Select **Add > Add role assignment**.
188-
1. Under **Assignment type**, select **Privileged administrator roles** and then **Contributor**, then select **Next**. If you don't have an Owner role on the subscription, you won't be able to add the Contributor role.
189-
190-
:::image type="content" source="media/install-container-storage-aks/add-role-assignment.png" alt-text="Screenshot showing how to use the Azure portal to add Contributor role to the AKS managed identity." lightbox="media/install-container-storage-aks/add-role-assignment.png":::
191-
188+
1. Under the **Job function roles** tab, select or search for **Azure Container Storage Operator**, then select **Next**. If you don't have an **Azure Container Storage Owner** or **Azure Container Storage Contributor** role on the subscription, you won't be able to add the **Azure Container Storage Operator** role.
192189
1. Under **Assign access to**, select **Managed identity**.
193190
1. Under **Members**, click **+ Select members**. The **Select managed identities** menu will appear.
194191
1. Under **Managed identity**, select **User-assigned managed identity**.
@@ -197,11 +194,11 @@ Azure Container Service is a separate service from AKS, so you'll need to grant
197194

198195
# [Azure CLI](#tab/cli)
199196

200-
Run the following commands to assign Contributor role to AKS managed identity. Remember to replace `<resource-group>`, `<cluster-name>`, and `<azure-subscription-id>` with your own values. You can also narrow the scope to your resource group, for example `/subscriptions/<azure-subscription-id>/resourceGroups/<resource-group>`.
197+
Run the following commands to assign **Azure Container Storage Operator** role to AKS managed identity. Remember to replace `<resource-group>`, `<cluster-name>`, and `<azure-subscription-id>` with your own values. You can also narrow the scope to your resource group, for example `/subscriptions/<azure-subscription-id>/resourceGroups/<resource-group>`.
201198

202199
```azurecli-interactive
203200
export AKS_MI_OBJECT_ID=$(az aks show --name <cluster-name> --resource-group <resource-group> --query "identityProfile.kubeletidentity.objectId" -o tsv)
204-
az role assignment create --assignee $AKS_MI_OBJECT_ID --role "Contributor" --scope "/subscriptions/<azure-subscription-id>"
201+
az role assignment create --assignee $AKS_MI_OBJECT_ID --role "Azure Container Storage Operator" --scope "/subscriptions/<azure-subscription-id>"
205202
```
206203
---
207204

articles/storage/container-storage/use-container-storage-with-elastic-san.md

Lines changed: 2 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ description: Configure Azure Container Storage for use with Azure Elastic SAN. C
44
author: khdownie
55
ms.service: azure-container-storage
66
ms.topic: how-to
7-
ms.date: 03/21/2024
7+
ms.date: 05/30/2024
88
ms.author: kendownie
99
ms.custom: references_regions
1010
---
@@ -17,7 +17,7 @@ ms.custom: references_regions
1717

1818
[!INCLUDE [container-storage-prerequisites](../../../includes/container-storage-prerequisites.md)]
1919

20-
- Ensure your subscription has [Azure role-based access control (Azure RBAC) Owner](../../role-based-access-control/built-in-roles/general.md#owner) role. For Azure Container Storage to successfully communicate with Elastic SAN's API, it needs special permissions that the Owner role will grant.
20+
- Ensure your subscription has either an [Azure Container Storage Owner](../../role-based-access-control/built-in-roles/containers.md#azure-container-storage-owner) role or [Azure Container Storage Contributor](../../role-based-access-control/built-in-roles/containers.md#azure-container-storage-contributor) role. For Azure Container Storage to successfully communicate with Elastic SAN's API, it needs special permissions that either of those two roles will grant.
2121

2222
> [!NOTE]
2323
> To use Azure Container Storage with Azure Elastic SAN, your AKS cluster should have a node pool of at least three [general purpose VMs](../../virtual-machines/sizes-general.md) such as **standard_d4s_v5** for the cluster nodes, each with a minimum of four virtual CPUs (vCPUs).
@@ -78,24 +78,6 @@ Follow these steps to create a storage pool with Azure Elastic SAN.
7878

7979
When the storage pool is created, Azure Container Storage will create a storage class on your behalf using the naming convention `acstor-<storage-pool-name>`. It will also create an Azure Elastic SAN resource.
8080

81-
## Assign Contributor role to AKS managed identity on Azure Elastic SAN subscription
82-
83-
Next, you must assign the [Contributor](../../role-based-access-control/built-in-roles.md#contributor) Azure RBAC built-in role to the AKS managed identity on your Azure Elastic SAN subscription. 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.
84-
85-
1. Sign in to the [Azure portal](https://portal.azure.com?azure-portal=true).
86-
1. Select **Subscriptions**, and locate and select the subscription associated with the Azure Elastic SAN resource that Azure Container Storage created on your behalf. This will likely be the same subscription as the AKS cluster that Azure Container Storage is installed on. You can verify this by locating the Elastic SAN resource in the resource group that AKS created (`MC_YourResourceGroup_YourAKSClusterName_Region`).
87-
1. Select **Access control (IAM)** from the left pane.
88-
1. Select **Add > Add role assignment**.
89-
1. Under **Assignment type**, select **Privileged administrator roles** and then **Contributor**, then select **Next**. If you don't have an Owner role on the subscription, you won't be able to add the Contributor role.
90-
91-
:::image type="content" source="media/install-container-storage-aks/add-role-assignment.png" alt-text="Screenshot showing how to use the Azure portal to add Contributor role to the AKS managed identity." lightbox="media/install-container-storage-aks/add-role-assignment.png":::
92-
93-
1. Under **Assign access to**, select **Managed identity**.
94-
1. Under **Members**, click **+ Select members**. The **Select managed identities** menu will appear.
95-
1. Under **Managed identity**, select **User-assigned managed identity**.
96-
1. Under **Select**, search for and select the managed identity with your cluster name and `-agentpool` appended.
97-
1. Click **Select**, then **Review + assign**.
98-
9981
## Display the available storage classes
10082

10183
When the storage pool is ready to use, you must select a storage class to define how storage is dynamically created when creating persistent volume claims and deploying persistent volumes.

0 commit comments

Comments
 (0)