Show / Hide Table of Contents

Class ProtectionContainer

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

using Pulumi;
using Azure = Pulumi.Azure;

class MyStack : Stack
{
public MyStack()
{
    var primary = new Azure.Core.ResourceGroup("primary", new Azure.Core.ResourceGroupArgs
    {
        Location = "West US",
    });
    var secondary = new Azure.Core.ResourceGroup("secondary", new Azure.Core.ResourceGroupArgs
    {
        Location = "East US",
    });
    var vault = new Azure.RecoveryServices.Vault("vault", new Azure.RecoveryServices.VaultArgs
    {
        Location = secondary.Location,
        ResourceGroupName = secondary.Name,
        Sku = "Standard",
    });
    var fabric = new Azure.SiteRecovery.Fabric("fabric", new Azure.SiteRecovery.FabricArgs
    {
        ResourceGroupName = secondary.Name,
        RecoveryVaultName = vault.Name,
        Location = primary.Location,
    });
    var protection_container = new Azure.SiteRecovery.ProtectionContainer("protection-container", new Azure.SiteRecovery.ProtectionContainerArgs
    {
        ResourceGroupName = secondary.Name,
        RecoveryVaultName = vault.Name,
        RecoveryFabricName = fabric.Name,
    });
}

}
Inheritance
System.Object
Resource
CustomResource
ProtectionContainer
Inherited Members
CustomResource.Id
Resource.GetResourceType()
Resource.GetResourceName()
Resource.Urn
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Pulumi.Azure.SiteRecovery
Assembly: Pulumi.Azure.dll
Syntax
public class ProtectionContainer : CustomResource

Constructors

View Source

ProtectionContainer(String, ProtectionContainerArgs, CustomResourceOptions)

Create a ProtectionContainer resource with the given unique name, arguments, and options.

Declaration
public ProtectionContainer(string name, ProtectionContainerArgs args, CustomResourceOptions options = null)
Parameters
Type Name Description
System.String name

The unique name of the resource

ProtectionContainerArgs args

The arguments used to populate this resource's properties

CustomResourceOptions options

A bag of options that control this resource's behavior

Properties

View Source

Name

The name of the network mapping.

Declaration
public Output<string> Name { get; }
Property Value
Type Description
Output<System.String>
View Source

RecoveryFabricName

Name of fabric that should contain this protection container.

Declaration
public Output<string> RecoveryFabricName { get; }
Property Value
Type Description
Output<System.String>
View Source

RecoveryVaultName

The name of the vault that should be updated.

Declaration
public Output<string> RecoveryVaultName { get; }
Property Value
Type Description
Output<System.String>
View Source

ResourceGroupName

Name of the resource group where the vault that should be updated is located.

Declaration
public Output<string> ResourceGroupName { get; }
Property Value
Type Description
Output<System.String>

Methods

View Source

Get(String, Input<String>, ProtectionContainerState, CustomResourceOptions)

Get an existing ProtectionContainer resource's state with the given name, ID, and optional extra properties used to qualify the lookup.

Declaration
public static ProtectionContainer Get(string name, Input<string> id, ProtectionContainerState state = null, CustomResourceOptions options = null)
Parameters
Type Name Description
System.String name

The unique name of the resulting resource.

Input<System.String> id

The unique provider ID of the resource to lookup.

ProtectionContainerState state

Any extra arguments used during the lookup.

CustomResourceOptions options

A bag of options that control this resource's behavior

Returns
Type Description
ProtectionContainer
  • View Source
Back to top Copyright 2016-2020, Pulumi Corporation.