Skip to content

Commit ebd0aad

Browse files
committed
what if nested template limit
1 parent a65ed85 commit ebd0aad

File tree

1 file changed

+12
-4
lines changed

1 file changed

+12
-4
lines changed

articles/azure-resource-manager/templates/deploy-what-if.md

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
11
---
22
title: Template deployment what-if
33
description: Determine what changes will happen to your resources before deploying an Azure Resource Manager template.
4-
author: tfitzmac
54
ms.topic: conceptual
6-
ms.date: 07/11/2022
7-
ms.author: tomfitz
5+
ms.date: 02/14/2023
86
ms.custom: devx-track-azurepowershell, devx-track-azurecli
97
ms.devlang: azurecli
108
---
@@ -20,6 +18,16 @@ To learn more about what-if, and for hands-on guidance, see [Preview Azure deplo
2018

2119
[!INCLUDE [permissions](../../../includes/template-deploy-permissions.md)]
2220

21+
## What-if limits
22+
23+
What-if expands nested templates until these limits are reached:
24+
25+
- 500 nested templates.
26+
- 800 resource groups in a cross resource-group deployment.
27+
- 5 minutes have been taken for expanding the nested templates.
28+
29+
When one of the limits is reached, the remaining resources' [change type](#change-types) is set to **Ignore**.
30+
2331
## Install Azure PowerShell module
2432

2533
To use what-if in PowerShell, you must have version **4.2 or later of the Az module**.
@@ -132,7 +140,7 @@ The what-if operation lists six different types of changes:
132140

133141
- **Delete**: This change type only applies when using [complete mode](deployment-modes.md) for deployment. The resource exists, but isn't defined in the template. With complete mode, the resource will be deleted. Only resources that [support complete mode deletion](./deployment-complete-mode-deletion.md) are included in this change type.
134142

135-
- **Ignore**: The resource exists, but isn't defined in the template. The resource won't be deployed or modified.
143+
- **Ignore**: The resource exists, but isn't defined in the template. The resource won't be deployed or modified. When you reach the limits for expanding nested templates, you will encounter this change type. See [What-if limits](#what-if-limits).
136144

137145
- **NoChange**: The resource exists, and is defined in the template. The resource will be redeployed, but the properties of the resource won't change. This change type is returned when [ResultFormat](#result-format) is set to `FullResourcePayloads`, which is the default value.
138146

0 commit comments

Comments
 (0)