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
Copy file name to clipboardExpand all lines: articles/azure-resource-manager/templates/template-deploy-what-if.md
+11-4Lines changed: 11 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,7 +8,7 @@ ms.author: jgao
8
8
---
9
9
# ARM template deployment what-if operation (Preview)
10
10
11
-
Before deploying an Azure Resource Manager (ARM) template, you might want to preview the changes that will happen. Azure Resource Manager provides the what-if operation to let you see how resources will change if you deploy the template. The what-if operation doesn't make any changes to existing resources. Instead, it predicts the changes if the specified template is deployed.
11
+
Before deploying an Azure Resource Manager (ARM) template, you can preview the changes that will happen. Azure Resource Manager provides the what-if operation to let you see how resources will change if you deploy the template. The what-if operation doesn't make any changes to existing resources. Instead, it predicts the changes if the specified template is deployed.
12
12
13
13
> [!NOTE]
14
14
> The what-if operation is currently in preview. As a preview release, the results may sometimes show that a resource will change when actually no change will happen. We're working to reduce these issues, but we need your help. Please report these issues at [https://aka.ms/whatifissues](https://aka.ms/whatifissues).
@@ -95,7 +95,7 @@ Resource changes: 1 to modify.
95
95
96
96
### Azure PowerShell
97
97
98
-
To see a preview of the changes before deploying a template, add the `-Whatif` switch parameter to the deployment command.
98
+
To preview changes before deploying a template, add the `-Whatif` switch parameter to the deployment command.
99
99
100
100
*`New-AzResourceGroupDeployment -Whatif` for resource group deployments
101
101
*`New-AzSubscriptionDeployment -Whatif` and `New-AzDeployment -Whatif` for subscription level deployments
@@ -112,7 +112,7 @@ The preceding commands return a text summary that you can manually inspect. To g
112
112
113
113
### Azure CLI
114
114
115
-
To see a preview of the changes before deploying a template, use `what-if` with the deployment command.
115
+
To preview changes before deploying a template, use `what-if` with the deployment command.
116
116
117
117
*`az deployment group what-if` for resource group deployments
118
118
*`az deployment sub what-if` for subscription level deployments
@@ -152,7 +152,7 @@ The what-if operation lists six different types of changes:
152
152
153
153
## Result format
154
154
155
-
You can control the level of detail that is returned about the predicted changes. You have two options:
155
+
You control the level of detail that is returned about the predicted changes. You have two options:
156
156
157
157
***FullResourcePayloads** - returns a list of resources that will change and details about the properties that will change
158
158
***ResourceIdOnly** - returns a list of resources that will change
@@ -336,6 +336,8 @@ The what-if operation supports using [deployment mode](deployment-modes.md). Whe
336
336
337
337
To preview changes before deploying a template, use the `-Confirm` switch parameter with the deployment command. If the changes are as you expected, confirm that you want the deployment to complete.
@@ -389,4 +395,5 @@ You see the expected changes and can confirm that you want the deployment to run
389
395
390
396
- If you notice incorrect results from the preview release of what-if, please report the issues at [https://aka.ms/whatifissues](https://aka.ms/whatifissues).
391
397
- To deploy templates with Azure PowerShell, see [Deploy resources with ARM templates and Azure PowerShell](deploy-powershell.md).
398
+
- To deploy templates with Azure CLI, see [Deploy resources with ARM templates and Azure CLI](deploy-cli.md).
392
399
- To deploy templates with REST, see [Deploy resources with ARM templates and Resource Manager REST API](deploy-rest.md).
0 commit comments