Closed promisinganuj closed 2 years ago
The deploy.sh script is failing while creating the Synapse SP with the following error:
deploy.sh
sp_synapse_out=$(az ad sp create-for-rbac \ --skip-assignment \ --scopes "/subscriptions/$AZURE_SUBSCRIPTION_ID/resourceGroups/$resource_group_name/providers/Microsoft.Synapse/workspaces/$synapseworkspace_name" \ --name "$sp_synapse_name" \ --output json) ERROR: Usage error: To create role assignments, specify both --role and --scopes.
It seems to be due to a recent change https://github.com/Azure/azure-cli/issues/21960 in Azure CLI version 2.35.0.
The deployment shouldn't fail.
./deploy.sh
None
Description
The
deploy.sh
script is failing while creating the Synapse SP with the following error:It seems to be due to a recent change https://github.com/Azure/azure-cli/issues/21960 in Azure CLI version 2.35.0.
Expected Behavior
The deployment shouldn't fail.
Reproduce
./deploy.sh
.Additional Context
None