You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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**.
12
12
13
13
> [!NOTE]
14
14
> Deleting a deployment from the history doesn't affect any of the resources that were deployed.
15
15
16
-
## How automatic deployment deletions work
16
+
## Overview of automatic deployment history deletions
17
17
18
18
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.
19
19
@@ -32,7 +32,7 @@ The deletions are requested under the identity of the user who deployed the temp
32
32
33
33
If the current user doesn't have the required permissions, automatic deletion is attempted again during the next deployment.
34
34
35
-
## Removing locks that block deletions
35
+
## Handling resource locks
36
36
37
37
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.
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.
68
68
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.
70
71
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):
0 commit comments