Skip to content

Commit f5c4341

Browse files
authored
Merge pull request #113256 from tfitzmac/0429whatif
add short form switch
2 parents 075044e + 9c2f7ad commit f5c4341

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

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

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ title: Template deployment what-if (Preview)
33
description: Determine what changes will happen to your resources before deploying an Azure Resource Manager template.
44
author: mumian
55
ms.topic: conceptual
6-
ms.date: 04/28/2020
6+
ms.date: 04/29/2020
77
ms.author: jgao
88
---
99
# ARM template deployment what-if operation (Preview)
@@ -100,7 +100,7 @@ To preview changes before deploying a template, add the `-Whatif` switch paramet
100100
* `New-AzResourceGroupDeployment -Whatif` for resource group deployments
101101
* `New-AzSubscriptionDeployment -Whatif` and `New-AzDeployment -Whatif` for subscription level deployments
102102

103-
Or, you can use the `-Confirm` switch parameter to preview the changes and get prompted to continue with the deployment.
103+
You can use the `-Confirm` switch parameter to preview the changes and get prompted to continue with the deployment.
104104

105105
* `New-AzResourceGroupDeployment -Confirm` for resource group deployments
106106
* `New-AzSubscriptionDeployment -Confirm` and `New-AzDeployment -Confirm` for subscription level deployments
@@ -117,10 +117,10 @@ To preview changes before deploying a template, use `what-if` with the deploymen
117117
* `az deployment group what-if` for resource group deployments
118118
* `az deployment sub what-if` for subscription level deployments
119119

120-
Or, you can use the `--confirm-with-what-if` parameter to preview the changes and get prompted to continue with the deployment.
120+
You can use the `--confirm-with-what-if` switch (or its short form `-c`) to preview the changes and get prompted to continue with the deployment.
121121

122-
* `az deployment group create --confirm-with-what-if` for resource group deployments
123-
* `az deployment sub create --confirm-with-what-if` for subscription level deployments
122+
* `az deployment group create --confirm-with-what-if` or `-c` for resource group deployments
123+
* `az deployment sub create --confirm-with-what-if` or `-c` for subscription level deployments
124124

125125
The preceding commands return a text summary that you can manually inspect. To get a JSON object that you can programmatically inspect for changes, use:
126126

@@ -334,7 +334,7 @@ results=$(az deployment group what-if --resource-group ExampleGroup --template-u
334334

335335
The what-if operation supports using [deployment mode](deployment-modes.md). When set to complete mode, resources not in the template are deleted. The following example deploys a [template that has no resources defined](https://github.com/Azure/azure-docs-json-samples/blob/master/empty-template/azuredeploy.json) in complete mode.
336336

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.
337+
To preview changes before deploying a template, use the confirm switch parameter with the deployment command. If the changes are as you expected, acknowledge that you want the deployment to complete.
338338

339339
# [PowerShell](#tab/azure-powershell)
340340

0 commit comments

Comments
 (0)