Skip to content

Commit 520e044

Browse files
committed
add short-circuiting
1 parent 7dd79fb commit 520e044

File tree

1 file changed

+15
-10
lines changed

1 file changed

+15
-10
lines changed

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

Lines changed: 15 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,21 @@ Install-Module -Name Az -Force
3737
For more information about installing modules, see [Install Azure PowerShell](/powershell/azure/install-azure-powershell).
3838

3939
---
40+
41+
## Limitations
42+
43+
What-if expands nested templates until these limits are reached:
44+
45+
- 500 nested templates.
46+
- 800 resource groups in a cross resource-group deployment.
47+
- 5 minutes taken for expanding the nested templates.
48+
49+
When one of the limits is reached, the remaining resources' [change type](#change-types) is set to **Ignore**.
50+
51+
### Short-circuiting
52+
53+
The what-if operation in Bicep deployments may encounter "short-circuiting," a scenario where the service cannot fully analyze a module or resource due to the deployment's structure or dependencies on external state. Short-circuiting of an individual resource occurs when its resource ID or API version cannot be calculated outside the deployment context, often due to unresolved expressions or external dependencies. While rare, short-circuiting of modules or nested deployment resources can also happen, resulting in all resources within the module being excluded from the what-if analysis results. In such cases, the API response includes a diagnostic message to indicate the issue.
54+
4055
## Running the what-if operation
4156

4257
### What-if commands
@@ -453,16 +468,6 @@ The following results show the two different output formats:
453468
Resource changes: 1 to deploy.
454469
```
455470

456-
## Limitations
457-
458-
What-if expands nested templates until these limits are reached:
459-
460-
- 500 nested templates.
461-
- 800 resource groups in a cross resource-group deployment.
462-
- 5 minutes taken for expanding the nested templates.
463-
464-
When one of the limits is reached, the remaining resources' [change type](#change-types) is set to **Ignore**.
465-
466471
## Clean up resources
467472

468473
When you no longer need the example resources, use Azure CLI or Azure PowerShell to delete the resource group.

0 commit comments

Comments
 (0)