Skip to content

Commit 74b6ffd

Browse files
Merge pull request #252579 from mumian/0922-size-limit
Update the template size and resource size limitations
2 parents 86d5659 + 8104335 commit 74b6ffd

File tree

5 files changed

+8
-7
lines changed

5 files changed

+8
-7
lines changed

articles/azure-resource-manager/management/azure-subscription-service-limits.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: Azure subscription limits and quotas
33
description: Provides a list of common Azure subscription and service limits, quotas, and constraints. This article includes information on how to increase limits along with maximum values.
44
ms.topic: conceptual
5-
ms.date: 08/24/2023
5+
ms.date: 09/26/2023
66
---
77

88
# Azure subscription and service limits, quotas, and constraints

articles/azure-resource-manager/templates/best-practices.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,15 @@ title: Best practices for templates
33
description: Describes recommended approaches for authoring Azure Resource Manager templates (ARM templates). Offers suggestions to avoid common problems when using templates.
44
ms.topic: conceptual
55
ms.custom: devx-track-arm-template
6-
ms.date: 09/01/2022
6+
ms.date: 09/22/2023
77
---
88
# ARM template best practices
99

1010
This article shows you how to use recommended practices when constructing your Azure Resource Manager template (ARM template). These recommendations help you avoid common problems when using an ARM template to deploy a solution.
1111

1212
## Template limits
1313

14-
Limit the size of your template to 4 MB. The 4-MB limit applies to the final state of the template after it has been expanded with iterative resource definitions, and values for variables and parameters. The parameter file is also limited to 4 MB. You may get an error with a template or parameter file of less than 4 MB if the total size of the request is too large. For more information about how to simplify your template to avoid a large request, see [Resolve errors for job size exceeded](error-job-size-exceeded.md).
14+
Limit the size of your template to 4 MB, and each resource definition to 1 MB. The limits apply to the final state of the template after it has been expanded with iterative resource definitions, and values for variables and parameters. The parameter file is also limited to 4 MB. You may get an error with a template or parameter file of less than 4 MB if the total size of the request is too large. For more information about how to simplify your template to avoid a large request, see [Resolve errors for job size exceeded](error-job-size-exceeded.md).
1515

1616
You're also limited to:
1717

articles/azure-resource-manager/troubleshooting/error-job-size-exceeded.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ title: Job size exceeded error
33
description: Describes how to troubleshoot errors for job size exceeded or if the template is too large for deployments using a Bicep file or Azure Resource Manager template (ARM template).
44
ms.topic: troubleshooting
55
ms.custom: devx-track-bicep, devx-track-arm-template
6-
ms.date: 04/05/2023
6+
ms.date: 09/22/2023
77
---
88

99
# Resolve errors for job size exceeded
@@ -20,7 +20,7 @@ You get this error when the deployment exceeds an allowed limit. Typically, you
2020

2121
The deployment job can't exceed 1 MB and that includes metadata about the request. For large templates, the metadata combined with the template might exceed a job's allowed size.
2222

23-
The template can't exceed 4 MB. The 4-MB limit applies to the final state of the template after it has been expanded for resource definitions that use loops to create many instances. The final state also includes the resolved values for variables and parameters.
23+
The template can't exceed 4 MB, and each resource definition can't exceed 1 MB. The limits apply to the final state of the template after it has been expanded for resource definitions that use loops to create many instances. The final state also includes the resolved values for variables and parameters.
2424

2525
Other template limits are:
2626

includes/azure-resource-groups-limits.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
author: tfitzmac
33
ms.service: azure-resource-manager
44
ms.topic: include
5-
ms.date: 09/01/2020
5+
ms.date: 09/26/2023
66
ms.author: tomfitz
77
---
88
| Resource | Limit |
@@ -29,6 +29,7 @@ ms.author: tomfitz
2929
| Template expression |24,576 chars |
3030
| Resources in exported templates |200 |
3131
| Template size |4 MB |
32+
| Resource definition size |1 MB |
3233
| Parameter file size |4 MB |
3334

3435
You can exceed some template limits by using a nested template. For more information, see [Use linked templates when you deploy Azure resources](../articles/azure-resource-manager/templates/linked-templates.md). To reduce the number of parameters, variables, or outputs, you can combine several values into an object. For more information, see [Objects as parameters](/azure/architecture/guide/azure-resource-manager/advanced-templates/objects-as-parameters).

includes/management-group-limits.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
author: tfitzmac
55
ms.service: governance
66
ms.topic: include
7-
ms.date: 03/26/2020
7+
ms.date: 09/26/2023
88
ms.author: tomfitz
99
ms.custom: include file
1010
---

0 commit comments

Comments
 (0)