Bug fix: suppress azapi body changes that differ only in Azure resource ID casing
This release fixes a misleading diff for azapi_update_resource and azapi_resource plans:
body properties whose before/after values are identical Azure resource IDs except for letter
casing are no longer reported as real changes.
🐛 Bug fixes
-
azapi body casing-only changes suppressed (
--ignore-azure-id-case-changes): when an
azapi_update_resourceorazapi_resourcehas a body property that changes only in the
capitalisation of an Azure resource ID segment (e.g.APP-RG-GWCvsapp-rg-gwc),
tfplan2md was incorrectly displaying that property as a real infrastructure change. Azure's
ARM API is known to return resource IDs with inconsistent casing on successive reads, so
these differences carry no infrastructure significance and should be suppressed.The fix threads the
ignoreAzureIdCaseChangesflag throughAzApiBodyRenderer.AreEqual()
and introduces a newAzApiResourceIdCaseChangeFilterthat removes casing-only body-change
rows before they reach the Markdown output. The equivalent suppression forazurerm
resources has been in place since v1.17.0; this release extends the same behaviour to
azapiproviders. The--ignore-azure-id-case-changesflag (enabled by default) now
consistently covers both provider families.