Disaster Recovery Config
Single item in List or Get Alias(Disaster Recovery configuration) operation Uses Azure REST API version 2022-01-01-preview. In version 1.x of the Azure Native provider, it used API version 2017-04-01. Other available API versions: 2022-10-01-preview, 2023-01-01-preview, 2024-01-01.
Example Usage
SBAliasCreate
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var disasterRecoveryConfig = new AzureNative.ServiceBus.DisasterRecoveryConfig("disasterRecoveryConfig", new()
{
Alias = "sdk-Namespace-8860",
AlternateName = "alternameforAlias-Namespace-8860",
NamespaceName = "sdk-Namespace-8860",
PartnerNamespace = "sdk-Namespace-37",
ResourceGroupName = "ardsouzatestRG",
});
});
Content copied to clipboard
package main
import (
servicebus "github.com/pulumi/pulumi-azure-native-sdk/servicebus/v2"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := servicebus.NewDisasterRecoveryConfig(ctx, "disasterRecoveryConfig", &servicebus.DisasterRecoveryConfigArgs{
Alias: pulumi.String("sdk-Namespace-8860"),
AlternateName: pulumi.String("alternameforAlias-Namespace-8860"),
NamespaceName: pulumi.String("sdk-Namespace-8860"),
PartnerNamespace: pulumi.String("sdk-Namespace-37"),
ResourceGroupName: pulumi.String("ardsouzatestRG"),
})
if err != nil {
return err
}
return nil
})
}
Content copied to clipboard
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.servicebus.DisasterRecoveryConfig;
import com.pulumi.azurenative.servicebus.DisasterRecoveryConfigArgs;
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 disasterRecoveryConfig = new DisasterRecoveryConfig("disasterRecoveryConfig", DisasterRecoveryConfigArgs.builder()
.alias("sdk-Namespace-8860")
.alternateName("alternameforAlias-Namespace-8860")
.namespaceName("sdk-Namespace-8860")
.partnerNamespace("sdk-Namespace-37")
.resourceGroupName("ardsouzatestRG")
.build());
}
}
Content copied to clipboard
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:servicebus:DisasterRecoveryConfig sdk-Namespace-8860 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus/namespaces/{namespaceName}/disasterRecoveryConfigs/{alias}
Content copied to clipboard
Properties
Link copied to clipboard
Primary/Secondary eventhub namespace name, which is part of GEO DR pairing
Link copied to clipboard
ARM Id of the Primary/Secondary eventhub namespace name, which is part of GEO DR pairing
Link copied to clipboard
Number of entities pending to be replicated.
Link copied to clipboard
Provisioning state of the Alias(Disaster Recovery configuration) - possible values 'Accepted' or 'Succeeded' or 'Failed'
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
The system meta data relating to this resource.