Module Issue: Storage Account - Incorrect Handling of denyEncryptionScopeOverride Parameter #4258
Open
1 task done
Labels
Needs: Triage 🔍
Maintainers need to triage still
Status: Response Overdue 🚩
When an issue/PR has not been responded to for X amount of days
Type: AVM 🅰️ ✌️ Ⓜ️
This is an AVM related issue
Type: Bug 🐛
Something isn't working
Check for previous/existing GitHub issues
Issue Type?
Bug
Module Name
avm/res/storage/storage-account
(Optional) Module Version
0.15.2
Description
Issue Summary:
When deploying the Storage Account module with a Blob container, the
denyEncryptionScopeOverride
parameter in the container'smain.bicep
template is incorrectly being set tonull
instead of explicitly retaining the expectedfalse
value when configured as such.This behavior causes potential misconfigurations when deployed on a existing storage account that already has this variable set to false, as you are not allowed to change this property after its creation.
I got this to work on a local verison of the module by changing the property as stated in the
Proposed Fix
Steps to Reproduce:
Check the resulting configuration of the container in Azure Portal or via CLI/PowerShell.
Expected Behavior:
The denyEncryptionScopeOverride parameter should explicitly retain the false value in the deployed resource configuration.
Actual Behavior:
The parameter is set to null in the deployed configuration, which is not equivalent to false. And throws the error:
Impact:
Unable to deploy moduel on already existing Storage account with the denyEncryptionScopeOverride = false.
Proposed Fix:
(Optional) Correlation Id
No response
The text was updated successfully, but these errors were encountered: