Skip to content

Commit 305c4d5

Browse files
authored
Update README.md
1 parent 551b334 commit 305c4d5

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

deploy/example/blobfuse-mi/README.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,16 @@ This article demonstrates the process of utilizing blobfuse mount with either a
66
- Make sure the managed identity has `Storage Blob Data Owner` role to the storage account
77
> 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 provisoning), then you need to grant `Storage Blob Data Owner` role to the resource group where the storage account is located
88
9-
```bash
10-
kloid="$(az identity list -g "$resourcegroup" --query "[?name == 'managedIdentityName'].principalId" -o tsv)"
11-
said="$(az storage account list -g "$resourcegroup" --query "[?name == '$storageaccountname'].id" -o tsv)"
12-
az role assignment create --assignee-object-id "$kloid" --role "Storage Blob Data Owner" --scope "$said"
13-
```
9+
```bash
10+
mid="$(az identity list -g "$resourcegroup" --query "[?name == 'managedIdentityName'].principalId" -o tsv)"
11+
said="$(az storage account list -g "$resourcegroup" --query "[?name == '$storageaccountname'].id" -o tsv)"
12+
az role assignment create --assignee-object-id "$mid" --role "Storage Blob Data Owner" --scope "$said"
13+
```
1414

1515
- 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.
16-
```bash
17-
AzureStorageIdentityClientID=`az identity list -g "$resourcegroup" --query "[?name == '$identityname'].clientId" -o tsv`
18-
```
16+
```bash
17+
AzureStorageIdentityClientID=`az identity list -g "$resourcegroup" --query "[?name == '$identityname'].clientId" -o tsv`
18+
```
1919

2020
## Dynamic Provisioning
2121
- Ensure that the system-assigned identity of your cluster control plane has the `Storage Account Contributor role` for the storage account.
@@ -54,9 +54,9 @@ This article demonstrates the process of utilizing blobfuse mount with either a
5454
```
5555
5656
1. create a statefulset with blobfuse volume mount
57-
```console
58-
kubectl create -f https://raw.githubusercontent.com/kubernetes-sigs/blob-csi-driver/master/deploy/example/statefulset.yaml
59-
```
57+
```bash
58+
kubectl create -f https://raw.githubusercontent.com/kubernetes-sigs/blob-csi-driver/master/deploy/example/statefulset.yaml
59+
```
6060

6161
## Static Provisioning
6262

0 commit comments

Comments
 (0)