From 9f3393f7e97576a7276c72f906f2f534bbf3704f Mon Sep 17 00:00:00 2001 From: Eugene Chuvyrov Date: Tue, 8 Nov 2016 00:16:07 -0800 Subject: [PATCH] Changed Service Principal Creation sequence to comply with newer CLI reqs --- contrib/azure-setup.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/contrib/azure-setup.sh b/contrib/azure-setup.sh index 43be0ea9f..0d8f8a784 100755 --- a/contrib/azure-setup.sh +++ b/contrib/azure-setup.sh @@ -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