Azure Messaging Namespace Disaster Recovery Config
This page shows how to write Terraform and Azure Resource Manager for Messaging Namespace Disaster Recovery Config and write them securely.
azurerm_servicebus_namespace_disaster_recovery_config (Terraform)
The Namespace Disaster Recovery Config in Messaging can be configured in Terraform with the resource name azurerm_servicebus_namespace_disaster_recovery_config
. 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
The following arguments are supported:
name
- (Required) Specifies the name of the Disaster Recovery Config. This is the alias DNS name that will be created. Changing this forces a new resource to be created.primary_namespace_id
- (Required) The ID of the primary Service Bus Namespace to replicate. Changing this forces a new resource to be created.partner_namespace_id
- (Required) The ID of the Service Bus Namespace to replicate to.
The following attributes are exported:
id
- The Service Bus Namespace Disaster Recovery Config ID.primary_connection_string_alias
- The alias Primary Connection String for the ServiceBus Namespace.secondary_connection_string_alias
- The alias Secondary Connection String for the ServiceBus Namespacedefault_primary_key
- The primary access key for the authorization ruleRootManageSharedAccessKey
.default_secondary_key
- The secondary access key for the authorization ruleRootManageSharedAccessKey
.
Explanation in Terraform Registry
Manages a Disaster Recovery Config for a Service Bus Namespace.
NOTE: Disaster Recovery Config is a Premium Sku only capability.
Microsoft.ServiceBus/namespaces/disasterRecoveryConfigs (Azure Resource Manager)
The namespaces/disasterRecoveryConfigs in Microsoft.ServiceBus can be configured in Azure Resource Manager with the resource name Microsoft.ServiceBus/namespaces/disasterRecoveryConfigs
. 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 - stringname
required - stringThe Disaster Recovery configuration name
properties
requiredalternateName
optional - stringPrimary/Secondary eventhub namespace name, which is part of GEO DR pairing
partnerNamespace
optional - stringARM Id of the Primary/Secondary eventhub namespace name, which is part of GEO DR pairing
type
required - string