Skip to content

Commit 959fd3e

Browse files
authored
Merge pull request #108109 from lanicolas/patch-49
Align bash style guide
2 parents 5961c09 + fcfa227 commit 959fd3e

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

articles/storage/files/files-troubleshoot-smb-authentication.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -148,19 +148,19 @@ New-AzStorageAccountKey `
148148
The following script will rotate both keys for the storage account. If you desire to swap out keys during rotation, you'll need to provide additional logic in your script to handle this scenario. Remember to replace `<resource-group>` and `<storage-account>` with the appropriate values for your environment.
149149

150150
```bash
151-
resourceGroupName="<resource-group>"
152-
storageAccountName="<storage-account>"
151+
RESOURCE_GROUP_NAME="<resource-group>"
152+
STORAGE_ACCOUNT_NAME="<storage-account>"
153153

154154
# Rotate primary key (key 1). You should switch to key 2 before rotating key 1.
155155
az storage account keys renew \
156-
--resource-group $resourceGroupName \
157-
--account-name $storageAccountName \
156+
--resource-group $RESOURCE_GROUP_NAME \
157+
--account-name $STORAGE_ACCOUNT_NAME \
158158
--key "primary"
159159

160160
# Rotate secondary key (key 2). You should switch to the new key 1 before rotating key 2.
161161
az storage account keys renew \
162-
--resource-group $resourceGroupName \
163-
--account-name $storageAccountName \
162+
--resource-group $RESOURCE_GROUP_NAME \
163+
--account-name $STORAGE_ACCOUNT_NAME \
164164
--key "secondary"
165165
```
166166

@@ -350,4 +350,4 @@ If you still need help, [contact support](https://portal.azure.com/?#blade/Micro
350350
- [Troubleshoot Azure Files connectivity (SMB)](files-troubleshoot-smb-connectivity.md)
351351
- [Troubleshoot Azure Files general SMB issues on Linux](files-troubleshoot-linux-smb.md)
352352
- [Troubleshoot Azure Files general NFS issues on Linux](files-troubleshoot-linux-nfs.md)
353-
- [Troubleshoot Azure File Sync issues](../file-sync/file-sync-troubleshoot.md)
353+
- [Troubleshoot Azure File Sync issues](../file-sync/file-sync-troubleshoot.md)

0 commit comments

Comments
 (0)