Azure Messaging Namespace
This page shows how to write Terraform and Azure Resource Manager for Messaging Namespace and write them securely.
azurerm_notification_hub_namespace (Terraform)
The Namespace in Messaging can be configured in Terraform with the resource name azurerm_notification_hub_namespace
. The following sections describe 10 examples of how to use the resource and its parameters.
Example Usage from GitHub
resource "azurerm_notification_hub_namespace" "basicbelow10M" {
name = "myappnamespace"
resource_group_name = azurerm_resource_group.example.name
location = azurerm_resource_group.example.location
namespace_type = "NotificationHub"
resource "azurerm_notification_hub_namespace" "basicbelow10M" {
name = "myappnamespace"
resource_group_name = azurerm_resource_group.example.name
location = azurerm_resource_group.example.location
namespace_type = "NotificationHub"
resource "azurerm_notification_hub_namespace" "example" {
name = "myappnamespace"
resource_group_name = azurerm_resource_group.example.name
location = azurerm_resource_group.example.location
namespace_type = "NotificationHub"
resource "azurerm_notification_hub_namespace" "notification_hub_ns" {
name = var.azurerm_ns_name
resource_group_name = var.azurerm_resource_group
location = var.azurerm_resource_group_location
namespace_type = var.azurerm_ns_type
resource "azurerm_notification_hub_namespace" "this" {
enabled = var.enabled
location = var.location
name = var.name
namespace_type = var.namespace_type
resource_group_name = var.resource_group_name
resource "azurerm_notification_hub_namespace" "this" {
enabled = var.enabled
location = var.location
name = var.name
namespace_type = var.namespace_type
resource_group_name = var.resource_group_name
resource "azurerm_notification_hub_namespace" "main" {
name = var.nh_namespace_name
resource_group_name = var.nh_resource_group_name
location = var.nh_location
namespace_type = "NotificationHub"
resource "azurerm_notification_hub_namespace" "notification_hub_ns" {
name = local.ntfns_resource_name
resource_group_name = var.resource_group_name
location = var.region
namespace_type = var.ntfns_namespace_type
sku_name = var.ntfns_sku_name
resource "azurerm_notification_hub_namespace" "namespace" {
name = "NHUB-Terraform"
resource_group_name = azurerm_resource_group.RGroup.name
location = azurerm_resource_group.RGroup.location
namespace_type = "NotificationHub"
resource "azurerm_notification_hub_namespace" "namespace" {
name = "NHUB-Terraform"
resource_group_name = azurerm_resource_group.RGroup.name
location = azurerm_resource_group.RGroup.location
namespace_type = "NotificationHub"
Parameters
-
enabled
optional - bool -
id
optional computed - string -
location
required - string -
name
required - string -
namespace_type
required - string -
resource_group_name
required - string -
servicebus_endpoint
optional computed - string -
sku_name
required - string -
tags
optional - map from string to string -
timeouts
single block
Explanation in Terraform Registry
Manages a Notification Hub Namespace.
Microsoft.NotificationHubs/namespaces (Azure Resource Manager)
The namespaces in Microsoft.NotificationHubs can be configured in Azure Resource Manager with the resource name Microsoft.NotificationHubs/namespaces
. 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
apiVersion
required - stringlocation
optional - stringResource location
name
required - stringThe namespace name.
properties
requiredcreatedAt
optional - stringThe time the namespace was created.
critical
optional - booleanWhether or not the namespace is set as Critical.
dataCenter
optional - stringData center for the namespace
enabled
optional - booleanWhether or not the namespace is currently enabled.
name
optional - stringThe name of the namespace.
namespaceType
optional - stringThe namespace type.
provisioningState
optional - stringProvisioning state of the Namespace.
region
optional - stringSpecifies the targeted region in which the namespace should be created. It can be any of the following values: Australia East, Australia Southeast, Central US, East US, East US 2, West US, North Central US, South Central US, East Asia, Southeast Asia, Brazil South, Japan East, Japan West, North Europe, West Europe
scaleUnit
optional - stringScaleUnit where the namespace gets created
serviceBusEndpoint
optional - stringEndpoint you can use to perform NotificationHub operations.
status
optional - stringStatus of the namespace. It can be any of these values:1 = Created/Active2 = Creating3 = Suspended4 = Deleting
subscriptionId
optional - stringThe Id of the Azure subscription associated with the namespace.
updatedAt
optional - stringThe time the namespace was updated.
sku
optionalcapacity
optional - integerThe capacity of the resource
family
optional - stringThe Sku Family
name
required - stringName of the notification hub sku.
size
optional - stringThe Sku size
tier
optional - stringThe tier of particular sku
tags
optional - stringResource tags
type
required - string
Frequently asked questions
What is Azure Messaging Namespace?
Azure Messaging Namespace 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?
For Terraform, the gilyas/infracost, infracost/infracost and dmaxim/wimc-net source code examples are useful. See the Terraform Example section for further details.