NamespaceDisasterRecoveryConfig

class NamespaceDisasterRecoveryConfig : KotlinCustomResource

Manages a Disaster Recovery Config for a Service Bus Namespace.

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

Example Usage

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 exampleResourceGroup = new ResourceGroup("exampleResourceGroup", ResourceGroupArgs.builder()
.location("West Europe")
.build());
var primary = new Namespace("primary", NamespaceArgs.builder()
.location(exampleResourceGroup.location())
.resourceGroupName(exampleResourceGroup.name())
.sku("Premium")
.capacity("1")
.build());
var secondary = new Namespace("secondary", NamespaceArgs.builder()
.location(exampleResourceGroup.location())
.resourceGroupName(exampleResourceGroup.name())
.sku("Premium")
.capacity("1")
.build());
var exampleNamespaceAuthorizationRule = new NamespaceAuthorizationRule("exampleNamespaceAuthorizationRule", NamespaceAuthorizationRuleArgs.builder()
.namespaceId(azurerm_servicebus_namespace.example().id())
.listen(true)
.send(true)
.manage(false)
.build());
var exampleNamespaceDisasterRecoveryConfig = new NamespaceDisasterRecoveryConfig("exampleNamespaceDisasterRecoveryConfig", NamespaceDisasterRecoveryConfigArgs.builder()
.primaryNamespaceId(primary.id())
.partnerNamespaceId(secondary.id())
.aliasAuthorizationRuleId(exampleNamespaceAuthorizationRule.id())
.build());
}
}

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

Properties

Link copied to clipboard

The Shared access policies used to access the connection string for the alias.

Link copied to clipboard

The primary access key for the authorization rule RootManageSharedAccessKey.

Link copied to clipboard

The secondary access key for the authorization rule RootManageSharedAccessKey.

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val name: Output<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.

Link copied to clipboard

The ID of the Service Bus Namespace to replicate to.

Link copied to clipboard

The alias Primary Connection String for the ServiceBus Namespace.

Link copied to clipboard

The ID of the primary Service Bus Namespace to replicate. Changing this forces a new resource to be created.

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

The alias Secondary Connection String for the ServiceBus Namespace

Link copied to clipboard
val urn: Output<String>