Answer No to Confirmation Prompt (to avoid a destructive operation)

New-AzureRmResourceGroup -ResourceGroupName "Name" -Location "uksouth" Provided resource group already exists. Are you sure you want to update it? [Y] Yes [N] No [S] Suspend [?] Help (default is "Y"): N 

How do I answer No in the script?

-Confirm:$false doesn’t work

-Force would overwrite the existing resource group which is the opposite of what I want

submitted by /u/leviathaan
[link] [comments]

Leave a Reply