Azure-Samples / modern-data-warehouse-dataops

DataOps for Microsoft Data Platform technologies. https://aka.ms/dataops-repo
MIT License
588 stars 459 forks source link

Parking Sensors Synapse deployment failing #520

Closed promisinganuj closed 2 years ago

promisinganuj commented 2 years ago

Description

The deploy.sh script is failing while creating the Synapse SP with the following error:

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.

Expected Behavior

The deployment shouldn't fail.

Reproduce

  1. Spin-up a fresh dev container (sometimes it's cached in old dev containers)
  2. Run ./deploy.sh.

Additional Context

None