Open ErHaWi opened 8 months ago
This is indeed an annoying problem! Also reported here https://github.com/Azure/bicep-types-az/issues/1956
The workaround I use is to set this up with PowerShell in a deployment script. It is not an ideal workaround because deployment-scripts feel like a hack.
Note that this is a problem in the underlying API, so not really something Bicep will be able to fix.
Bicep version
Bicep CLI version 0.25.53 (c0ad57dff6)
Describe the bug We're trying to incorporate privileged identity management in deployment of subscriptions to our product teams. We want to deploy the ability for developers to activate contributor permissions at the subscription level. Changes to our access structure would mean redeployment of templates. They need to be idempotent for this to work properly (as most azure resources already are). As of now, consecutive deployments of privileged identity management assignments fails with conflict after the initial deploy.
To Reproduce deploy the bicep file twice on subscription level with
az bicep deployment sub create
Additional context consecutive deployments yield the following error: