Azure / deployment-stacks

Contains Deployment Stacks CLI scripts and releases
MIT License
87 stars 6 forks source link

(Az 10.2.0) New-Az*DeploymentStack cmdlets incorrectly issuing "already exists" warning prompt when deployment stacks do not exist #120

Closed dantedallag closed 12 months ago

dantedallag commented 1 year ago

Describe the bug Documenting this bug as a known issue with the newest release (10.2.0) of the PowerShell cmdlets. When attempting to use New-AzDeploymentStack cmdlets with a non-existing stack, a warning prompt will appear and incorrectly alert that a stack with that name already exists. In the opposite case, if a stack already exists and a New-AzDeployment stack cmdlet is used, a warning prompt will not appear (which is should) and the new stack will be upserted.

To Reproduce Anytime using the New-Az*DeploymentStack cmdlets with the 10.2.0 version of Az PowerShell.

Navigating Around This Bug

  1. Continue using the 10.1.0 version of Az Powershell. For the Deployment Stack cmdlets, the only feature update in 10.2.0 is better handling of tag upserts/deletion.
  2. Use '-Force' flag to bypass warning prompts regardless.
dantedallag commented 12 months ago

Fixed with Az.Resources release, 6.9.1.