Open piwi91 opened 2 years ago
Same for the datasource of azurerm_notification_hub_authorization_rule
as well, I don't see anyway to reference it from the docs. Maybe it can be done with ?azurerm_servicebus_queue_authorization_rule
EDIT 1: Tried with azurerm_servicebus_queue_authorization_rule
and did not work. So there is no way to reference azurerm_notification_hub_authorization_rule
with datasource.
It seems like this feature was already added in #1589 and is documented on https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/notification_hub_authorization_rule
The implemented resource name azurerm_notification_hub_authorization_rule
instead of the proposed azurerm_notification_hub_namespace_authorization_rule
but is still creating authorization rules for a namespace in a notification hub.
@ericjaystevens afaik the azurerm_notification_hub_authorization_rule
resource will create the authorization rule for a notification hub, but not for the namespace itself. As @piwi91 noted initially, it looks like we would need a dedicated resource in terraform to assign an authorization rule to the namespace directly.
Community Note
Description
I want to configure authorization rules for a notification hub namespace and would expect to have a resource like
azurerm_notification_hub_namespace_authorization_rule
. A similar resource for an event hub exists (eventhub_namespace_authorization_rule
)New or Affected Resource(s)
Potential Terraform Configuration
References
0000