File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -203,13 +203,15 @@ steps:
203203 scriptLocation : inlineScript
204204 addSpnToEnvironment : true
205205 inlineScript : |
206- set -e
207- [[ -n $SYSTEM_DEBUG ]] && [[ $SYSTEM_DEBUG =~ $IS_TRUE ]] && set -x || set +x
208-
206+ set -x
207+ echo $SPNOBJECTID
209208 UPDATE_IDENTITY=$(echo "$ACNCI_STORAGEACCOUNT" | jq -r '.identity')
210- [[ -z $UPDATE_IDENTITY ]] && \
209+ if [[ -z $UPDATE_IDENTITY ]]; then
210+ SP_ID=$(az ad sp show --id "$(az account show --query user.name -o tsv)" --query id -o tsv)
211211 az storage account update --user-identity-id "$servicePrincipalId" --ids "$ACNCI_STORAGEACCOUNT_ID"
212+ fi
212213 env :
214+ SPNOBJECTID : $(SPNOBJECTID)
213215 ACNCI_STORAGEACCOUNT_ID : $(artifact_storage.ACNCI_STORAGEACCOUNT_ID)
214216
215217- task : AzureCLI@2
You can’t perform that action at this time.
0 commit comments