Azure / deployment-stacks

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

No warning/error when resources are overwritten with deployment stacks #67

Closed linasendriukaitis closed 1 year ago

linasendriukaitis commented 1 year ago

Is your feature request related to a problem? Please describe. When a resource has been changed by a 3rd party source (pipeline, PowerShell, Portal, etc.) there is no warning that the changes will be overwritten when re-running the Set-AzSubscriptionDeploymentStack command

Describe the solution you'd like I would like to have a solution that allows me to specify the behavior and have the ability to receive a list of discrepancies between the code base and the actual state of the resources

Describe alternatives you've considered None

Additional context None

slavizh commented 1 year ago

Such kind of feature is already present although not perfect: https://learn.microsoft.com/en-us/azure/azure-resource-manager/templates/deploy-what-if?tabs=azure-powershell

It is just not implemented on the commandlets yet.

bmoore-msft commented 1 year ago

@slavizh has it right, we'll have /what-if implemented in the public preview release...