Changed Service Principal Creation sequence to comply with newer CLI reqs

This commit is contained in:
Eugene Chuvyrov 2016-11-08 00:20:45 -08:00
parent 9f3393f7e9
commit e343ad238b

View File

@ -166,9 +166,9 @@ createServicePrincipal() {
fi
if [ "${newer_syntax}" = true ]; then
azure_object_id=$(azure ad sp create -a $azure_client_id | jq -r .objectId)
azure_object_id=$(azure ad sp create -a $azure_client_id --json | jq -r .objectId)
else
azure_object_id=$(azure ad sp create $azure_client_id | jq -r .objectId)
azure_object_id=$(azure ad sp create $azure_client_id --json | jq -r .objectId)
fi
if [ $? -ne 0 ]; then