Plan Vs WhatIf
-Plan is available today:
New-AzureSqlVmToolkitDeployment -ConfigFile .\config.local.yaml -SecurityAssessmentAdvice -PlanIt does not call Azure. It validates config and prints the intended deployment shape.
-WhatIf
Section titled “-WhatIf”The public module command supports PowerShell -WhatIf as an Azure-aware dry run:
Connect-AzAccountNew-AzureSqlVmToolkitDeployment -ConfigFile .\config.local.yaml -WhatIfThis validates config, reads Azure state, reports create/reuse/update/drift decisions, and wraps mutating actions in ShouldProcess. It does not create, update, or run guest commands while -WhatIf is active.
Difference
Section titled “Difference”- Use
-Planbefore signing in, while editing YAML, or when you only need resolved resource names. - Use
-WhatIfafter signing in, when you need to know what the toolkit would do against the current subscription. - Use a real deployment only after
-WhatIfreports expected drift and update decisions.