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
-
enabledoptional - bool -
idoptional computed - string -
locationrequired - string -
namerequired - string -
namespace_typerequired - string -
resource_group_namerequired - string -
servicebus_endpointoptional computed - string -
sku_namerequired - string -
tagsoptional - map from string to string -
timeoutssingle 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
apiVersionrequired - stringlocationoptional - stringResource location
namerequired - stringThe namespace name.
propertiesrequiredcreatedAtoptional - stringThe time the namespace was created.
criticaloptional - booleanWhether or not the namespace is set as Critical.
dataCenteroptional - stringData center for the namespace
enabledoptional - booleanWhether or not the namespace is currently enabled.
nameoptional - stringThe name of the namespace.
namespaceTypeoptional - stringThe namespace type.
provisioningStateoptional - stringProvisioning state of the Namespace.
regionoptional - 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
scaleUnitoptional - stringScaleUnit where the namespace gets created
serviceBusEndpointoptional - stringEndpoint you can use to perform NotificationHub operations.
statusoptional - stringStatus of the namespace. It can be any of these values:1 = Created/Active2 = Creating3 = Suspended4 = Deleting
subscriptionIdoptional - stringThe Id of the Azure subscription associated with the namespace.
updatedAtoptional - stringThe time the namespace was updated.
skuoptionalcapacityoptional - integerThe capacity of the resource
familyoptional - stringThe Sku Family
namerequired - stringName of the notification hub sku.
sizeoptional - stringThe Sku size
tieroptional - stringThe tier of particular sku
tagsoptional - stringResource tags
typerequired - 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.