Azure / AzOps

AzOps is a PowerShell module which deploys (Push) ARM Resource Templates & Bicep files at all Azure scope levels and exports (Pull) ARM resource hierarchy.
https://aka.ms/AzOps
MIT License
384 stars 163 forks source link

Adding Support for Deletion of custom ARM and Bicep template resource #861

Closed Jefajers closed 6 months ago

Jefajers commented 7 months ago

Overview/Summary

This PR expands deletion support from a handfull of AzOps generated templates to include both AzOps generated resource group templates/folders and custom ARM and Bicep templates while bumping module dependencies for Az.Accounts 2.16.0 and Az.Resources 6.16.0.

Closes #785 and fixes #849, with improved deleted content serialization logic.

Deletion of custom ARM and Bicep template resource is disabled by default. To enable it, set Core.CustomTemplateResourceDeletion to true. Be aware, once this feature is turned on, AzOps will attempt resource deletion for each identifed resoruce id contained in the template and parameter file, read more in the wiki.

Breaking Changes

N/A

Testing Evidence

Testing has been performed to validate deletion logic update in both GitHub and ADO with no known errors. Automated test cases have been added for basic testing of deleting custom templates.

As part of this Pull Request I have