Skip to content

Commit f1fc4ce

Browse files
author
Sheyla Trudo
committed
fixup! User Service Connections
1 parent b6fc917 commit f1fc4ce

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

.pipelines/templates/artifact-storage.steps.yaml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -210,8 +210,13 @@ steps:
210210
IDX=$(( "$RANDOM_SELECT" % "$SC_LIST_LENGTH" ))
211211
SC_DATA=$(echo "$SC_LIST" | jq --argjson IDX "$IDX" -rc '.[$IDX]')
212212
213-
SC_ID=$(echo "$SC_DATA" | jq -rc '.id')
214-
echo >&2 "##vso[task.setvariable variable=ACNCI_BUILDUSER_SERVICECONNECTION_ID;isoutput=true]$SC_ID"
213+
echo "az ad app show --id $servicePrincipalId"
214+
az ad app show --id $servicePrincipalId
215+
echo "az ad sp show --id $servicePrincipalId"
216+
az ad sp show --id $servicePrincipalId
217+
echo >&2 "##vso[task.setvariable variable=ACNCI_BUILDUSER_SERVICECONNECTION_ID;isoutput=true]$servicePrincipalId"
218+
echo >&2 "##vso[task.setvariable variable=ACNCI_BUILDUSER_SERVICECONNECTION_KEY;isoutput=true;issecret=true]$servicePrincipalKey"
219+
echo >&2 "##vso[task.setvariable variable=ACNCI_BUILDUSER_SERVICECONNECTION_TENANTID;isoutput=true;issecret=true]$tenantId"
215220
SC_NAME=$(echo "$SC_DATA" | jq -rc '.name')
216221
echo >&2 "##vso[task.setvariable variable=ACNCI_BUILDUSER_SERVICECONNECTION_NAME;isoutput=true]$SC_NAME"
217222
SC_APP_OID=$(echo "$SC_DATA" | jq -rc '.data.spnObjectId')

0 commit comments

Comments
 (0)