Skip to content

Commit 03c828a

Browse files
committed
revise
1 parent 0eeb525 commit 03c828a

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

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

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ ms.author: jgao
88
---
99
# ARM template deployment what-if operation (Preview)
1010

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.
1212

1313
> [!NOTE]
1414
> 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.
9595

9696
### Azure PowerShell
9797

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.
9999

100100
* `New-AzResourceGroupDeployment -Whatif` for resource group deployments
101101
* `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
112112

113113
### Azure CLI
114114

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.
116116

117117
* `az deployment group what-if` for resource group deployments
118118
* `az deployment sub what-if` for subscription level deployments
@@ -152,7 +152,7 @@ The what-if operation lists six different types of changes:
152152

153153
## Result format
154154

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:
156156

157157
* **FullResourcePayloads** - returns a list of resources that will change and details about the properties that will change
158158
* **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
336336

337337
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.
338338

339+
# [PowerShell](#tab/azure-powershell)
340+
339341
```azurepowershell
340342
New-AzResourceGroupDeployment `
341343
-ResourceGroupName ExampleGroup `
@@ -344,6 +346,8 @@ New-AzResourceGroupDeployment `
344346
-TemplateUri "https://raw.githubusercontent.com/Azure/azure-docs-json-samples/master/empty-template/azuredeploy.json"
345347
```
346348

349+
# [Azure CLI](#tab/azure-cli)
350+
347351
```azurecli
348352
az deployment group create \
349353
--resource-group ExampleGroup \
@@ -352,6 +356,8 @@ az deployment group create \
352356
--template-uri "https://raw.githubusercontent.com/Azure/azure-docs-json-samples/master/empty-template/azuredeploy.json"
353357
```
354358

359+
---
360+
355361
Because no resources are defined in the template and the deployment mode is set to complete, the virtual network will be deleted.
356362

357363
![Resource Manager template deployment what-if operation output deployment mode complete](./media/template-deploy-what-if/resource-manager-deployment-whatif-output-mode-complete.png)
@@ -389,4 +395,5 @@ You see the expected changes and can confirm that you want the deployment to run
389395

390396
- 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).
391397
- 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).
392399
- To deploy templates with REST, see [Deploy resources with ARM templates and Resource Manager REST API](deploy-rest.md).

0 commit comments

Comments
 (0)