-
Notifications
You must be signed in to change notification settings - Fork 4.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
publicNetworkAccess for azurerm_eventhub_namespace #14947
Comments
To accomodate this change the underlying API version needs to be updated to at least v2021-11-01. In recent dealings with MS Support the underlying implementation has changed somewhat, this might call for this only to be added to v3 of azurerm if determined to be a breaking change. This is what we ran into, the default_action property is now readOnly, it will always return Allow unless an IP or VNET rule is set (see the 3rd point under this heading, it is true for IP and VNET rules as well as Private-Link). The documentation seems to not be 100% up to date and in our testing we have found that the only way to ensure that there is no public access to the event-hub is to:
We also confirmed that using the current azurerm version (v2.91.0), which employs the v2017-04-01 API, and only setting the default_action to Deny, does not block public access (see above article again). |
Agreed, the publicNetworkAccess toggle controls the main functionality. However if I read https://github.com/hashicorp/terraform-provider-azurerm/blob/main/internal/services/eventhub/eventhub_namespace_resource.go correctly the current provider is already using the 021-01-01-preview api version. |
The one of concern relates to the network rule sets, that refers to 2018-01-01 version (line 20), it should be updated to the latest version. I tested that version using Postman it does not know about publicNetworkAccess:
returns:
It does not return If I use either the 2021-06-01-preview or 2021-11-01 API versions it returns/defaults a value for
Result:
It defaults to |
closed by #17194 |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. |
Community Note
Description
Please add support for publicNetworkAccess in the azurerm_eventhub_namespace resource.
New or Affected Resource(s)
Potential Terraform Configuration
References
The text was updated successfully, but these errors were encountered: