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