Open olljanat opened 2 years ago
Thanks for raising this @olljanat we will triage properly once #227 is merged
FYI. I did figure out that if you run az deployment group what-if
with flag --no-pretty-print
then API will return JSON which can be easily parsed with PowerShell (included example to my )
Ado sync
FYI. As result of my ticket 2208010050001440 I ended up to creating this post https://feedback.azure.com/d365community/idea/2adb098a-4845-ed11-a81b-000d3a7b5d8c which was requested by Microsoft Support which they hoped to be able to use to raise this idea for wider awareness.
You can make somethings leave,such as learning lecture, besides nature labor.
It should be noted that What-If is currently having issues with ARM/Bicep as stated here issue 157. This should be added to the overall list.
Describe the solution you'd like
Picked up from https://github.com/Azure/ALZ-Bicep/issues/244#issuecomment-1137199634
I see that ability to be able to run pull requests with WhatIf mode against of production is very critical as other why it is not possible to have GIT repo with CI to production and multiple persons contributing to code without high risk to break things.
That why pull request validation here should contains following steps for all modules:
Tricky part is long list of known issues listed on https://aka.ms/WhatIfIssues which can be only fixed by Microsoft.
Status per module:
#250#276Describe alternatives you've considered
I really don't see good alternatives for this.
Additional context
I did drop cleaned copy of my draft solution about how to use ALZ-Bicep with Azure DevOps CI to https://github.com/olljanat/alz-bicep-ci and it already contains WhatIf verification for pull requests on those parts which I have got working.