Skip to content

Commit d06b351

Browse files
bug fix: pick SP id field to get objectId
1 parent e8fcb63 commit d06b351

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

articles/openshift/quickstart-openshift-arm-bicep-template.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -757,7 +757,7 @@ az group create --name $RESOURCEGROUP --location $LOCATION
757757
az ad sp create-for-rbac --name "sp-$RG_NAME-${RANDOM}" --role Contributor > app-service-principal.json
758758
SP_CLIENT_ID=$(jq -r '.appId' app-service-principal.json)
759759
SP_CLIENT_SECRET=$(jq -r '.password' app-service-principal.json)
760-
SP_OBJECT_ID=$(az ad sp show --id $SP_CLIENT_ID | jq -r '.objectId')
760+
SP_OBJECT_ID=$(az ad sp show --id $SP_CLIENT_ID | jq -r '.id')
761761
```
762762

763763
### Assign the Contributor role to the new service principal - Azure CLI

0 commit comments

Comments
 (0)