1. Packages
  2. Azure Classic
  3. API Docs
  4. servicebus
  5. NamespaceDisasterRecoveryConfig

We recommend using Azure Native.

Azure v6.21.0 published on Friday, Mar 7, 2025 by Pulumi

azure.servicebus.NamespaceDisasterRecoveryConfig

Explore with Pulumi AI

Manages a Disaster Recovery Config for a Service Bus Namespace.

NOTE: Disaster Recovery Config is a Premium SKU only capability.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";

const example = new azure.core.ResourceGroup("example", {
    name: "servicebus-replication",
    location: "West Europe",
});
const primary = new azure.servicebus.Namespace("primary", {
    name: "servicebus-primary",
    location: example.location,
    resourceGroupName: example.name,
    sku: "Premium",
    capacity: 1,
});
const secondary = new azure.servicebus.Namespace("secondary", {
    name: "servicebus-secondary",
    location: example.location,
    resourceGroupName: example.name,
    sku: "Premium",
    capacity: 1,
});
const exampleNamespaceAuthorizationRule = new azure.servicebus.NamespaceAuthorizationRule("example", {
    name: "examplerule",
    namespaceId: exampleAzurermServicebusNamespace.id,
    listen: true,
    send: true,
    manage: false,
});
const exampleNamespaceDisasterRecoveryConfig = new azure.servicebus.NamespaceDisasterRecoveryConfig("example", {
    name: "servicebus-alias-name",
    primaryNamespaceId: primary.id,
    partnerNamespaceId: secondary.id,
    aliasAuthorizationRuleId: exampleNamespaceAuthorizationRule.id,
});
Copy
import pulumi
import pulumi_azure as azure

example = azure.core.ResourceGroup("example",
    name="servicebus-replication",
    location="West Europe")
primary = azure.servicebus.Namespace("primary",
    name="servicebus-primary",
    location=example.location,
    resource_group_name=example.name,
    sku="Premium",
    capacity=1)
secondary = azure.servicebus.Namespace("secondary",
    name="servicebus-secondary",
    location=example.location,
    resource_group_name=example.name,
    sku="Premium",
    capacity=1)
example_namespace_authorization_rule = azure.servicebus.NamespaceAuthorizationRule("example",
    name="examplerule",
    namespace_id=example_azurerm_servicebus_namespace["id"],
    listen=True,
    send=True,
    manage=False)
example_namespace_disaster_recovery_config = azure.servicebus.NamespaceDisasterRecoveryConfig("example",
    name="servicebus-alias-name",
    primary_namespace_id=primary.id,
    partner_namespace_id=secondary.id,
    alias_authorization_rule_id=example_namespace_authorization_rule.id)
Copy
package main

