Changed Service Principal Creation sequence to comply with newer CLI reqs
This commit is contained in:
parent
f7c6180ff7
commit
9f3393f7e9
|
@ -166,9 +166,9 @@ createServicePrincipal() {
|
|||
fi
|
||||
|
||||
if [ "${newer_syntax}" = true ]; then
|
||||
azure ad sp create -a $azure_client_id
|
||||
azure_object_id=$(azure ad sp create -a $azure_client_id | jq -r .objectId)
|
||||
else
|
||||
azure ad sp create $azure_client_id
|
||||
azure_object_id=$(azure ad sp create $azure_client_id | jq -r .objectId)
|
||||
fi
|
||||
|
||||
if [ $? -ne 0 ]; then
|
||||
|
|
Loading…
Reference in New Issue