You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/storage/files/files-troubleshoot-smb-authentication.md
+7-7Lines changed: 7 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -148,19 +148,19 @@ New-AzStorageAccountKey `
148
148
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.
149
149
150
150
```bash
151
-
resourceGroupName="<resource-group>"
152
-
storageAccountName="<storage-account>"
151
+
RESOURCE_GROUP_NAME="<resource-group>"
152
+
STORAGE_ACCOUNT_NAME="<storage-account>"
153
153
154
154
# Rotate primary key (key 1). You should switch to key 2 before rotating key 1.
155
155
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 \
158
158
--key "primary"
159
159
160
160
# Rotate secondary key (key 2). You should switch to the new key 1 before rotating key 2.
161
161
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 \
164
164
--key "secondary"
165
165
```
166
166
@@ -350,4 +350,4 @@ If you still need help, [contact support](https://portal.azure.com/?#blade/Micro
0 commit comments