Skip to content

Commit 3091da7

Browse files
committed
update
1 parent 7b4123a commit 3091da7

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

articles/azure-resource-manager/templates/deployment-history-deletions.md

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,12 @@ ms.custom: devx-track-azurecli, devx-track-arm-template
88

99
# Automatic deletions from deployment history
1010

11-
When you deploy resources to Azure, the deployment details are recorded in the deployment history at the scope where the deployment occurs. Each scope—whether it's a resource group, subscription, or management group—can store up to **800 deployments** in its history. Once this limit is reached, Azure **automatically deletes the oldest deployments** to make space for new ones. This automatic cleanup process was implemented on **August 6, 2020**.
11+
When you deploy resources to Azure, the deployment details are recorded in the deployment history at the scope where the deployment occurs. Each scope—whether it's a resource group, subscription, management group, tenant—can store up to **800 deployments** in its history. Once this limit is reached, Azure **automatically deletes the oldest deployments** to make space for new ones. This automatic cleanup process was implemented on **August 6, 2020**.
1212

1313
> [!NOTE]
1414
> Deleting a deployment from the history doesn't affect any of the resources that were deployed.
1515
16-
## How automatic deployment deletions work
16+
## Overview of automatic deployment history deletions
1717

1818
Deployments are deleted from your history when you exceed 700 deployments. Azure Resource Manager deletes deployments until the history is down to 600. The oldest deployments are always deleted first.
1919

@@ -32,7 +32,7 @@ The deletions are requested under the identity of the user who deployed the temp
3232

3333
If the current user doesn't have the required permissions, automatic deletion is attempted again during the next deployment.
3434

35-
## Removing locks that block deletions
35+
## Handling resource locks
3636

3737
If you have a [CanNotDelete lock](../management/lock-resources.md) on a resource group or a subscription, the deployments for that scope can't be automatically deleted. To enable automatic cleanup of the deployment history, you need to remove the lock.
3838

@@ -62,13 +62,14 @@ DELETE https://management.azure.com/subscriptions/{subscriptionId}/resourceGroup
6262

6363
---
6464

65-
## How to opt out of automatic deletions
65+
## Opting out of automatic deletions
6666

67-
You can opt out of automatic deletions from the history. **Use this option only when you want to manage the deployment history yourself.** The limit of 800 deployments in the history is still enforced. If you exceed 800 deployments, you receive an error and your deployment fail.
67+
You can opt out of automatic deletion to manually manage your deployment history. **Use this option cautiously**, as the **800-deployment limit** remains enforced, and exceeding it causes deployment failures.
6868

69-
To disable automatic deletions at the tenant or the management group scope, open a support ticket. For the instructions, see [Request support](./overview.md#get-support).
69+
> [!IMPORTANT]
70+
> Opting out is available only for subscription and resource group scopes, as it's controlled by the subscription-level `Microsoft.Resources/DisableDeploymentGrooming` feature flag. For tenant or management group scopes, open a [support ticket]((./overview.md#get-support)) to disable automatic deletion.
7071
71-
To disable automatic deletions at the subscription scope, register the `Microsoft.Resources/DisableDeploymentGrooming` feature flag. When you register the feature flag, you opt out of automatic deletions for the entire Azure subscription. You can't opt out for only a particular resource group. To reenable automatic deletions, unregister the feature flag.
72+
To disable automatic deletion at the subscription scope (affects all resource groups within it):
7273

7374
### [PowerShell](#tab/azure-powershell)
7475

0 commit comments

Comments
 (0)