ReplicationRecoveryPlan

class ReplicationRecoveryPlan : KotlinCustomResource

Recovery plan details. API Version: 2018-07-10.

Example Usage

Creates a recovery plan with the given details.

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var replicationRecoveryPlan = new AzureNative.RecoveryServices.ReplicationRecoveryPlan("replicationRecoveryPlan", new()
{
Properties = new AzureNative.RecoveryServices.Inputs.CreateRecoveryPlanInputPropertiesArgs
{
FailoverDeploymentModel = "ResourceManager",
Groups = new[]
{
new AzureNative.RecoveryServices.Inputs.RecoveryPlanGroupArgs
{
EndGroupActions = new[] {},
GroupType = "Boot",
ReplicationProtectedItems = new[]
{
new AzureNative.RecoveryServices.Inputs.RecoveryPlanProtectedItemArgs
{
Id = "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/resourceGroupPS1/providers/Microsoft.RecoveryServices/vaults/vault1/replicationFabrics/cloud1/replicationProtectionContainers/cloud_6d224fc6-f326-5d35-96de-fbf51efb3179/replicationProtectedItems/f8491e4f-817a-40dd-a90c-af773978c75b",
VirtualMachineId = "f8491e4f-817a-40dd-a90c-af773978c75b",
},
},
StartGroupActions = new[] {},
},
},
PrimaryFabricId = "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/resourceGroupPS1/providers/Microsoft.RecoveryServices/vaults/vault1/replicationFabrics/cloud1",
RecoveryFabricId = "Microsoft Azure",
},
RecoveryPlanName = "RPtest1",
ResourceGroupName = "resourceGroupPS1",
ResourceName = "vault1",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.recoveryservices.ReplicationRecoveryPlan;
import com.pulumi.azurenative.recoveryservices.ReplicationRecoveryPlanArgs;
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 replicationRecoveryPlan = new ReplicationRecoveryPlan("replicationRecoveryPlan", ReplicationRecoveryPlanArgs.builder()
.properties(Map.ofEntries(
Map.entry("failoverDeploymentModel", "ResourceManager"),
Map.entry("groups", Map.ofEntries(
Map.entry("endGroupActions", ),
Map.entry("groupType", "Boot"),
Map.entry("replicationProtectedItems", Map.ofEntries(
Map.entry("id", "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/resourceGroupPS1/providers/Microsoft.RecoveryServices/vaults/vault1/replicationFabrics/cloud1/replicationProtectionContainers/cloud_6d224fc6-f326-5d35-96de-fbf51efb3179/replicationProtectedItems/f8491e4f-817a-40dd-a90c-af773978c75b"),
Map.entry("virtualMachineId", "f8491e4f-817a-40dd-a90c-af773978c75b")
)),
Map.entry("startGroupActions", )
)),
Map.entry("primaryFabricId", "/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/resourceGroupPS1/providers/Microsoft.RecoveryServices/vaults/vault1/replicationFabrics/cloud1"),
Map.entry("recoveryFabricId", "Microsoft Azure")
))
.recoveryPlanName("RPtest1")
.resourceGroupName("resourceGroupPS1")
.resourceName("vault1")
.build());
}
}

Import

An existing resource can be imported using its type token, name, and identifier, e.g.

$ pulumi import azure-native:recoveryservices:ReplicationRecoveryPlan RPtest1 /Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/resourceGroupPS1/providers/Microsoft.RecoveryServices/vaults/vault1/replicationRecoveryPlans/RPtest1

Properties

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val location: Output<String>?

Resource Location

Link copied to clipboard
val name: Output<String>

Resource Name

Link copied to clipboard

The custom details.

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val type: Output<String>

Resource Type

Link copied to clipboard
val urn: Output<String>