Closed jachin84 closed 9 months ago
Hey @jachin84, thanks for the issue and please excuse the late reply. I agree with your statement. As the module is not migrated to AVM yet, it should also be fixed in CARML as is. We'll see to get it in, thank you :)
@eriqua - it has been a while, but the original addition of the entire feature happened in a PR you contributed. It would hence be cool to know if something would come to mind that we're not considering. I'll implement the change now regardless and then we can ever merge it or not. :)
Describe the bug
The networkRuleSets in https://github.com/Azure/ResourceModules/blob/58691e44109c5991c29f5345944b3253be920a58/modules/event-hub/namespace/network-rule-set/main.bicep seem to have incorrectly logic.
The snippet above forces
trustedServiceAccessEnabled
to be null whenpublicNetworkAccess
is set to "Disabled". This is incorrect. When using Private Endpoints this is the exact configuration that you need.To reproduce
Deploy https://github.com/Azure/ResourceModules/blob/58691e44109c5991c29f5345944b3253be920a58/modules/event-hub/namespace/network-rule-set/main.bicep using:
publicNetworkAccess = 'Disabled'
trustedServiceAccessEnabled = true
Code snippet
No response
Relevant log output
No response