File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -119,13 +119,15 @@ steps:
119119 [[ -n $SYSTEM_DEBUG ]] && [[ $SYSTEM_DEBUG =~ $IS_TRUE ]] && set -x || set +x
120120
121121 # Query for Test Storage Accounts
122- R_QUERY="[? type == 'Microsoft.Storage/storageAccounts' && resourceGroup == '$RESOURCEGROUP_NAME' ]"
122+ R_QUERY="[? tags.\""$BUILDTAG_DEFINITIONID"\" && tags.\""$BUILDTAG_CREATEDBYAPPID"\" ]"
123123 # JSON of Returned Results
124- az resource list \
124+ az storage account list \
125+ --resource-group "$RESOURCEGROUP_NAME" \
125126 --query "$R_QUERY" \
126127 --tag "$BUILDTAG_DEFINITIONID"="$SYSTEM_DEFINITIONID" \
127128 --tag "$BUILDTAG_CREATEDBYAPPID"="$servicePrincipalId" -o json
128- R_LIST=$(az resource list \
129+ R_LIST=$(az storage account list \
130+ --resource-group "$RESOURCEGROUP_NAME" \
129131 --query "$R_QUERY" \
130132 --tag "$BUILDTAG_DEFINITIONID"="$SYSTEM_DEFINITIONID" \
131133 --tag "$BUILDTAG_CREATEDBYAPPID"="$servicePrincipalId" -o json | jq -rc '.')
You can’t perform that action at this time.
0 commit comments