-
Notifications
You must be signed in to change notification settings - Fork 3.4k
az role assignment create is NOT idempotent #25872
Copy link
Copy link
Open
Labels
Auto-AssignAuto assign by botAuto assign by botService AttentionThis issue is responsible by Azure service team.This issue is responsible by Azure service team.Synapseact-codegen-extensibility-squadcustomer-reportedIssues that are reported by GitHub users external to the Azure organization.Issues that are reported by GitHub users external to the Azure organization.
Milestone
Metadata
Metadata
Assignees
Labels
Auto-AssignAuto assign by botAuto assign by botService AttentionThis issue is responsible by Azure service team.This issue is responsible by Azure service team.Synapseact-codegen-extensibility-squadcustomer-reportedIssues that are reported by GitHub users external to the Azure organization.Issues that are reported by GitHub users external to the Azure organization.
This is autogenerated. Please review and update as needed.
Describe the bug
Command Name
az synapse role assignment createErrors:
To Reproduce:
Run the role assignment command twice. First time it will succeed if this role wasn't assigned before, second time will fail because it already exists.
az synapse role assignment create --workspace-name {} --role {} --assignee {}Expected Behavior
Not to fail but return the current assignment info. Similar to az role assignment to be idempotent to be used in automation.
Environment Summary
Additional Context