Azure / arm-template-whatif

A repository to track issues related to what-if noise suppression
MIT License
90 stars 14 forks source link

az deployment sub what-if does not identity bastion resource, but after merging the pull request the bastion resource got provisioned. #380

Closed ehsaneskandariboc closed 1 week ago

ehsaneskandariboc commented 3 weeks ago

Bicep version Bicep CLI v0.30.23

Describe the bug What-if does not identity bastion resource, but after merging the pull request the bastion resource got provisioned. Link to the Log: https://github.com/Build-On-Clolud-Inc/landing-zone-hub-platform/actions/runs/11541876151/job/32124402219

To Reproduce Link to the source code: https://github.com/Build-On-Clolud-Inc/landing-zone-hub-platform/tree/sbx

Link to the github action YAML: https://github.com/Build-On-Clolud-Inc/landing-zone-hub-platform/blob/sbx/.github/workflows/bicep-sbx-pipeline.yml

Additional context Link to Az deploy: https://github.com/Build-On-Clolud-Inc/landing-zone-hub-platform/actions/runs/11541889179/job/32124432298

Link to the deployment on azure: https://portal.azure.com/#@buildoncloud.ca/resource/subscriptions/7a79e189-21f1-4bbc-b88e-e8e95784d59f/resourceGroups/rg-sbx-landingzone-eastus-01/deployments

jeskew commented 1 week ago

Duplicate of #157

The bastion module is not evaluated during what-if because runtime expressions are passed to it as parameters in main.bicep. This will be addressed by the fix for #157

ehsaneskandariboc commented 1 week ago

Seriously? After near four years for the other issue!