Changed Service Principal Creation sequence to comply with newer CLI reqs

This commit is contained in:
Eugene Chuvyrov 2016-11-08 00:16:07 -08:00
parent f7c6180ff7
commit 9f3393f7e9
1 changed files with 2 additions and 2 deletions

View File

@ -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