Skip to content

Commit 56cb3a1

Browse files
author
Sheyla Trudo
committed
fixup! Move to Resource Module
1 parent 60388bb commit 56cb3a1

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

.pipelines/templates/get-resources.steps.yaml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff 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 '.')

0 commit comments

Comments
 (0)