Azure Messaging Namespace Authorization Rule
This page shows how to write Terraform and Azure Resource Manager for Messaging Namespace Authorization Rule and write them securely.
azurerm_servicebus_namespace_authorization_rule (Terraform)
The Namespace Authorization Rule in Messaging can be configured in Terraform with the resource name azurerm_servicebus_namespace_authorization_rule. The following sections describe 7 examples of how to use the resource and its parameters.
Example Usage from GitHub
resource "azurerm_servicebus_namespace_authorization_rule" "properties" {
name = "property-auth-rule"
namespace_name = var.servicebus_name
resource_group_name = var.servicebus_rg
listen = true
resource "azurerm_servicebus_namespace_authorization_rule" "amqp10-converter" {
name = var.servicebus_auth_rule_name_amqp10-converter
resource_group_name = azurerm_servicebus_namespace.sb.resource_group_name
namespace_name = azurerm_servicebus_namespace.sb.name
listen = true
resource "azurerm_servicebus_namespace_authorization_rule" "this" {
# listen - (optional) is a type of bool
listen = var.listen
# manage - (optional) is a type of bool
manage = var.manage
# name - (required) is a type of string
resource "azurerm_servicebus_namespace_authorization_rule" "this" {
listen = var.listen
manage = var.manage
name = var.name
namespace_name = var.namespace_name
resource_group_name = var.resource_group_name
resource "azurerm_servicebus_namespace_authorization_rule" "send_listen_auth_rule" {
name = local.auth_rule_name
namespace_name = azurerm_servicebus_namespace.servicebus_namespace.name
resource_group_name = var.resource_group_name
listen = true
resource "azurerm_servicebus_namespace_authorization_rule" "sbauth" {
name = format("%s-DefaultAuth",azurerm_servicebus_namespace.sb.name)
namespace_name = azurerm_servicebus_namespace.sb.name
resource_group_name = azurerm_resource_group.rg.name
listen = var.azure_servicebus_auth_listen
send = var.azure_servicebus_auth_send
resource "azurerm_servicebus_namespace_authorization_rule" "this" {
listen = var.listen
manage = var.manage
name = var.name
namespace_name = var.namespace_name
resource_group_name = var.resource_group_name
Parameters
-
idoptional computed - string -
listenoptional - bool -
manageoptional - bool -
namerequired - string -
namespace_namerequired - string -
primary_connection_stringoptional computed - string -
primary_keyoptional computed - string -
resource_group_namerequired - string -
secondary_connection_stringoptional computed - string -
secondary_keyoptional computed - string -
sendoptional - bool -
timeoutssingle block
Explanation in Terraform Registry
Manages a ServiceBus Namespace authorization Rule within a ServiceBus.
Microsoft.ServiceBus/namespaces/AuthorizationRules (Azure Resource Manager)
The namespaces/AuthorizationRules in Microsoft.ServiceBus can be configured in Azure Resource Manager with the resource name Microsoft.ServiceBus/namespaces/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 Namespace Authorization Rule?
Azure Messaging Namespace 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 Namespace Authorization Rule?
For Terraform, the DoesDotNet/propt-properties, c-3lab/data-accumulation-platform-using-fiware and huw564/k8s source code examples are useful. See the Terraform Example section for further details.