Skip to content

Commit d3c4a49

Browse files
Merge pull request #90277 from tfitzmac/1001quota
added deployment 800 error
2 parents 7d87781 + e301d9a commit d3c4a49

File tree

3 files changed

+52
-1
lines changed

3 files changed

+52
-1
lines changed
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
---
2+
title: Azure deployment quota exceeded
3+
description: Describes how to resolve the error of having more than 800 deployments in the resource group history.
4+
author: tfitzmac
5+
6+
ms.service: azure-resource-manager
7+
ms.topic: troubleshooting
8+
ms.date: 10/01/2019
9+
ms.author: tomfitz
10+
---
11+
12+
# Resolve error when deployment count exceeds 800
13+
14+
Each resource group is limited to 800 deployments in its deployment history. This article describes the error you receive when a deployment fails because it would exceed the allowed 800 deployments. To resolve this error, delete deployments from the resource group history. Deleting a deployment from the history doesn't affect any of the resources that were deployed.
15+
16+
## Symptom
17+
18+
During deployment, you receive an error stating that the current deployment will exceed the quota of 800 deployments.
19+
20+
## Solution
21+
22+
### Azure CLI
23+
24+
Use the [az group deployment delete](/cli/azure/group/deployment#az-group-deployment-delete) command to delete deployments from the history.
25+
26+
```azurecli-interactive
27+
az group deployment delete --resource-group exampleGroup --name deploymentName
28+
```
29+
30+
You can get the current count in the deployment history with the following command:
31+
32+
```azurecli-interactive
33+
az group deployment list --resource-group exampleGroup --query "length(@)"
34+
```
35+
36+
### Azure PowerShell
37+
38+
Use the [Remove-AzResourceGroupDeployment](/powershell/module/az.resources/remove-azresourcegroupdeployment) command to delete deployments from the history.
39+
40+
```azurepowershell-interactive
41+
Remove-AzResourceGroupDeployment -ResourceGroupName exampleGroup -Name deploymentName
42+
```
43+
44+
You can get the current count in the deployment history with the following command:
45+
46+
```azurepowershell-interactive
47+
(Get-AzResourceGroupDeployment -ResourceGroupName exampleGroup).Count
48+
```
49+

articles/azure-resource-manager/resource-manager-common-deployment-errors.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ If you're looking for information about an error code and that information isn't
3131
| Conflict | You're requesting an operation that isn't allowed in the resource's current state. For example, disk resizing is allowed only when creating a VM or when the VM is deallocated. | |
3232
| DeploymentActive | Wait for concurrent deployment to this resource group to complete. | |
3333
| DeploymentFailed | The DeploymentFailed error is a general error that doesn't provide the details you need to solve the error. Look in the error details for an error code that provides more information. | [Find error code](#find-error-code) |
34-
| DeploymentQuotaExceeded | If you reach the limit of 800 deployments per resource group, delete deployments from the history that are no longer needed. You can delete entries from the history with [az group deployment delete](/cli/azure/group/deployment#az-group-deployment-delete) for Azure CLI, or [Remove-AzResourceGroupDeployment](/powershell/module/az.resources/remove-azresourcegroupdeployment) in PowerShell. Deleting an entry from the deployment history doesn't affect the deploy resources. | |
34+
| DeploymentQuotaExceeded | If you reach the limit of 800 deployments per resource group, delete deployments from the history that are no longer needed. | [Resolve error when deployment count exceeds 800](deployment-quota-exceeded.md) |
3535
| DnsRecordInUse | The DNS record name must be unique. Enter a different name. | |
3636
| ImageNotFound | Check VM image settings. | |
3737
| InUseSubnetCannotBeDeleted | You might get this error when trying to update a resource, and the request is processed by deleting and creating the resource. Make sure to specify all unchanged values. | [Update resource](/azure/architecture/building-blocks/extending-templates/update-resource) |

articles/azure-resource-manager/toc.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -222,6 +222,8 @@
222222
href: resource-manager-common-deployment-errors.md
223223
- name: AccountNameInvalid
224224
href: resource-manager-storage-account-name-errors.md
225+
- name: DeploymentQuotaExceeded
226+
href: deployment-quota-exceeded.md
225227
- name: InvalidTemplate
226228
href: resource-manager-invalid-template-errors.md
227229
- name: Linux deployment issues

0 commit comments

Comments
 (0)