[BUG] Null parameter overrides default value #2795
Labels
bug
Something isn't working
feature: pre-flight-expansion
Issues relating to expansion of ARM and Bicep.
Milestone
Existing rule
Azure.PublicIP.StandardSKU
Description of the issue
I'm trying to fix the WAF-Reliability (Azure.Pillar.Reliability) of the AVM module
avm/res/network/bastion-host
and the tests are failing on following rules:Scenario:
The Bastion module is cross-referencing the module
br/public:avm/res/network/public-ip-address:0.3.2
for Public IP creation, which has a defaultskuName
set to'Standard'
. In the failing test I'm not setting the Public IP Sku explicitly, I'm relying on the default value of the cross-referenced Public IP module. The test is failing: https://github.com/krbar/bicep-registry-modules/actions/runs/8520500847/job/23336745635Even if I explicitly add the
skuName: 'Standard'
, which should not be necessary as this is the default, the test failed anyway: https://github.com/krbar/bicep-registry-modules/actions/runs/8382290824When I skip the PSRule validation and perform the deployment, the SKU of the deployed Public IP in is 'Standard'.
the Basic SKU is not used, but the rule
Azure.PublicIP.MigrateStandard
fails as wellCC: @eriqua @jtracey93
Error messages
Reproduction
Perform the PS Rule validation on the file avm/res/network/bastion-host/tests/e2e/defaults/main.test.bicep
Link to the module root folder: https://github.com/krbar/bicep-registry-modules/tree/users/krbar/bastionWAF/avm/res/network/bastion-host
Version of PSRule
2.9.0
Version of PSRule for Azure
1.35.0
Additional context
No response
The text was updated successfully, but these errors were encountered: