Azure Messaging Authorization Rule
This page shows how to write Terraform and Azure Resource Manager for Messaging Authorization Rule and write them securely.
azurerm_notification_hub_authorization_rule (Terraform)
The Authorization Rule in Messaging can be configured in Terraform with the resource name azurerm_notification_hub_authorization_rule
. The following sections describe 4 examples of how to use the resource and its parameters.
Example Usage from GitHub
resource "azurerm_notification_hub_authorization_rule" "notification_hub_rule" {
name = var.azurerm_notification_hub_rule_name
notification_hub_name = azurerm_notification_hub.notification_hub.name
namespace_name = azurerm_notification_hub_namespace.notification_hub_ns.name
resource_group_name = var.azurerm_resource_group
manage = true
resource "azurerm_notification_hub_authorization_rule" "this" {
listen = var.listen
manage = var.manage
name = var.name
namespace_name = var.namespace_name
notification_hub_name = var.notification_hub_name
resource "azurerm_notification_hub_authorization_rule" "this" {
listen = var.listen
manage = var.manage
name = var.name
namespace_name = var.namespace_name
notification_hub_name = var.notification_hub_name
resource "azurerm_notification_hub_authorization_rule" "main" {
count = length(var.notificationHubs)
name = element(var.notificationHubs, count.index).nh_name
notification_hub_name = element(var.notificationHubs, count.index).nh_name
namespace_name = azurerm_notification_hub_namespace.main.name
resource_group_name = var.nh_resource_group_name
Parameters
-
id
optional computed - string -
listen
optional - bool -
manage
optional - bool -
name
required - string -
namespace_name
required - string -
notification_hub_name
required - string -
primary_access_key
optional computed - string -
resource_group_name
required - string -
secondary_access_key
optional computed - string -
send
optional - bool -
timeouts
single block
Explanation in Terraform Registry
Manages an Authorization Rule associated with a Notification Hub within a Notification Hub Namespace.
Microsoft.NotificationHubs/namespaces/notificationHubs/authorizationRules (Azure Resource Manager)
The namespaces/notificationHubs/authorizationRules in Microsoft.NotificationHubs can be configured in Azure Resource Manager with the resource name Microsoft.NotificationHubs/namespaces/notificationHubs/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.
Frequently asked questions
What is Azure Messaging Authorization Rule?
Azure Messaging 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 Authorization Rule?
For Terraform, the sidhlipu/terraform, kevinhead/azurerm and niveklabs/azurerm source code examples are useful. See the Terraform Example section for further details.