Use this data source to access information about an existing ServiceBus Queue Authorisation Rule within a ServiceBus Queue.
data "azurerm_servicebus_queue_authorization_rule" "example" {
name = "example-tfex_name"
resource_group_name = "example-resources"
queue_name = "example-servicebus_queue"
namespace_name = "example-namespace"
}
output "id" {
value = data.azurerm_servicebus_queue_authorization_rule.example.id
}
The following arguments are supported:
name
- (Required) The name of this ServiceBus Queue Authorisation Rule.
namespace_name
- (Required) The name of the ServiceBus Namespace.
queue_name
- (Required) The name of the ServiceBus Queue.
resource_group_name
- (Required) The name of the Resource Group where the ServiceBus Queue Authorisation Rule exists.
In addition to the Arguments listed above - the following Attributes are exported:
id
- The ID of the ServiceBus Queue Authorisation Rule.
primary_key
- The Primary Key for the ServiceBus Queue authorization Rule.
primary_connection_string
- The Primary Connection String for the ServiceBus Queue authorization Rule.
secondary_key
- The Secondary Key for the ServiceBus Queue authorization Rule.
secondary_connection_string
- The Secondary Connection String for the ServiceBus Queue authorization Rule.
primary_connection_string_alias
- The alias Primary Connection String for the ServiceBus Namespace, if the namespace is Geo DR paired.
secondary_connection_string_alias
- The alias Secondary Connection String for the ServiceBus Namespace
The timeouts
block allows you to specify timeouts for certain actions:
read
- (Defaults to 5 minutes) Used when retrieving the ServiceBus Queue Authorisation Rule.