Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
andyzhangx authored Oct 12, 2024
1 parent 1eceff9 commit d2fc2d3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions deploy/example/blobfuse-mi/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@ This article demonstrates the process of utilizing blobfuse mount with either a
> make sure the managed identity used by CSI driver is bound to the agent node pool.
## Before you begin
- Make sure the managed identity has `Storage Blob Data Owner` role to the storage account
> here is an example that uses Azure CLI commands to assign the `Storage Blob Data Owner` role to the managed identity for the storage account. If the storage account is created by the driver(dynamic provisioning), then you need to grant `Storage Blob Data Owner` role to the resource group where the storage account is located
- Make sure the managed identity has `Storage Blob Data Contributor` role to the storage account
> here is an example that uses Azure CLI commands to assign the `Storage Blob Data Contributor` role to the managed identity for the storage account. If the storage account is created by the driver(dynamic provisioning), then you need to grant `Storage Blob Data Contributor` role to the resource group where the storage account is located
```bash
mid="$(az identity list -g "$resourcegroup" --query "[?name == 'managedIdentityName'].principalId" -o tsv)"
said="$(az storage account list -g "$resourcegroup" --query "[?name == '$storageaccountname'].id" -o tsv)"
az role assignment create --assignee-object-id "$mid" --role "Storage Blob Data Owner" --scope "$said"
az role assignment create --assignee-object-id "$mid" --role "Storage Blob Data Contributor" --scope "$said"
```

- Retrieve the clientID for `AzureStorageIdentityClientID`. If you are using kubelet identity, the identity will be named {aks-cluster-name}-agentpool and located in the node resource group.
Expand Down

0 comments on commit d2fc2d3

Please sign in to comment.