Azure Messaging Namespace
This page shows how to write Terraform and Azure Resource Manager for Messaging Namespace and write them securely.
azurerm_relay_namespace (Terraform)
The Namespace in Messaging can be configured in Terraform with the resource name azurerm_relay_namespace
. The following sections describe 5 examples of how to use the resource and its parameters.
Example Usage from GitHub
resource "azurerm_relay_namespace" "service-bus-relay" {
name = var.service_bus_name
location = var.location
resource_group_name = data.azurerm_resource_group.resource-group.name
sku_name = "Standard" ### At this time the only supported value is Standard
tags = var.tags
resource "azurerm_relay_namespace" "example" {
name = "example-relay"
location = azurerm_resource_group.example.location
resource_group_name = azurerm_resource_group.example.name
sku_name = "Standard"
resource "azurerm_relay_namespace" "this" {
location = var.location
name = var.name
resource_group_name = var.resource_group_name
sku_name = var.sku_name
tags = var.tags
resource "azurerm_relay_namespace" "this" {
location = var.location
name = var.name
resource_group_name = var.resource_group_name
sku_name = var.sku_name
tags = var.tags
resource "azurerm_relay_namespace" "moorepay" {
name = "moorepay-relay"
location = azurerm_resource_group.relay.location
resource_group_name = azurerm_resource_group.relay.name
sku_name = "Standard"
}
Parameters
-
id
optional computed - string -
location
required - string -
metric_id
optional computed - string -
name
required - string -
primary_connection_string
optional computed - string -
primary_key
optional computed - string -
resource_group_name
required - string -
secondary_connection_string
optional computed - string -
secondary_key
optional computed - string -
sku_name
required - string -
tags
optional - map from string to string -
timeouts
single block
Explanation in Terraform Registry
Manages an Azure Relay Namespace.
Microsoft.Relay/namespaces (Azure Resource Manager)
The namespaces in Microsoft.Relay can be configured in Azure Resource Manager with the resource name Microsoft.Relay/namespaces
. The following sections describe how to use the resource and its parameters.
Example Usage from GitHub
"type": "Microsoft.Relay/namespaces",
"apiVersion": "2017-04-01",
"location": "West Us",
"name": "NamespaceTest",
"sku": {
"name": "Standard",
"type": "Microsoft.Relay/namespaces",
"apiVersion": "2017-04-01",
"name": "[parameters('RelayNameSpaceName')]",
"location": "[resourceGroup().location]",
"sku": {
"name": "Standard",
"type": "Microsoft.Relay/namespaces",
"apiVersion": "2018-01-01-preview",
"name": "[variables('servicebus_name')]",
"location": "[parameters('resource_location')]",
"sku": {
"name": "Standard",
Parameters
apiVersion
required - stringlocation
required - stringResource location.
name
required - stringThe namespace name
properties
requiredsku
optionalname
required - stringName of this SKU.
tier
optional - stringThe tier of this 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 josepht96/learning, dmaxim/wimc-net and kevinhead/azurerm source code examples are useful. See the Terraform Example section for further details.
For Azure Resource Manager, the Azure/autorest.azureresourceschema, Lagler-Gruener/AzureTemplates and JoshuaTheMiller/Experiments source code examples are useful. See the Azure Resource Manager Example section for further details.