Skip to content

Commit fdd7205

Browse files
authored
Update storage account step 2 in create-postgresql-ha.md
Changed the order of executing so the variable $STORAGE_ACCOUNT_PRIMARY_RESOURCE_ID is defined before executing with the <az role assignment list> command
1 parent c850381 commit fdd7205

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

articles/aks/create-postgresql-ha.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -153,15 +153,15 @@ The CNPG operator automatically generates a service account called *postgres* th
153153
> If you encounter the error message: `The request may be blocked by network rules of storage account. Please check network rule set using 'az storage account show -n accountname --query networkRuleSet'. If you want to change the default action to apply when no rule matches, please use 'az storage account update'`. Please verify user permissions for Azure Blob Storage and, if **necessary**, elevate your role to `Storage Blob Data Owner` using the commands provided below and after retry the [`az storage container create`][az-storage-container-create] command.
154154

155155
```bash
156-
az role assignment list --scope $STORAGE_ACCOUNT_PRIMARY_RESOURCE_ID --output table
157-
158156
export USER_ID=$(az ad signed-in-user show --query id --output tsv)
159157
160158
export STORAGE_ACCOUNT_PRIMARY_RESOURCE_ID=$(az storage account show \
161159
--name $PG_PRIMARY_STORAGE_ACCOUNT_NAME \
162160
--resource-group $RESOURCE_GROUP_NAME \
163161
--query "id" \
164162
--output tsv)
163+
164+
az role assignment list --scope $STORAGE_ACCOUNT_PRIMARY_RESOURCE_ID --output table
165165
166166
az role assignment create \
167167
--assignee-object-id $USER_ID \

0 commit comments

Comments
 (0)