I'm trying to deploy an Azure Bicep template with
az deployment sub create --name "deploymentName" --template-file template.json --location="westeurope" --parameters ...
When I go to Azure Portal to review my resource group deployments I can see this error message: Unable to edit or replace deployment {deploymentName}: previous deployment from {datetime} is still active (expiration time is {datetime})
And, If I access to the wrong deployment I can't see any error. Azure says Your deployment is complete.
What's wrong? This error occurs intermittently, on different resources each time. We need delete the wrong deployments many times to make it works.
I reviewed my Azure Bicep template and all resources contains the depends_on clause in order to avoid concurrency issues