Skip to content

Commit 7805555

Browse files
authored
Merge pull request #279586 from mumian/0627-history-groom
ARM deployment history auto grooming at the tenant and the mg scope
2 parents 226de0e + b864580 commit 7805555

File tree

5 files changed

+30
-6
lines changed

5 files changed

+30
-6
lines changed

articles/azure-resource-manager/bicep/overview.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ Bicep provides the following advantages:
8282

8383
You can also create Bicep files in Visual Studio with the [Bicep extension for Visual Studio](https://marketplace.visualstudio.com/items?itemName=ms-azuretools.visualstudiobicep).
8484

85-
- **Repeatable results**: Repeatedly deploy your infrastructure throughout the development lifecycle and have confidence your resources are deployed in a consistent manner. Bicep files are idempotent, which means you can deploy the same file many times and get the same resource types in the same state. You can develop one file that represents the desired state, rather than developing lots of separate files to represent updates. For example, the following file creates a storage account. If you deploy this template and the storage account with the specified properties already exists , no changes are made.
85+
- **Repeatable results**: Repeatedly deploy your infrastructure throughout the development lifecycle and have confidence your resources are deployed in a consistent manner. Bicep files are idempotent, which means you can deploy the same file many times and get the same resource types in the same state. You can develop one file that represents the desired state, rather than developing lots of separate files to represent updates. For example, the following file creates a storage account. If you deploy this template and the storage account with the specified properties already exists, no changes are made.
8686

8787
# [Bicep](#tab/bicep)
8888

@@ -173,6 +173,8 @@ Bicep automatically manages dependencies between resources. You can avoid settin
173173

174174
The structure of the Bicep file is more flexible than the JSON template. You can declare parameters, variables, and outputs anywhere in the file. In JSON, you have to declare all parameters, variables, and outputs within the corresponding sections of the template.
175175

176+
[!INCLUDE [Request ARM template support](../../../includes/template-support.md)]
177+
176178
## Next steps
177179

178180
Get started with the [Quickstart](./quickstart-create-bicep-use-visual-studio-code.md).

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: Deployment history deletions
33
description: Describes how Azure Resource Manager automatically deletes deployments from the deployment history. Deployments are deleted when the history is close to exceeding the limit of 800.
44
ms.topic: conceptual
5-
ms.date: 03/20/2024
5+
ms.date: 08/28/2024
66
ms.custom: devx-track-azurecli, devx-track-arm-template
77
---
88

@@ -12,8 +12,6 @@ Every time you deploy a template, information about the deployment is written to
1212

1313
Azure Resource Manager automatically deletes deployments from your history as you near the limit. Automatic deletion is a change from past behavior. Previously, you had to manually delete deployments from the deployment history to avoid getting an error. This change was implemented on August 6, 2020.
1414

15-
**Automatic deletions are supported for resource group and subscription deployments. Currently, deployments in the history for [management group](deploy-to-management-group.md) and [tenant](deploy-to-tenant.md) deployments aren't automatically deleted.**
16-
1715
> [!NOTE]
1816
> Deleting a deployment from the history doesn't affect any of the resources that were deployed.
1917
@@ -58,7 +56,9 @@ If the current user doesn't have the required permissions, automatic deletion is
5856

5957
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'll receive an error and your deployment will fail.
6058

61-
To disable automatic deletions, 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.
59+
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).
60+
61+
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.
6262

6363
# [PowerShell](#tab/azure-powershell)
6464

articles/azure-resource-manager/templates/overview.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ If you're trying to decide between using ARM templates and one of the other infr
2727

2828
* **Declarative syntax**: ARM templates allow you to create and deploy an entire Azure infrastructure declaratively. For example, you can deploy not only virtual machines, but also the network infrastructure, storage systems, and any other resources you may need.
2929

30-
* **Repeatable results**: Repeatedly deploy your infrastructure throughout the development lifecycle and have confidence your resources are deployed in a consistent manner. Templates are idempotent, which means you can deploy the same template many times and get the same resource types in the same state. You can develop one template that represents the desired state, rather than developing lots of separate templates to represent updates. For example, the following file creates a storage account. If you deploy this template and the storage account with the specified properties already exists , no changes is made.
30+
* **Repeatable results**: Repeatedly deploy your infrastructure throughout the development lifecycle and have confidence your resources are deployed in a consistent manner. Templates are idempotent, which means you can deploy the same template many times and get the same resource types in the same state. You can develop one template that represents the desired state, rather than developing lots of separate templates to represent updates. For example, the following file creates a storage account. If you deploy this template and the storage account with the specified properties already exists, no changes are made.
3131

3232
```json
3333
{
@@ -168,6 +168,8 @@ After creating your template, you may wish to share it with other users in your
168168

169169
This approach means you can safely share templates that meet your organization's standards.
170170

171+
[!INCLUDE [Request ARM template support](../../../includes/template-support.md)]
172+
171173
## Next steps
172174

173175
* For a step-by-step tutorial that guides you through the process of creating a template, see [Tutorial: Create and deploy your first ARM template](template-tutorial-create-first-template.md).
33 KB
Loading

includes/template-support.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
---
2+
3+
ms.service: bicep, arm-templates
4+
ms.topic: include
5+
ms.date: 08/28/2024
6+
7+
---
8+
9+
## Get support
10+
11+
Here are the steps for opening a support ticket for Azure Resource Manager (ARM) template related issues:
12+
13+
1. Open the [Azure portal](https://portal.azure.com).
14+
1. Select the **Support + Troubleshooting** icon from the upper right corner.
15+
1. In **Briefly describe the issue**, enter **ARM template**, and then select **Go**.
16+
1. In **Which service are you having an issue with?**, select **Portal** under **Monitoring & Management**, and then select **Next**.
17+
1. Select a subscription, and then select **Next**.
18+
1. Select **Issue with ARM templates**, and then select **Next**.
19+
20+
:::image type="content" source="./media/template-support/request-arm-template-support.png" alt-text="Screenshot of requesting ARM template support." border="false":::

0 commit comments

Comments
 (0)