Skip to content

Commit 08dc775

Browse files
authored
Merge pull request #205837 from infosatheesh2020/patch-2
Fixed bug to get ARO RP SP id
2 parents 838a529 + d06b351 commit 08dc775

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
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
@@ -779,7 +779,7 @@ az role assignment create \
779779
### Get the service principal object ID for the OpenShift resource provider - Azure CLI
780780

781781
```azurecli-interactive
782-
ARO_RP_SP_OBJECT_ID=$(az ad sp list --display-name "Azure Red Hat OpenShift RP" --query [0].objectId -o tsv)
782+
ARO_RP_SP_OBJECT_ID=$(az ad sp list --display-name "Azure Red Hat OpenShift RP" --query [0].id -o tsv)
783783
```
784784

785785
### Deploy the cluster - Azure CLI

0 commit comments

Comments
 (0)