Azure / deployment-stacks

Contains Deployment Stacks CLI scripts and releases
MIT License
90 stars 7 forks source link

`-PurgeResources` Unavailable on `Remove-AzSubscriptionDeploymentStack` #19

Closed joshuawaddell closed 2 years ago

joshuawaddell commented 3 years ago

Describe the bug When running the final step in the tutorial with the -PurgeResources parameter, an error is generated:

'A parameter cannot be found that matches parameter name 'PurgeResources''.

Screenshots image

image

Desktop (please complete the following information):

snarkywolverine commented 3 years ago

@mumian Has a change to the readme that will address this.

As mentioned in the readme, the underlying functionality is not yet available due to a known limitation:

In the preview, deleting a deploymentStack detaches all of its managed resources. To delete all the managedResources, first update the deploymentStack with an empty template (similar to the one below) and set `-UpdateBehavior purgeResources`. After that completes, delete the deploymentStack.

(The template referenced in that quote is also added back in @mumian's PR - https://github.com/Azure/deployment-stacks/pull/18

Thanks for the feedback!