Articles → MICROSOFT AZURE → Whatif Command For Azure ARM
Whatif Command For Azure ARM
Purpose
Steps
- Upgrade the PowerShell
- Install 1.12.1-preview of Az.Resources module
- Create an IP address and download the template files
- Run whatif command
Upgrade The Powershell
iex "& { $(irm https://aka.ms/install-powershell.ps1) } -UseMSI"
Install 1.12.1-Preview Of Az.Resources Module
Install-Module Az.Resources -RequiredVersion 1.12.1-preview -AllowPrerelease
Create An IP Address And Download The Template Files
Run Whatif Command
New-AzResourceGroupDeployment -ResourceGroupName "RG2" -TemplateParameterFile ./parameters.json -TemplateFile ./template.json -WhatIf
New-AzResourceGroupDeployment -ResourceGroupName "RG2" -TemplateParameterFile ./parameters.json -TemplateFile ./template.json