We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dd6c6f5 commit cee740aCopy full SHA for cee740a
.pipelines/templates/artifact-storage.steps.yaml
@@ -206,12 +206,14 @@ steps:
206
set -x
207
echo $SPNOBJECTID
208
UPDATE_IDENTITY=$(echo "$ACNCI_STORAGEACCOUNT" | jq -r '.identity')
209
- if [[ -z $UPDATE_IDENTITY ]]; then
+ if [[ -z $UPDATE_IDENTITY ]] || \
210
+ [[ $UPDATE_IDENTITY =~ null ]]; then
211
SP_ID=$(az ad sp show --id "$(az account show --query user.name -o tsv)" --query id -o tsv)
212
az storage account update --user-identity-id "$servicePrincipalId" --ids "$ACNCI_STORAGEACCOUNT_ID"
213
+ else
214
+ echo >&2 "Storage account identity set."
215
fi
216
env:
- SPNOBJECTID: $(SPNOBJECTID)
217
ACNCI_STORAGEACCOUNT_ID: $(artifact_storage.ACNCI_STORAGEACCOUNT_ID)
218
219
- task: AzureCLI@2
0 commit comments