ProtectionContainer

class ProtectionContainer : KotlinCustomResource

Manages a Azure Site Recovery protection container. Protection containers serve as containers for replicated VMs and belong to a single region / recovery fabric. Protection containers can contain more than one replicated VM. To replicate a VM, a container must exist in both the source and target Azure regions.

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.recoveryservices.Vault;
import com.pulumi.azure.recoveryservices.VaultArgs;
import com.pulumi.azure.siterecovery.Fabric;
import com.pulumi.azure.siterecovery.FabricArgs;
import com.pulumi.azure.siterecovery.ProtectionContainer;
import com.pulumi.azure.siterecovery.ProtectionContainerArgs;
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 primary = new ResourceGroup("primary", ResourceGroupArgs.builder()
.location("West US")
.build());
var secondary = new ResourceGroup("secondary", ResourceGroupArgs.builder()
.location("East US")
.build());
var vault = new Vault("vault", VaultArgs.builder()
.location(secondary.location())
.resourceGroupName(secondary.name())
.sku("Standard")
.build());
var fabric = new Fabric("fabric", FabricArgs.builder()
.resourceGroupName(secondary.name())
.recoveryVaultName(vault.name())
.location(primary.location())
.build());
var protection_container = new ProtectionContainer("protection-container", ProtectionContainerArgs.builder()
.resourceGroupName(secondary.name())
.recoveryVaultName(vault.name())
.recoveryFabricName(fabric.name())
.build());
}
}

Import

Site Recovery Protection Containers can be imported using the resource id, e.g.

$ pulumi import azure:siterecovery/protectionContainer:ProtectionContainer mycontainer /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/resource-group-name/providers/Microsoft.RecoveryServices/vaults/recovery-vault-name/replicationFabrics/fabric-name/replicationProtectionContainers/protection-container-name

Properties

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val name: Output<String>

The name of the protection container. 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

Name of fabric that should contain this protection container. Changing this forces a new resource to be created.

Link copied to clipboard

The name of the vault that should be updated. Changing this forces a new resource to be created.

Link copied to clipboard

Name of the resource group where the vault that should be updated is located. Changing this forces a new resource to be created.

Link copied to clipboard
val urn: Output<String>