Skip to content

Commit 72e88a0

Browse files
author
Sheyla Trudo
committed
fixup! Move to Resource Module
1 parent 500f869 commit 72e88a0

File tree

2 files changed

+15
-1
lines changed

2 files changed

+15
-1
lines changed

.pipelines/templates/create-or-update-resource.steps.yaml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,8 +98,18 @@ steps:
9898
set -e
9999
#[[ -n $SYSTEM_DEBUG ]] && [[ $SYSTEM_DEBUG =~ $IS_TRUE ]] && set -x || set +x
100100
az upgrade -y
101-
az storage account create --help
102101

102+
echo "az storage account create "
103+
echo "--name "$STORAGEACCOUNT_NAME" "
104+
echo "--location "$RESOURCEGROUP_LOCATION" "
105+
echo "--resource-group "$RESOURCEGROUP_NAME" "
106+
echo "--user-identity-id "$MANAGEDIDENTITY_ARMID" "
107+
echo "--user-identity-type UserAssigned "
108+
echo "--allow-blob-public-access false "
109+
echo "--allow-shared-key-access false "
110+
echo "--tags "$BUILDTAG_DEFINITIONID"="$SYSTEM_DEFINITIONID" "
111+
echo ""$BUILDTAG_CREATEDBYBUILDID"="$BUILD_BUILDID" "
112+
echo ""$BUILDTAG_CREATEDBYAPPID"="$servicePrincipalId""
103113
az storage account create \
104114
--name "$STORAGEACCOUNT_NAME" \
105115
--location "$RESOURCEGROUP_LOCATION" \

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,10 @@ steps:
121121
# Query for Test Storage Accounts
122122
R_QUERY="[? type == 'Microsoft.Storage/storageAccounts' && resourceGroup == '$RESOURCEGROUP_NAME']"
123123
# JSON of Returned Results
124+
az resource list \
125+
--query "$R_QUERY" \
126+
--tag "$BUILDTAG_DEFINITIONID"="$SYSTEM_DEFINITIONID" \
127+
--tag "$BUILDTAG_CREATEDBYAPPID"="$servicePrincipalId" -o json
124128
R_LIST=$(az resource list \
125129
--query "$R_QUERY" \
126130
--tag "$BUILDTAG_DEFINITIONID"="$SYSTEM_DEFINITIONID" \

0 commit comments

Comments
 (0)