I just hit limit of the 800 deployment resources on brand new subscription. I checked tutorial(1) and it really did not at all.
Running az deployment sub create --template-file template/main.bicep --parameters template/main.parameters.json --name main
fails with:
{"code": "MultipleErrorsOccurred", "message": "Multiple error occurred: Conflict,Conflict,Conflict,Conflict,Conflict,Conflict. Please see details."}
Inner Errors:
{"code": "DeploymentQuotaExceeded", "message": "Creating the deployment 'QualysPolicyAssignment1673289101' would exceed the quota of '800'. The current deployment count is '800'. Please delete some deployments before creating a new one, or see https://aka.ms/800LimitFix for information on managing deployment limits."}
Inner Errors:
{"code": "DeploymentQuotaExceeded", "message": "Creating the deployment 'AMADefaultLaw1673289101' would exceed the quota of '800'. The current deployment count is '800'. Please delete some deployments before creating a new one, or see https://aka.ms/800LimitFix for information on managing deployment limits."}
...
I have not opted out from the automatic deployment deletion: az feature show --namespace Microsoft.Resources --name DisableDeploymentGrooming
{
"id": "/subscriptions/50e9bd86-fa9c-422f-be15-4a37557fbdb8/providers/Microsoft.Features/providers/Microsoft.Resources/features/DisableDeploymentGrooming",
"name": "Microsoft.Resources/DisableDeploymentGrooming",
"properties": {
"state": "NotRegistered"
},
"type": "Microsoft.Features/providers/features"
}
Also no resource locks are present: az lock list
[]
Some pruning probably happened az deployment sub list --query "[].name" --output tsv | wc -l
600
but still deployments fails with
{"code": "DeploymentQuotaExceeded", "message": "Creating the deployment 'AksDefenderExtensionPolicyAssignment1673290410' would exceed the quota of '800'. The current deployment count is '802'. Please delete some deployments before creating a new one, or see https://aka.ms/800LimitFix for information on managing deployment limits."}
I wonder what would be the next steps with the issue?
Ps. I tried to ask correct tag or support ticket service type from @AzureSupport but did not get any good answers. Please let me know about more suitable tags.
(1) https://learn.microsoft.com/en-gb/azure/azure-resource-manager/templates/deployment-history-deletions?tabs=azure-cli