File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff 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')
You can’t perform that action at this time.
0 commit comments