mirror of
https://github.com/hashicorp/packer.git
synced 2026-05-28 04:35:38 -04:00
Changed Service Principal Creation sequence to comply with newer CLI reqs
This commit is contained in:
parent
9f3393f7e9
commit
e343ad238b
1 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue