Azure Messaging Queue Authorization Rule
This page shows how to write Terraform and Azure Resource Manager for Messaging Queue Authorization Rule and write them securely.
azurerm_servicebus_queue_authorization_rule (Terraform)
The Queue Authorization Rule in Messaging can be configured in Terraform with the resource name azurerm_servicebus_queue_authorization_rule. The following sections describe 3 examples of how to use the resource and its parameters.
Example Usage from GitHub
resource "azurerm_servicebus_queue_authorization_rule" "app1MessagesWriter" {
name = "app1MessagesWriter"
namespace_name = azurerm_servicebus_namespace.busNamespace.name
queue_name = azurerm_servicebus_queue.app1MessagesQueue.name
resource_group_name = var.resource_group_name
resource "azurerm_servicebus_queue_authorization_rule" "send_auth_rule" {
name = local.send_auth_rule_name
namespace_name = var.namespace_name
queue_name = azurerm_servicebus_queue.servicebus_queue.name
resource_group_name = var.resource_group_name
resource "azurerm_servicebus_queue_authorization_rule" "sendtest" {
name = "sendtest"
namespace_name = azurerm_servicebus_namespace.jumbolajudapp.name
queue_name = azurerm_servicebus_queue.lajudtestqueue.name
resource_group_name = azurerm_resource_group.JWA.name
Parameters
-
idoptional computed - string -
listenoptional - bool -
manageoptional - bool -
namerequired - string -
namespace_namerequired - string -
primary_connection_stringoptional computed - string -
primary_keyoptional computed - string -
queue_namerequired - string -
resource_group_namerequired - string -
secondary_connection_stringoptional computed - string -
secondary_keyoptional computed - string -
sendoptional - bool -
timeoutssingle block
Explanation in Terraform Registry
Manages an Authorization Rule for a ServiceBus Queue.
Microsoft.ServiceBus/namespaces/queues/authorizationRules (Azure Resource Manager)
The namespaces/queues/authorizationRules in Microsoft.ServiceBus can be configured in Azure Resource Manager with the resource name Microsoft.ServiceBus/namespaces/queues/authorizationRules. The following sections describe how to use the resource and its parameters.
Example Usage from GitHub
An example could not be found in GitHub.
Parameters
apiVersionrequired - stringnamerequired - stringThe authorization rule name.
propertiesrequiredrightsrequired - arrayThe rights associated with the rule.
typerequired - string
Frequently asked questions
What is Azure Messaging Queue Authorization Rule?
Azure Messaging Queue Authorization Rule is a resource for Messaging of Microsoft Azure. Settings can be wrote in Terraform.
Where can I find the example code for the Azure Messaging Queue Authorization Rule?
For Terraform, the guisesterheim/TerraformServiceBusQueues, hmcts/terraform-module-servicebus-queue and Juanlajud/testSiteNodejs source code examples are useful. See the Terraform Example section for further details.