We recommend using Azure Native.
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,
});
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)
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
})
}
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,
});
});
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());
}
}
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}
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 string
- The unique name of the resource.
- args NamespaceDisasterRecoveryConfigArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args 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 string
- The unique name of the resource.
- args NamespaceDisasterRecoveryConfigArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args NamespaceDisasterRecoveryConfigArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args 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",
});
example, err := servicebus.NewNamespaceDisasterRecoveryConfig(ctx, "namespaceDisasterRecoveryConfigResource", &servicebus.NamespaceDisasterRecoveryConfigArgs{
PartnerNamespaceId: pulumi.String("string"),
PrimaryNamespaceId: pulumi.String("string"),
AliasAuthorizationRuleId: pulumi.String("string"),
Name: pulumi.String("string"),
})
var namespaceDisasterRecoveryConfigResource = new NamespaceDisasterRecoveryConfig("namespaceDisasterRecoveryConfigResource", NamespaceDisasterRecoveryConfigArgs.builder()
.partnerNamespaceId("string")
.primaryNamespaceId("string")
.aliasAuthorizationRuleId("string")
.name("string")
.build());
namespace_disaster_recovery_config_resource = azure.servicebus.NamespaceDisasterRecoveryConfig("namespaceDisasterRecoveryConfigResource",
partner_namespace_id="string",
primary_namespace_id="string",
alias_authorization_rule_id="string",
name="string")
const namespaceDisasterRecoveryConfigResource = new azure.servicebus.NamespaceDisasterRecoveryConfig("namespaceDisasterRecoveryConfigResource", {
partnerNamespaceId: "string",
primaryNamespaceId: "string",
aliasAuthorizationRuleId: "string",
name: "string",
});
type: azure:servicebus:NamespaceDisasterRecoveryConfig
properties:
aliasAuthorizationRuleId: string
name: string
partnerNamespaceId: string
primaryNamespaceId: string
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:
- Partner
Namespace stringId - The ID of the Service Bus Namespace to replicate to.
- Primary
Namespace stringId - The ID of the primary Service Bus Namespace to replicate. Changing this forces a new resource to be created.
- string
- The Shared access policies used to access the connection string for the alias.
- Name 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 stringId - The ID of the Service Bus Namespace to replicate to.
- Primary
Namespace stringId - The ID of the primary Service Bus Namespace to replicate. Changing this forces a new resource to be created.
- string
- The Shared access policies used to access the connection string for the alias.
- Name 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 StringId - The ID of the Service Bus Namespace to replicate to.
- primary
Namespace StringId - The ID of the primary Service Bus Namespace to replicate. Changing this forces a new resource to be created.
- String
- The Shared access policies used to access the connection string for the alias.
- name 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 stringId - The ID of the Service Bus Namespace to replicate to.
- primary
Namespace stringId - The ID of the primary Service Bus Namespace to replicate. Changing this forces a new resource to be created.
- string
- The Shared access policies used to access the connection string for the alias.
- name 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_ strid - The ID of the Service Bus Namespace to replicate to.
- primary_
namespace_ strid - The ID of the primary Service Bus Namespace to replicate. Changing this forces a new resource to be created.
- str
- The Shared access policies used to access the connection string for the alias.
- name 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 StringId - The ID of the Service Bus Namespace to replicate to.
- primary
Namespace StringId - The ID of the primary Service Bus Namespace to replicate. Changing this forces a new resource to be created.
- String
- The Shared access policies used to access the connection string for the alias.
- name 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:
- Default
Primary stringKey - The primary access key for the authorization rule
RootManageSharedAccessKey
. - Default
Secondary stringKey - The secondary access key for the authorization rule
RootManageSharedAccessKey
. - Id string
- The provider-assigned unique ID for this managed resource.
- Primary
Connection stringString Alias - The alias Primary Connection String for the ServiceBus Namespace.
- Secondary
Connection stringString Alias - The alias Secondary Connection String for the ServiceBus Namespace
- Default
Primary stringKey - The primary access key for the authorization rule
RootManageSharedAccessKey
. - Default
Secondary stringKey - The secondary access key for the authorization rule
RootManageSharedAccessKey
. - Id string
- The provider-assigned unique ID for this managed resource.
- Primary
Connection stringString Alias - The alias Primary Connection String for the ServiceBus Namespace.
- Secondary
Connection stringString Alias - The alias Secondary Connection String for the ServiceBus Namespace
- default
Primary StringKey - The primary access key for the authorization rule
RootManageSharedAccessKey
. - default
Secondary StringKey - The secondary access key for the authorization rule
RootManageSharedAccessKey
. - id String
- The provider-assigned unique ID for this managed resource.
- primary
Connection StringString Alias - The alias Primary Connection String for the ServiceBus Namespace.
- secondary
Connection StringString Alias - The alias Secondary Connection String for the ServiceBus Namespace
- default
Primary stringKey - The primary access key for the authorization rule
RootManageSharedAccessKey
. - default
Secondary stringKey - The secondary access key for the authorization rule
RootManageSharedAccessKey
. - id string
- The provider-assigned unique ID for this managed resource.
- primary
Connection stringString Alias - The alias Primary Connection String for the ServiceBus Namespace.
- secondary
Connection stringString Alias - The alias Secondary Connection String for the ServiceBus Namespace
- default_
primary_ strkey - The primary access key for the authorization rule
RootManageSharedAccessKey
. - default_
secondary_ strkey - The secondary access key for the authorization rule
RootManageSharedAccessKey
. - id str
- The provider-assigned unique ID for this managed resource.
- primary_
connection_ strstring_ alias - The alias Primary Connection String for the ServiceBus Namespace.
- secondary_
connection_ strstring_ alias - The alias Secondary Connection String for the ServiceBus Namespace
- default
Primary StringKey - The primary access key for the authorization rule
RootManageSharedAccessKey
. - default
Secondary StringKey - The secondary access key for the authorization rule
RootManageSharedAccessKey
. - id String
- The provider-assigned unique ID for this managed resource.
- primary
Connection StringString Alias - The alias Primary Connection String for the ServiceBus Namespace.
- secondary
Connection StringString Alias - 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)
Resource lookup is not supported in YAML
- name
- The unique name of the resulting resource.
- id
- 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
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- 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
- The unique name of the resulting resource.
- id
- 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
- The unique name of the resulting resource.
- id
- 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.
- string
- The Shared access policies used to access the connection string for the alias.
- Default
Primary stringKey - The primary access key for the authorization rule
RootManageSharedAccessKey
. - Default
Secondary stringKey - The secondary access key for the authorization rule
RootManageSharedAccessKey
. - Name 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 stringId - The ID of the Service Bus Namespace to replicate to.
- Primary
Connection stringString Alias - The alias Primary Connection String for the ServiceBus Namespace.
- Primary
Namespace stringId - The ID of the primary Service Bus Namespace to replicate. Changing this forces a new resource to be created.
- Secondary
Connection stringString Alias - The alias Secondary Connection String for the ServiceBus Namespace
- string
- The Shared access policies used to access the connection string for the alias.
- Default
Primary stringKey - The primary access key for the authorization rule
RootManageSharedAccessKey
. - Default
Secondary stringKey - The secondary access key for the authorization rule
RootManageSharedAccessKey
. - Name 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 stringId - The ID of the Service Bus Namespace to replicate to.
- Primary
Connection stringString Alias - The alias Primary Connection String for the ServiceBus Namespace.
- Primary
Namespace stringId - The ID of the primary Service Bus Namespace to replicate. Changing this forces a new resource to be created.
- Secondary
Connection stringString Alias - The alias Secondary Connection String for the ServiceBus Namespace
- String
- The Shared access policies used to access the connection string for the alias.
- default
Primary StringKey - The primary access key for the authorization rule
RootManageSharedAccessKey
. - default
Secondary StringKey - The secondary access key for the authorization rule
RootManageSharedAccessKey
. - name 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 StringId - The ID of the Service Bus Namespace to replicate to.
- primary
Connection StringString Alias - The alias Primary Connection String for the ServiceBus Namespace.
- primary
Namespace StringId - The ID of the primary Service Bus Namespace to replicate. Changing this forces a new resource to be created.
- secondary
Connection StringString Alias - The alias Secondary Connection String for the ServiceBus Namespace
- string
- The Shared access policies used to access the connection string for the alias.
- default
Primary stringKey - The primary access key for the authorization rule
RootManageSharedAccessKey
. - default
Secondary stringKey - The secondary access key for the authorization rule
RootManageSharedAccessKey
. - name 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 stringId - The ID of the Service Bus Namespace to replicate to.
- primary
Connection stringString Alias - The alias Primary Connection String for the ServiceBus Namespace.
- primary
Namespace stringId - The ID of the primary Service Bus Namespace to replicate. Changing this forces a new resource to be created.
- secondary
Connection stringString Alias - The alias Secondary Connection String for the ServiceBus Namespace
- str
- The Shared access policies used to access the connection string for the alias.
- default_
primary_ strkey - The primary access key for the authorization rule
RootManageSharedAccessKey
. - default_
secondary_ strkey - The secondary access key for the authorization rule
RootManageSharedAccessKey
. - name 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_ strid - The ID of the Service Bus Namespace to replicate to.
- primary_
connection_ strstring_ alias - The alias Primary Connection String for the ServiceBus Namespace.
- primary_
namespace_ strid - The ID of the primary Service Bus Namespace to replicate. Changing this forces a new resource to be created.
- secondary_
connection_ strstring_ alias - The alias Secondary Connection String for the ServiceBus Namespace
- String
- The Shared access policies used to access the connection string for the alias.
- default
Primary StringKey - The primary access key for the authorization rule
RootManageSharedAccessKey
. - default
Secondary StringKey - The secondary access key for the authorization rule
RootManageSharedAccessKey
. - name 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 StringId - The ID of the Service Bus Namespace to replicate to.
- primary
Connection StringString Alias - The alias Primary Connection String for the ServiceBus Namespace.
- primary
Namespace StringId - The ID of the primary Service Bus Namespace to replicate. Changing this forces a new resource to be created.
- secondary
Connection StringString Alias - 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
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.