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
|
fi
|
||||||
|
|
||||||
if [ "${newer_syntax}" = true ]; then
|
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
|
else
|
||||||
azure ad sp create $azure_client_id
|
azure_object_id=$(azure ad sp create $azure_client_id | jq -r .objectId)
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ $? -ne 0 ]; then
|
if [ $? -ne 0 ]; then
|
||||||
|
|
Loading…
Reference in New Issue