import (
	"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/core"
	"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/servicebus"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		example, err := core.NewResourceGroup(ctx, "example", &core.ResourceGroupArgs{
			Name:     pulumi.String("servicebus-replication"),
			Location: pulumi.String("West Europe"),
		})
		if err != nil {
			return err
		}
		primary, err := servicebus.NewNamespace(ctx, "primary", &servicebus.NamespaceArgs{
			Name:              pulumi.String("servicebus-primary"),
			Location:          example.Location,
			ResourceGroupName: example.Name,
			Sku:               pulumi.String("Premium"),
			Capacity:          pulumi.Int(1),
		})
		if err != nil {
			return err
		}
		secondary, err := servicebus.NewNamespace(ctx, "secondary", &servicebus.NamespaceArgs{
			Name:              pulumi.String("servicebus-secondary"),
			Location:          example.Location,
			ResourceGroupName: example.Name,
			Sku:               pulumi.String("Premium"),
			Capacity:          pulumi.Int(1),
		})
		if err != nil {
			return err
		}
		exampleNamespaceAuthorizationRule, err := servicebus.NewNamespaceAuthorizationRule(ctx, "example", &servicebus.NamespaceAuthorizationRuleArgs{
			Name:        pulumi.String("examplerule"),
			NamespaceId: pulumi.Any(exampleAzurermServicebusNamespace.Id),
			Listen:      pulumi.Bool(true),
			Send:        pulumi.Bool(true),
			Manage:      pulumi.Bool(false),
		})
		if err != nil {
			return err
		}
		_, err = servicebus.NewNamespaceDisasterRecoveryConfig(ctx, "example", &servicebus.NamespaceDisasterRecoveryConfigArgs{
			Name:                     pulumi.String("servicebus-alias-name"),
			PrimaryNamespaceId:       primary.ID(),
			PartnerNamespaceId:       secondary.ID(),
			AliasAuthorizationRuleId: exampleNamespaceAuthorizationRule.ID(),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Azure = Pulumi.Azure;

return await Deployment.RunAsync(() => 
{
    var example = new Azure.Core.ResourceGroup("example", new()
    {
        Name = "servicebus-replication",
        Location = "West Europe",
    });

    var primary = new Azure.ServiceBus.Namespace("primary", new()
    {
        Name = "servicebus-primary",
        Location = example.Location,
        ResourceGroupName = example.Name,
        Sku = "Premium",
        Capacity = 1,
    });

    var secondary = new Azure.ServiceBus.Namespace("secondary", new()
    {
        Name = "servicebus-secondary",
        Location = example.Location,
        ResourceGroupName = example.Name,
        Sku = "Premium",
        Capacity = 1,
    });

    var exampleNamespaceAuthorizationRule = new Azure.ServiceBus.NamespaceAuthorizationRule("example", new()
    {
        Name = "examplerule",
        NamespaceId = exampleAzurermServicebusNamespace.Id,
        Listen = true,
        Send = true,
        Manage = false,
    });

    var exampleNamespaceDisasterRecoveryConfig = new Azure.ServiceBus.NamespaceDisasterRecoveryConfig("example", new()
    {
        Name = "servicebus-alias-name",
        PrimaryNamespaceId = primary.Id,
        PartnerNamespaceId = secondary.Id,
        AliasAuthorizationRuleId = exampleNamespaceAuthorizationRule.Id,
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azure.core.ResourceGroup;
import com.pulumi.azure.core.ResourceGroupArgs;
import com.pulumi.azure.servicebus.Namespace;
import com.pulumi.azure.servicebus.NamespaceArgs;
import com.pulumi.azure.servicebus.NamespaceAuthorizationRule;
import com.pulumi.azure.servicebus.NamespaceAuthorizationRuleArgs;
import com.pulumi.azure.servicebus.NamespaceDisasterRecoveryConfig;
import com.pulumi.azure.servicebus.NamespaceDisasterRecoveryConfigArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;

public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }

    public static void stack(Context ctx) {
        var example = new ResourceGroup("example", ResourceGroupArgs.builder()
            .name("servicebus-replication")
            .location("West Europe")
            .build());

        var primary = new Namespace("primary", NamespaceArgs.builder()
            .name("servicebus-primary")
            .location(example.location())
            .resourceGroupName(example.name())
            .sku("Premium")
            .capacity("1")
            .build());

        var secondary = new Namespace("secondary", NamespaceArgs.builder()
            .name("servicebus-secondary")
            .location(example.location())
            .resourceGroupName(example.name())
            .sku("Premium")
            .capacity("1")
            .build());

        var exampleNamespaceAuthorizationRule = new NamespaceAuthorizationRule("exampleNamespaceAuthorizationRule", NamespaceAuthorizationRuleArgs.builder()
            .name("examplerule")
            .namespaceId(exampleAzurermServicebusNamespace.id())
            .listen(true)
            .send(true)
            .manage(false)
            .build());

        var exampleNamespaceDisasterRecoveryConfig = new NamespaceDisasterRecoveryConfig("exampleNamespaceDisasterRecoveryConfig", NamespaceDisasterRecoveryConfigArgs.builder()
            .name("servicebus-alias-name")
            .primaryNamespaceId(primary.id())
            .partnerNamespaceId(secondary.id())
            .aliasAuthorizationRuleId(exampleNamespaceAuthorizationRule.id())
            .build());

    }
}
Copy
resources:
  example:
    type: azure:core:ResourceGroup
    properties:
      name: servicebus-replication
      location: West Europe
  primary:
    type: azure:servicebus:Namespace
    properties:
      name: servicebus-primary
      location: ${example.location}
      resourceGroupName: ${example.name}
      sku: Premium
      capacity: '1'
  secondary:
    type: azure:servicebus:Namespace
    properties:
      name: servicebus-secondary
      location: ${example.location}
      resourceGroupName: ${example.name}
      sku: Premium
      capacity: '1'
  exampleNamespaceAuthorizationRule:
    type: azure:servicebus:NamespaceAuthorizationRule
    name: example
    properties:
      name: examplerule
      namespaceId: ${exampleAzurermServicebusNamespace.id}
      listen: true
      send: true
      manage: false
  exampleNamespaceDisasterRecoveryConfig:
    type: azure:servicebus:NamespaceDisasterRecoveryConfig
    name: example
    properties:
      name: servicebus-alias-name
      primaryNamespaceId: ${primary.id}
      partnerNamespaceId: ${secondary.id}
      aliasAuthorizationRuleId: ${exampleNamespaceAuthorizationRule.id}
Copy

Create NamespaceDisasterRecoveryConfig Resource

Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

Constructor syntax

new NamespaceDisasterRecoveryConfig(name: string, args: NamespaceDisasterRecoveryConfigArgs, opts?: CustomResourceOptions);
@overload
def NamespaceDisasterRecoveryConfig(resource_name: str,
                                    args: NamespaceDisasterRecoveryConfigArgs,
                                    opts: Optional[ResourceOptions] = None)

@overload
def NamespaceDisasterRecoveryConfig(resource_name: str,
                                    opts: Optional[ResourceOptions] = None,
                                    partner_namespace_id: Optional[str] = None,
                                    primary_namespace_id: Optional[str] = None,
                                    alias_authorization_rule_id: Optional[str] = None,
                                    name: Optional[str] = None)
func NewNamespaceDisasterRecoveryConfig(ctx *Context, name string, args NamespaceDisasterRecoveryConfigArgs, opts ...ResourceOption) (*NamespaceDisasterRecoveryConfig, error)
public NamespaceDisasterRecoveryConfig(string name, NamespaceDisasterRecoveryConfigArgs args, CustomResourceOptions? opts = null)
public NamespaceDisasterRecoveryConfig(String name, NamespaceDisasterRecoveryConfigArgs args)
public NamespaceDisasterRecoveryConfig(String name, NamespaceDisasterRecoveryConfigArgs args, CustomResourceOptions options)
type: azure:servicebus:NamespaceDisasterRecoveryConfig
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. NamespaceDisasterRecoveryConfigArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. NamespaceDisasterRecoveryConfigArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. NamespaceDisasterRecoveryConfigArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. NamespaceDisasterRecoveryConfigArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. NamespaceDisasterRecoveryConfigArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

Constructor example

The following reference example uses placeholder values for all input properties.

var namespaceDisasterRecoveryConfigResource = new Azure.ServiceBus.NamespaceDisasterRecoveryConfig("namespaceDisasterRecoveryConfigResource", new()
{
    PartnerNamespaceId = "string",
    PrimaryNamespaceId = "string",
    AliasAuthorizationRuleId = "string",
    Name = "string",
});
Copy
example, err := servicebus.NewNamespaceDisasterRecoveryConfig(ctx, "namespaceDisasterRecoveryConfigResource", &servicebus.NamespaceDisasterRecoveryConfigArgs{
	PartnerNamespaceId:       pulumi.String("string"),
	PrimaryNamespaceId:       pulumi.String("string"),
	AliasAuthorizationRuleId: pulumi.String("string"),
	Name:                     pulumi.String("string"),
})
Copy
var namespaceDisasterRecoveryConfigResource = new NamespaceDisasterRecoveryConfig("namespaceDisasterRecoveryConfigResource", NamespaceDisasterRecoveryConfigArgs.builder()
    .partnerNamespaceId("string")
    .primaryNamespaceId("string")
    .aliasAuthorizationRuleId("string")
    .name("string")
    .build());
Copy
namespace_disaster_recovery_config_resource = azure.servicebus.NamespaceDisasterRecoveryConfig("namespaceDisasterRecoveryConfigResource",
    partner_namespace_id="string",
    primary_namespace_id="string",
    alias_authorization_rule_id="string",
    name="string")
Copy
const namespaceDisasterRecoveryConfigResource = new azure.servicebus.NamespaceDisasterRecoveryConfig("namespaceDisasterRecoveryConfigResource", {
    partnerNamespaceId: "string",
    primaryNamespaceId: "string",
    aliasAuthorizationRuleId: "string",
    name: "string",
});
Copy
type: azure:servicebus:NamespaceDisasterRecoveryConfig
properties:
    aliasAuthorizationRuleId: string
    name: string
    partnerNamespaceId: string
    primaryNamespaceId: string
Copy

NamespaceDisasterRecoveryConfig Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

Inputs

In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

The NamespaceDisasterRecoveryConfig resource accepts the following input properties:

PartnerNamespaceId This property is required. string
The ID of the Service Bus Namespace to replicate to.
PrimaryNamespaceId
This property is required.
Changes to this property will trigger replacement.
string
The ID of the primary Service Bus Namespace to replicate. Changing this forces a new resource to be created.
AliasAuthorizationRuleId string
The Shared access policies used to access the connection string for the alias.
Name Changes to this property will trigger replacement. string
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.
PartnerNamespaceId This property is required. string
The ID of the Service Bus Namespace to replicate to.
PrimaryNamespaceId
This property is required.
Changes to this property will trigger replacement.
string
The ID of the primary Service Bus Namespace to replicate. Changing this forces a new resource to be created.
AliasAuthorizationRuleId string
The Shared access policies used to access the connection string for the alias.
Name Changes to this property will trigger replacement. string
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.
partnerNamespaceId This property is required. String
The ID of the Service Bus Namespace to replicate to.
primaryNamespaceId
This property is required.
Changes to this property will trigger replacement.
String
The ID of the primary Service Bus Namespace to replicate. Changing this forces a new resource to be created.
aliasAuthorizationRuleId String
The Shared access policies used to access the connection string for the alias.
name Changes to this property will trigger replacement. String
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.
partnerNamespaceId This property is required. string
The ID of the Service Bus Namespace to replicate to.
primaryNamespaceId
This property is required.
Changes to this property will trigger replacement.
string
The ID of the primary Service Bus Namespace to replicate. Changing this forces a new resource to be created.
aliasAuthorizationRuleId string
The Shared access policies used to access the connection string for the alias.
name Changes to this property will trigger replacement. string
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.
partner_namespace_id This property is required. str
The ID of the Service Bus Namespace to replicate to.
primary_namespace_id
This property is required.
Changes to this property will trigger replacement.
str
The ID of the primary Service Bus Namespace to replicate. Changing this forces a new resource to be created.
alias_authorization_rule_id str
The Shared access policies used to access the connection string for the alias.
name Changes to this property will trigger replacement. str
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.
partnerNamespaceId This property is required. String
The ID of the Service Bus Namespace to replicate to.
primaryNamespaceId
This property is required.
Changes to this property will trigger replacement.
String
The ID of the primary Service Bus Namespace to replicate. Changing this forces a new resource to be created.
aliasAuthorizationRuleId String
The Shared access policies used to access the connection string for the alias.
name Changes to this property will trigger replacement. String
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.

Outputs

All input properties are implicitly available as output properties. Additionally, the NamespaceDisasterRecoveryConfig resource produces the following output properties:

DefaultPrimaryKey string
The primary access key for the authorization rule RootManageSharedAccessKey.
DefaultSecondaryKey string
The secondary access key for the authorization rule RootManageSharedAccessKey.
Id string
The provider-assigned unique ID for this managed resource.
PrimaryConnectionStringAlias string
The alias Primary Connection String for the ServiceBus Namespace.
SecondaryConnectionStringAlias string
The alias Secondary Connection String for the ServiceBus Namespace
DefaultPrimaryKey string
The primary access key for the authorization rule RootManageSharedAccessKey.
DefaultSecondaryKey string
The secondary access key for the authorization rule RootManageSharedAccessKey.
Id string
The provider-assigned unique ID for this managed resource.
PrimaryConnectionStringAlias string
The alias Primary Connection String for the ServiceBus Namespace.
SecondaryConnectionStringAlias string
The alias Secondary Connection String for the ServiceBus Namespace
defaultPrimaryKey String
The primary access key for the authorization rule RootManageSharedAccessKey.
defaultSecondaryKey String
The secondary access key for the authorization rule RootManageSharedAccessKey.
id String
The provider-assigned unique ID for this managed resource.
primaryConnectionStringAlias String
The alias Primary Connection String for the ServiceBus Namespace.
secondaryConnectionStringAlias String
The alias Secondary Connection String for the ServiceBus Namespace
defaultPrimaryKey string
The primary access key for the authorization rule RootManageSharedAccessKey.
defaultSecondaryKey string
The secondary access key for the authorization rule RootManageSharedAccessKey.
id string
The provider-assigned unique ID for this managed resource.
primaryConnectionStringAlias string
The alias Primary Connection String for the ServiceBus Namespace.
secondaryConnectionStringAlias string
The alias Secondary Connection String for the ServiceBus Namespace
default_primary_key str
The primary access key for the authorization rule RootManageSharedAccessKey.
default_secondary_key str
The secondary access key for the authorization rule RootManageSharedAccessKey.
id str
The provider-assigned unique ID for this managed resource.
primary_connection_string_alias str
The alias Primary Connection String for the ServiceBus Namespace.
secondary_connection_string_alias str
The alias Secondary Connection String for the ServiceBus Namespace
defaultPrimaryKey String
The primary access key for the authorization rule RootManageSharedAccessKey.
defaultSecondaryKey String
The secondary access key for the authorization rule RootManageSharedAccessKey.
id String
The provider-assigned unique ID for this managed resource.
primaryConnectionStringAlias String
The alias Primary Connection String for the ServiceBus Namespace.
secondaryConnectionStringAlias String
The alias Secondary Connection String for the ServiceBus Namespace

Look up Existing NamespaceDisasterRecoveryConfig Resource

Get an existing NamespaceDisasterRecoveryConfig resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

public static get(name: string, id: Input<ID>, state?: NamespaceDisasterRecoveryConfigState, opts?: CustomResourceOptions): NamespaceDisasterRecoveryConfig
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        alias_authorization_rule_id: Optional[str] = None,
        default_primary_key: Optional[str] = None,
        default_secondary_key: Optional[str] = None,
        name: Optional[str] = None,
        partner_namespace_id: Optional[str] = None,
        primary_connection_string_alias: Optional[str] = None,
        primary_namespace_id: Optional[str] = None,
        secondary_connection_string_alias: Optional[str] = None) -> NamespaceDisasterRecoveryConfig
func GetNamespaceDisasterRecoveryConfig(ctx *Context, name string, id IDInput, state *NamespaceDisasterRecoveryConfigState, opts ...ResourceOption) (*NamespaceDisasterRecoveryConfig, error)
public static NamespaceDisasterRecoveryConfig Get(string name, Input<string> id, NamespaceDisasterRecoveryConfigState? state, CustomResourceOptions? opts = null)
public static NamespaceDisasterRecoveryConfig get(String name, Output<String> id, NamespaceDisasterRecoveryConfigState state, CustomResourceOptions options)
resources:  _:    type: azure:servicebus:NamespaceDisasterRecoveryConfig    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
resource_name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
The following state arguments are supported:
AliasAuthorizationRuleId string
The Shared access policies used to access the connection string for the alias.
DefaultPrimaryKey string
The primary access key for the authorization rule RootManageSharedAccessKey.
DefaultSecondaryKey string
The secondary access key for the authorization rule RootManageSharedAccessKey.
Name Changes to this property will trigger replacement. string
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.
PartnerNamespaceId string
The ID of the Service Bus Namespace to replicate to.
PrimaryConnectionStringAlias string
The alias Primary Connection String for the ServiceBus Namespace.
PrimaryNamespaceId Changes to this property will trigger replacement. string
The ID of the primary Service Bus Namespace to replicate. Changing this forces a new resource to be created.
SecondaryConnectionStringAlias string
The alias Secondary Connection String for the ServiceBus Namespace
AliasAuthorizationRuleId string
The Shared access policies used to access the connection string for the alias.
DefaultPrimaryKey string
The primary access key for the authorization rule RootManageSharedAccessKey.
DefaultSecondaryKey string
The secondary access key for the authorization rule RootManageSharedAccessKey.
Name Changes to this property will trigger replacement. string
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.
PartnerNamespaceId string
The ID of the Service Bus Namespace to replicate to.
PrimaryConnectionStringAlias string
The alias Primary Connection String for the ServiceBus Namespace.
PrimaryNamespaceId Changes to this property will trigger replacement. string
The ID of the primary Service Bus Namespace to replicate. Changing this forces a new resource to be created.
SecondaryConnectionStringAlias string
The alias Secondary Connection String for the ServiceBus Namespace
aliasAuthorizationRuleId String
The Shared access policies used to access the connection string for the alias.
defaultPrimaryKey String
The primary access key for the authorization rule RootManageSharedAccessKey.
defaultSecondaryKey String
The secondary access key for the authorization rule RootManageSharedAccessKey.
name Changes to this property will trigger replacement. String
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.
partnerNamespaceId String
The ID of the Service Bus Namespace to replicate to.
primaryConnectionStringAlias String
The alias Primary Connection String for the ServiceBus Namespace.
primaryNamespaceId Changes to this property will trigger replacement. String
The ID of the primary Service Bus Namespace to replicate. Changing this forces a new resource to be created.
secondaryConnectionStringAlias String
The alias Secondary Connection String for the ServiceBus Namespace
aliasAuthorizationRuleId string
The Shared access policies used to access the connection string for the alias.
defaultPrimaryKey string
The primary access key for the authorization rule RootManageSharedAccessKey.
defaultSecondaryKey string
The secondary access key for the authorization rule RootManageSharedAccessKey.
name Changes to this property will trigger replacement. string
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.
partnerNamespaceId string
The ID of the Service Bus Namespace to replicate to.
primaryConnectionStringAlias string
The alias Primary Connection String for the ServiceBus Namespace.
primaryNamespaceId Changes to this property will trigger replacement. string
The ID of the primary Service Bus Namespace to replicate. Changing this forces a new resource to be created.
secondaryConnectionStringAlias string
The alias Secondary Connection String for the ServiceBus Namespace
alias_authorization_rule_id str
The Shared access policies used to access the connection string for the alias.
default_primary_key str
The primary access key for the authorization rule RootManageSharedAccessKey.
default_secondary_key str
The secondary access key for the authorization rule RootManageSharedAccessKey.
name Changes to this property will trigger replacement. str
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.
partner_namespace_id str
The ID of the Service Bus Namespace to replicate to.
primary_connection_string_alias str
The alias Primary Connection String for the ServiceBus Namespace.
primary_namespace_id Changes to this property will trigger replacement. str
The ID of the primary Service Bus Namespace to replicate. Changing this forces a new resource to be created.
secondary_connection_string_alias str
The alias Secondary Connection String for the ServiceBus Namespace
aliasAuthorizationRuleId String
The Shared access policies used to access the connection string for the alias.
defaultPrimaryKey String
The primary access key for the authorization rule RootManageSharedAccessKey.
defaultSecondaryKey String
The secondary access key for the authorization rule RootManageSharedAccessKey.
name Changes to this property will trigger replacement. String
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.
partnerNamespaceId String
The ID of the Service Bus Namespace to replicate to.
primaryConnectionStringAlias String
The alias Primary Connection String for the ServiceBus Namespace.
primaryNamespaceId Changes to this property will trigger replacement. String
The ID of the primary Service Bus Namespace to replicate. Changing this forces a new resource to be created.
secondaryConnectionStringAlias String
The alias Secondary Connection String for the ServiceBus Namespace

Import

Service Bus DR configs can be imported using the resource id, e.g.

$ pulumi import azure:servicebus/namespaceDisasterRecoveryConfig:NamespaceDisasterRecoveryConfig config1 /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.ServiceBus/namespaces/namespace1/disasterRecoveryConfigs/config1
Copy

To learn more about importing existing cloud resources, see Importing resources.

Package Details

Repository
Azure Classic pulumi/pulumi-azure
License
Apache-2.0
Notes
This Pulumi package is based on the azurerm Terraform Provider.