1. Packages
  2. Azure Classic
  3. API Docs
  4. siterecovery
  5. ProtectionContainerMapping

We recommend using Azure Native.

Azure Classic v5.72.0 published on Monday, Apr 15, 2024 by Pulumi

azure.siterecovery.ProtectionContainerMapping

Explore with Pulumi AI

azure logo

We recommend using Azure Native.

Azure Classic v5.72.0 published on Monday, Apr 15, 2024 by Pulumi

    Manages a Azure recovery vault protection container mapping. A protection container mapping decides how to translate the protection container when a VM is migrated from one region to another.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as azure from "@pulumi/azure";
    
    const primary = new azure.core.ResourceGroup("primary", {
        name: "tfex-network-mapping-primary",
        location: "West US",
    });
    const secondary = new azure.core.ResourceGroup("secondary", {
        name: "tfex-network-mapping-secondary",
        location: "East US",
    });
    const vault = new azure.recoveryservices.Vault("vault", {
        name: "example-recovery-vault",
        location: secondary.location,
        resourceGroupName: secondary.name,
        sku: "Standard",
    });
    const primaryFabric = new azure.siterecovery.Fabric("primary", {
        name: "primary-fabric",
        resourceGroupName: secondary.name,
        recoveryVaultName: vault.name,
        location: primary.location,
    });
    const secondaryFabric = new azure.siterecovery.Fabric("secondary", {
        name: "secondary-fabric",
        resourceGroupName: secondary.name,
        recoveryVaultName: vault.name,
        location: secondary.location,
    });
    const primaryProtectionContainer = new azure.siterecovery.ProtectionContainer("primary", {
        name: "primary-protection-container",
        resourceGroupName: secondary.name,
        recoveryVaultName: vault.name,
        recoveryFabricName: primaryFabric.name,
    });
    const secondaryProtectionContainer = new azure.siterecovery.ProtectionContainer("secondary", {
        name: "secondary-protection-container",
        resourceGroupName: secondary.name,
        recoveryVaultName: vault.name,
        recoveryFabricName: secondaryFabric.name,
    });
    const policy = new azure.siterecovery.ReplicationPolicy("policy", {
        name: "policy",
        resourceGroupName: secondary.name,
        recoveryVaultName: vault.name,
        recoveryPointRetentionInMinutes: 24 * 60,
        applicationConsistentSnapshotFrequencyInMinutes: 4 * 60,
    });
    const container_mapping = new azure.siterecovery.ProtectionContainerMapping("container-mapping", {
        name: "container-mapping",
        resourceGroupName: secondary.name,
        recoveryVaultName: vault.name,
        recoveryFabricName: primaryFabric.name,
        recoverySourceProtectionContainerName: primaryProtectionContainer.name,
        recoveryTargetProtectionContainerId: secondaryProtectionContainer.id,
        recoveryReplicationPolicyId: policy.id,
    });
    
    import pulumi
    import pulumi_azure as azure
    
    primary = azure.core.ResourceGroup("primary",
        name="tfex-network-mapping-primary",
        location="West US")
    secondary = azure.core.ResourceGroup("secondary",
        name="tfex-network-mapping-secondary",
        location="East US")
    vault = azure.recoveryservices.Vault("vault",
        name="example-recovery-vault",
        location=secondary.location,
        resource_group_name=secondary.name,
        sku="Standard")
    primary_fabric = azure.siterecovery.Fabric("primary",
        name="primary-fabric",
        resource_group_name=secondary.name,
        recovery_vault_name=vault.name,
        location=primary.location)
    secondary_fabric = azure.siterecovery.Fabric("secondary",
        name="secondary-fabric",
        resource_group_name=secondary.name,
        recovery_vault_name=vault.name,
        location=secondary.location)
    primary_protection_container = azure.siterecovery.ProtectionContainer("primary",
        name="primary-protection-container",
        resource_group_name=secondary.name,
        recovery_vault_name=vault.name,
        recovery_fabric_name=primary_fabric.name)
    secondary_protection_container = azure.siterecovery.ProtectionContainer("secondary",
        name="secondary-protection-container",
        resource_group_name=secondary.name,
        recovery_vault_name=vault.name,
        recovery_fabric_name=secondary_fabric.name)
    policy = azure.siterecovery.ReplicationPolicy("policy",
        name="policy",
        resource_group_name=secondary.name,
        recovery_vault_name=vault.name,
        recovery_point_retention_in_minutes=24 * 60,
        application_consistent_snapshot_frequency_in_minutes=4 * 60)
    container_mapping = azure.siterecovery.ProtectionContainerMapping("container-mapping",
        name="container-mapping",
        resource_group_name=secondary.name,
        recovery_vault_name=vault.name,
        recovery_fabric_name=primary_fabric.name,
        recovery_source_protection_container_name=primary_protection_container.name,
        recovery_target_protection_container_id=secondary_protection_container.id,
        recovery_replication_policy_id=policy.id)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/core"
    	"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/recoveryservices"
    	"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/siterecovery"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		primary, err := core.NewResourceGroup(ctx, "primary", &core.ResourceGroupArgs{
    			Name:     pulumi.String("tfex-network-mapping-primary"),
    			Location: pulumi.String("West US"),
    		})
    		if err != nil {
    			return err
    		}
    		secondary, err := core.NewResourceGroup(ctx, "secondary", &core.ResourceGroupArgs{
    			Name:     pulumi.String("tfex-network-mapping-secondary"),
    			Location: pulumi.String("East US"),
    		})
    		if err != nil {
    			return err
    		}
    		vault, err := recoveryservices.NewVault(ctx, "vault", &recoveryservices.VaultArgs{
    			Name:              pulumi.String("example-recovery-vault"),
    			Location:          secondary.Location,
    			ResourceGroupName: secondary.Name,
    			Sku:               pulumi.String("Standard"),
    		})
    		if err != nil {
    			return err
    		}
    		primaryFabric, err := siterecovery.NewFabric(ctx, "primary", &siterecovery.FabricArgs{
    			Name:              pulumi.String("primary-fabric"),
    			ResourceGroupName: secondary.Name,
    			RecoveryVaultName: vault.Name,
    			Location:          primary.Location,
    		})
    		if err != nil {
    			return err
    		}
    		secondaryFabric, err := siterecovery.NewFabric(ctx, "secondary", &siterecovery.FabricArgs{
    			Name:              pulumi.String("secondary-fabric"),
    			ResourceGroupName: secondary.Name,
    			RecoveryVaultName: vault.Name,
    			Location:          secondary.Location,
    		})
    		if err != nil {
    			return err
    		}
    		primaryProtectionContainer, err := siterecovery.NewProtectionContainer(ctx, "primary", &siterecovery.ProtectionContainerArgs{
    			Name:               pulumi.String("primary-protection-container"),
    			ResourceGroupName:  secondary.Name,
    			RecoveryVaultName:  vault.Name,
    			RecoveryFabricName: primaryFabric.Name,
    		})
    		if err != nil {
    			return err
    		}
    		secondaryProtectionContainer, err := siterecovery.NewProtectionContainer(ctx, "secondary", &siterecovery.ProtectionContainerArgs{
    			Name:               pulumi.String("secondary-protection-container"),
    			ResourceGroupName:  secondary.Name,
    			RecoveryVaultName:  vault.Name,
    			RecoveryFabricName: secondaryFabric.Name,
    		})
    		if err != nil {
    			return err
    		}
    		policy, err := siterecovery.NewReplicationPolicy(ctx, "policy", &siterecovery.ReplicationPolicyArgs{
    			Name:                            pulumi.String("policy"),
    			ResourceGroupName:               secondary.Name,
    			RecoveryVaultName:               vault.Name,
    			RecoveryPointRetentionInMinutes: 24 * 60,
    			ApplicationConsistentSnapshotFrequencyInMinutes: 4 * 60,
    		})
    		if err != nil {
    			return err
    		}
    		_, err = siterecovery.NewProtectionContainerMapping(ctx, "container-mapping", &siterecovery.ProtectionContainerMappingArgs{
    			Name:                                  pulumi.String("container-mapping"),
    			ResourceGroupName:                     secondary.Name,
    			RecoveryVaultName:                     vault.Name,
    			RecoveryFabricName:                    primaryFabric.Name,
    			RecoverySourceProtectionContainerName: primaryProtectionContainer.Name,
    			RecoveryTargetProtectionContainerId:   secondaryProtectionContainer.ID(),
    			RecoveryReplicationPolicyId:           policy.ID(),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Azure = Pulumi.Azure;
    
    return await Deployment.RunAsync(() => 
    {
        var primary = new Azure.Core.ResourceGroup("primary", new()
        {
            Name = "tfex-network-mapping-primary",
            Location = "West US",
        });
    
        var secondary = new Azure.Core.ResourceGroup("secondary", new()
        {
            Name = "tfex-network-mapping-secondary",
            Location = "East US",
        });
    
        var vault = new Azure.RecoveryServices.Vault("vault", new()
        {
            Name = "example-recovery-vault",
            Location = secondary.Location,
            ResourceGroupName = secondary.Name,
            Sku = "Standard",
        });
    
        var primaryFabric = new Azure.SiteRecovery.Fabric("primary", new()
        {
            Name = "primary-fabric",
            ResourceGroupName = secondary.Name,
            RecoveryVaultName = vault.Name,
            Location = primary.Location,
        });
    
        var secondaryFabric = new Azure.SiteRecovery.Fabric("secondary", new()
        {
            Name = "secondary-fabric",
            ResourceGroupName = secondary.Name,
            RecoveryVaultName = vault.Name,
            Location = secondary.Location,
        });
    
        var primaryProtectionContainer = new Azure.SiteRecovery.ProtectionContainer("primary", new()
        {
            Name = "primary-protection-container",
            ResourceGroupName = secondary.Name,
            RecoveryVaultName = vault.Name,
            RecoveryFabricName = primaryFabric.Name,
        });
    
        var secondaryProtectionContainer = new Azure.SiteRecovery.ProtectionContainer("secondary", new()
        {
            Name = "secondary-protection-container",
            ResourceGroupName = secondary.Name,
            RecoveryVaultName = vault.Name,
            RecoveryFabricName = secondaryFabric.Name,
        });
    
        var policy = new Azure.SiteRecovery.ReplicationPolicy("policy", new()
        {
            Name = "policy",
            ResourceGroupName = secondary.Name,
            RecoveryVaultName = vault.Name,
            RecoveryPointRetentionInMinutes = 24 * 60,
            ApplicationConsistentSnapshotFrequencyInMinutes = 4 * 60,
        });
    
        var container_mapping = new Azure.SiteRecovery.ProtectionContainerMapping("container-mapping", new()
        {
            Name = "container-mapping",
            ResourceGroupName = secondary.Name,
            RecoveryVaultName = vault.Name,
            RecoveryFabricName = primaryFabric.Name,
            RecoverySourceProtectionContainerName = primaryProtectionContainer.Name,
            RecoveryTargetProtectionContainerId = secondaryProtectionContainer.Id,
            RecoveryReplicationPolicyId = policy.Id,
        });
    
    });
    
    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 com.pulumi.azure.siterecovery.ReplicationPolicy;
    import com.pulumi.azure.siterecovery.ReplicationPolicyArgs;
    import com.pulumi.azure.siterecovery.ProtectionContainerMapping;
    import com.pulumi.azure.siterecovery.ProtectionContainerMappingArgs;
    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()        
                .name("tfex-network-mapping-primary")
                .location("West US")
                .build());
    
            var secondary = new ResourceGroup("secondary", ResourceGroupArgs.builder()        
                .name("tfex-network-mapping-secondary")
                .location("East US")
                .build());
    
            var vault = new Vault("vault", VaultArgs.builder()        
                .name("example-recovery-vault")
                .location(secondary.location())
                .resourceGroupName(secondary.name())
                .sku("Standard")
                .build());
    
            var primaryFabric = new Fabric("primaryFabric", FabricArgs.builder()        
                .name("primary-fabric")
                .resourceGroupName(secondary.name())
                .recoveryVaultName(vault.name())
                .location(primary.location())
                .build());
    
            var secondaryFabric = new Fabric("secondaryFabric", FabricArgs.builder()        
                .name("secondary-fabric")
                .resourceGroupName(secondary.name())
                .recoveryVaultName(vault.name())
                .location(secondary.location())
                .build());
    
            var primaryProtectionContainer = new ProtectionContainer("primaryProtectionContainer", ProtectionContainerArgs.builder()        
                .name("primary-protection-container")
                .resourceGroupName(secondary.name())
                .recoveryVaultName(vault.name())
                .recoveryFabricName(primaryFabric.name())
                .build());
    
            var secondaryProtectionContainer = new ProtectionContainer("secondaryProtectionContainer", ProtectionContainerArgs.builder()        
                .name("secondary-protection-container")
                .resourceGroupName(secondary.name())
                .recoveryVaultName(vault.name())
                .recoveryFabricName(secondaryFabric.name())
                .build());
    
            var policy = new ReplicationPolicy("policy", ReplicationPolicyArgs.builder()        
                .name("policy")
                .resourceGroupName(secondary.name())
                .recoveryVaultName(vault.name())
                .recoveryPointRetentionInMinutes(24 * 60)
                .applicationConsistentSnapshotFrequencyInMinutes(4 * 60)
                .build());
    
            var container_mapping = new ProtectionContainerMapping("container-mapping", ProtectionContainerMappingArgs.builder()        
                .name("container-mapping")
                .resourceGroupName(secondary.name())
                .recoveryVaultName(vault.name())
                .recoveryFabricName(primaryFabric.name())
                .recoverySourceProtectionContainerName(primaryProtectionContainer.name())
                .recoveryTargetProtectionContainerId(secondaryProtectionContainer.id())
                .recoveryReplicationPolicyId(policy.id())
                .build());
    
        }
    }
    
    Coming soon!
    

    Create ProtectionContainerMapping Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new ProtectionContainerMapping(name: string, args: ProtectionContainerMappingArgs, opts?: CustomResourceOptions);
    @overload
    def ProtectionContainerMapping(resource_name: str,
                                   args: ProtectionContainerMappingArgs,
                                   opts: Optional[ResourceOptions] = None)
    
    @overload
    def ProtectionContainerMapping(resource_name: str,
                                   opts: Optional[ResourceOptions] = None,
                                   recovery_fabric_name: Optional[str] = None,
                                   recovery_replication_policy_id: Optional[str] = None,
                                   recovery_source_protection_container_name: Optional[str] = None,
                                   recovery_target_protection_container_id: Optional[str] = None,
                                   recovery_vault_name: Optional[str] = None,
                                   resource_group_name: Optional[str] = None,
                                   automatic_update: Optional[ProtectionContainerMappingAutomaticUpdateArgs] = None,
                                   name: Optional[str] = None)
    func NewProtectionContainerMapping(ctx *Context, name string, args ProtectionContainerMappingArgs, opts ...ResourceOption) (*ProtectionContainerMapping, error)
    public ProtectionContainerMapping(string name, ProtectionContainerMappingArgs args, CustomResourceOptions? opts = null)
    public ProtectionContainerMapping(String name, ProtectionContainerMappingArgs args)
    public ProtectionContainerMapping(String name, ProtectionContainerMappingArgs args, CustomResourceOptions options)
    
    type: azure:siterecovery:ProtectionContainerMapping
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args ProtectionContainerMappingArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args ProtectionContainerMappingArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args ProtectionContainerMappingArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args ProtectionContainerMappingArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args ProtectionContainerMappingArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Example

    The following reference example uses placeholder values for all input properties.

    var protectionContainerMappingResource = new Azure.SiteRecovery.ProtectionContainerMapping("protectionContainerMappingResource", new()
    {
        RecoveryFabricName = "string",
        RecoveryReplicationPolicyId = "string",
        RecoverySourceProtectionContainerName = "string",
        RecoveryTargetProtectionContainerId = "string",
        RecoveryVaultName = "string",
        ResourceGroupName = "string",
        AutomaticUpdate = new Azure.SiteRecovery.Inputs.ProtectionContainerMappingAutomaticUpdateArgs
        {
            AuthenticationType = "string",
            AutomationAccountId = "string",
            Enabled = false,
        },
        Name = "string",
    });
    
    example, err := siterecovery.NewProtectionContainerMapping(ctx, "protectionContainerMappingResource", &siterecovery.ProtectionContainerMappingArgs{
    	RecoveryFabricName:                    pulumi.String("string"),
    	RecoveryReplicationPolicyId:           pulumi.String("string"),
    	RecoverySourceProtectionContainerName: pulumi.String("string"),
    	RecoveryTargetProtectionContainerId:   pulumi.String("string"),
    	RecoveryVaultName:                     pulumi.String("string"),
    	ResourceGroupName:                     pulumi.String("string"),
    	AutomaticUpdate: &siterecovery.ProtectionContainerMappingAutomaticUpdateArgs{
    		AuthenticationType:  pulumi.String("string"),
    		AutomationAccountId: pulumi.String("string"),
    		Enabled:             pulumi.Bool(false),
    	},
    	Name: pulumi.String("string"),
    })
    
    var protectionContainerMappingResource = new ProtectionContainerMapping("protectionContainerMappingResource", ProtectionContainerMappingArgs.builder()        
        .recoveryFabricName("string")
        .recoveryReplicationPolicyId("string")
        .recoverySourceProtectionContainerName("string")
        .recoveryTargetProtectionContainerId("string")
        .recoveryVaultName("string")
        .resourceGroupName("string")
        .automaticUpdate(ProtectionContainerMappingAutomaticUpdateArgs.builder()
            .authenticationType("string")
            .automationAccountId("string")
            .enabled(false)
            .build())
        .name("string")
        .build());
    
    protection_container_mapping_resource = azure.siterecovery.ProtectionContainerMapping("protectionContainerMappingResource",
        recovery_fabric_name="string",
        recovery_replication_policy_id="string",
        recovery_source_protection_container_name="string",
        recovery_target_protection_container_id="string",
        recovery_vault_name="string",
        resource_group_name="string",
        automatic_update=azure.siterecovery.ProtectionContainerMappingAutomaticUpdateArgs(
            authentication_type="string",
            automation_account_id="string",
            enabled=False,
        ),
        name="string")
    
    const protectionContainerMappingResource = new azure.siterecovery.ProtectionContainerMapping("protectionContainerMappingResource", {
        recoveryFabricName: "string",
        recoveryReplicationPolicyId: "string",
        recoverySourceProtectionContainerName: "string",
        recoveryTargetProtectionContainerId: "string",
        recoveryVaultName: "string",
        resourceGroupName: "string",
        automaticUpdate: {
            authenticationType: "string",
            automationAccountId: "string",
            enabled: false,
        },
        name: "string",
    });
    
    type: azure:siterecovery:ProtectionContainerMapping
    properties:
        automaticUpdate:
            authenticationType: string
            automationAccountId: string
            enabled: false
        name: string
        recoveryFabricName: string
        recoveryReplicationPolicyId: string
        recoverySourceProtectionContainerName: string
        recoveryTargetProtectionContainerId: string
        recoveryVaultName: string
        resourceGroupName: string
    

    ProtectionContainerMapping Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    The ProtectionContainerMapping resource accepts the following input properties:

    RecoveryFabricName string
    Name of fabric that should contains the protection container to map. Changing this forces a new resource to be created.
    RecoveryReplicationPolicyId string
    Id of the policy to use for this mapping. Changing this forces a new resource to be created.
    RecoverySourceProtectionContainerName string
    Name of the source protection container to map. Changing this forces a new resource to be created.
    RecoveryTargetProtectionContainerId string
    Id of target protection container to map to. Changing this forces a new resource to be created.
    RecoveryVaultName string
    The name of the vault that should be updated. Changing this forces a new resource to be created.
    ResourceGroupName string
    Name of the resource group where the vault that should be updated is located. Changing this forces a new resource to be created.
    AutomaticUpdate ProtectionContainerMappingAutomaticUpdate
    a automatic_update block defined as below.
    Name string
    The name of the protection container mapping. Changing this forces a new resource to be created.
    RecoveryFabricName string
    Name of fabric that should contains the protection container to map. Changing this forces a new resource to be created.
    RecoveryReplicationPolicyId string
    Id of the policy to use for this mapping. Changing this forces a new resource to be created.
    RecoverySourceProtectionContainerName string
    Name of the source protection container to map. Changing this forces a new resource to be created.
    RecoveryTargetProtectionContainerId string
    Id of target protection container to map to. Changing this forces a new resource to be created.
    RecoveryVaultName string
    The name of the vault that should be updated. Changing this forces a new resource to be created.
    ResourceGroupName string
    Name of the resource group where the vault that should be updated is located. Changing this forces a new resource to be created.
    AutomaticUpdate ProtectionContainerMappingAutomaticUpdateArgs
    a automatic_update block defined as below.
    Name string
    The name of the protection container mapping. Changing this forces a new resource to be created.
    recoveryFabricName String
    Name of fabric that should contains the protection container to map. Changing this forces a new resource to be created.
    recoveryReplicationPolicyId String
    Id of the policy to use for this mapping. Changing this forces a new resource to be created.
    recoverySourceProtectionContainerName String
    Name of the source protection container to map. Changing this forces a new resource to be created.
    recoveryTargetProtectionContainerId String
    Id of target protection container to map to. Changing this forces a new resource to be created.
    recoveryVaultName String
    The name of the vault that should be updated. Changing this forces a new resource to be created.
    resourceGroupName String
    Name of the resource group where the vault that should be updated is located. Changing this forces a new resource to be created.
    automaticUpdate ProtectionContainerMappingAutomaticUpdate
    a automatic_update block defined as below.
    name String
    The name of the protection container mapping. Changing this forces a new resource to be created.
    recoveryFabricName string
    Name of fabric that should contains the protection container to map. Changing this forces a new resource to be created.
    recoveryReplicationPolicyId string
    Id of the policy to use for this mapping. Changing this forces a new resource to be created.
    recoverySourceProtectionContainerName string
    Name of the source protection container to map. Changing this forces a new resource to be created.
    recoveryTargetProtectionContainerId string
    Id of target protection container to map to. Changing this forces a new resource to be created.
    recoveryVaultName string
    The name of the vault that should be updated. Changing this forces a new resource to be created.
    resourceGroupName string
    Name of the resource group where the vault that should be updated is located. Changing this forces a new resource to be created.
    automaticUpdate ProtectionContainerMappingAutomaticUpdate
    a automatic_update block defined as below.
    name string
    The name of the protection container mapping. Changing this forces a new resource to be created.
    recovery_fabric_name str
    Name of fabric that should contains the protection container to map. Changing this forces a new resource to be created.
    recovery_replication_policy_id str
    Id of the policy to use for this mapping. Changing this forces a new resource to be created.
    recovery_source_protection_container_name str
    Name of the source protection container to map. Changing this forces a new resource to be created.
    recovery_target_protection_container_id str
    Id of target protection container to map to. Changing this forces a new resource to be created.
    recovery_vault_name str
    The name of the vault that should be updated. Changing this forces a new resource to be created.
    resource_group_name str
    Name of the resource group where the vault that should be updated is located. Changing this forces a new resource to be created.
    automatic_update ProtectionContainerMappingAutomaticUpdateArgs
    a automatic_update block defined as below.
    name str
    The name of the protection container mapping. Changing this forces a new resource to be created.
    recoveryFabricName String
    Name of fabric that should contains the protection container to map. Changing this forces a new resource to be created.
    recoveryReplicationPolicyId String
    Id of the policy to use for this mapping. Changing this forces a new resource to be created.
    recoverySourceProtectionContainerName String
    Name of the source protection container to map. Changing this forces a new resource to be created.
    recoveryTargetProtectionContainerId String
    Id of target protection container to map to. Changing this forces a new resource to be created.
    recoveryVaultName String
    The name of the vault that should be updated. Changing this forces a new resource to be created.
    resourceGroupName String
    Name of the resource group where the vault that should be updated is located. Changing this forces a new resource to be created.
    automaticUpdate Property Map
    a automatic_update block defined as below.
    name String
    The name of the protection container mapping. Changing this forces a new resource to be created.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the ProtectionContainerMapping resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id str
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing ProtectionContainerMapping Resource

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

    public static get(name: string, id: Input<ID>, state?: ProtectionContainerMappingState, opts?: CustomResourceOptions): ProtectionContainerMapping
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            automatic_update: Optional[ProtectionContainerMappingAutomaticUpdateArgs] = None,
            name: Optional[str] = None,
            recovery_fabric_name: Optional[str] = None,
            recovery_replication_policy_id: Optional[str] = None,
            recovery_source_protection_container_name: Optional[str] = None,
            recovery_target_protection_container_id: Optional[str] = None,
            recovery_vault_name: Optional[str] = None,
            resource_group_name: Optional[str] = None) -> ProtectionContainerMapping
    func GetProtectionContainerMapping(ctx *Context, name string, id IDInput, state *ProtectionContainerMappingState, opts ...ResourceOption) (*ProtectionContainerMapping, error)
    public static ProtectionContainerMapping Get(string name, Input<string> id, ProtectionContainerMappingState? state, CustomResourceOptions? opts = null)
    public static ProtectionContainerMapping get(String name, Output<String> id, ProtectionContainerMappingState state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    AutomaticUpdate ProtectionContainerMappingAutomaticUpdate
    a automatic_update block defined as below.
    Name string
    The name of the protection container mapping. Changing this forces a new resource to be created.
    RecoveryFabricName string
    Name of fabric that should contains the protection container to map. Changing this forces a new resource to be created.
    RecoveryReplicationPolicyId string
    Id of the policy to use for this mapping. Changing this forces a new resource to be created.
    RecoverySourceProtectionContainerName string
    Name of the source protection container to map. Changing this forces a new resource to be created.
    RecoveryTargetProtectionContainerId string
    Id of target protection container to map to. Changing this forces a new resource to be created.
    RecoveryVaultName string
    The name of the vault that should be updated. Changing this forces a new resource to be created.
    ResourceGroupName string
    Name of the resource group where the vault that should be updated is located. Changing this forces a new resource to be created.
    AutomaticUpdate ProtectionContainerMappingAutomaticUpdateArgs
    a automatic_update block defined as below.
    Name string
    The name of the protection container mapping. Changing this forces a new resource to be created.
    RecoveryFabricName string
    Name of fabric that should contains the protection container to map. Changing this forces a new resource to be created.
    RecoveryReplicationPolicyId string
    Id of the policy to use for this mapping. Changing this forces a new resource to be created.
    RecoverySourceProtectionContainerName string
    Name of the source protection container to map. Changing this forces a new resource to be created.
    RecoveryTargetProtectionContainerId string
    Id of target protection container to map to. Changing this forces a new resource to be created.
    RecoveryVaultName string
    The name of the vault that should be updated. Changing this forces a new resource to be created.
    ResourceGroupName string
    Name of the resource group where the vault that should be updated is located. Changing this forces a new resource to be created.
    automaticUpdate ProtectionContainerMappingAutomaticUpdate
    a automatic_update block defined as below.
    name String
    The name of the protection container mapping. Changing this forces a new resource to be created.
    recoveryFabricName String
    Name of fabric that should contains the protection container to map. Changing this forces a new resource to be created.
    recoveryReplicationPolicyId String
    Id of the policy to use for this mapping. Changing this forces a new resource to be created.
    recoverySourceProtectionContainerName String
    Name of the source protection container to map. Changing this forces a new resource to be created.
    recoveryTargetProtectionContainerId String
    Id of target protection container to map to. Changing this forces a new resource to be created.
    recoveryVaultName String
    The name of the vault that should be updated. Changing this forces a new resource to be created.
    resourceGroupName String
    Name of the resource group where the vault that should be updated is located. Changing this forces a new resource to be created.
    automaticUpdate ProtectionContainerMappingAutomaticUpdate
    a automatic_update block defined as below.
    name string
    The name of the protection container mapping. Changing this forces a new resource to be created.
    recoveryFabricName string
    Name of fabric that should contains the protection container to map. Changing this forces a new resource to be created.
    recoveryReplicationPolicyId string
    Id of the policy to use for this mapping. Changing this forces a new resource to be created.
    recoverySourceProtectionContainerName string
    Name of the source protection container to map. Changing this forces a new resource to be created.
    recoveryTargetProtectionContainerId string
    Id of target protection container to map to. Changing this forces a new resource to be created.
    recoveryVaultName string
    The name of the vault that should be updated. Changing this forces a new resource to be created.
    resourceGroupName string
    Name of the resource group where the vault that should be updated is located. Changing this forces a new resource to be created.
    automatic_update ProtectionContainerMappingAutomaticUpdateArgs
    a automatic_update block defined as below.
    name str
    The name of the protection container mapping. Changing this forces a new resource to be created.
    recovery_fabric_name str
    Name of fabric that should contains the protection container to map. Changing this forces a new resource to be created.
    recovery_replication_policy_id str
    Id of the policy to use for this mapping. Changing this forces a new resource to be created.
    recovery_source_protection_container_name str
    Name of the source protection container to map. Changing this forces a new resource to be created.
    recovery_target_protection_container_id str
    Id of target protection container to map to. Changing this forces a new resource to be created.
    recovery_vault_name str
    The name of the vault that should be updated. Changing this forces a new resource to be created.
    resource_group_name str
    Name of the resource group where the vault that should be updated is located. Changing this forces a new resource to be created.
    automaticUpdate Property Map
    a automatic_update block defined as below.
    name String
    The name of the protection container mapping. Changing this forces a new resource to be created.
    recoveryFabricName String
    Name of fabric that should contains the protection container to map. Changing this forces a new resource to be created.
    recoveryReplicationPolicyId String
    Id of the policy to use for this mapping. Changing this forces a new resource to be created.
    recoverySourceProtectionContainerName String
    Name of the source protection container to map. Changing this forces a new resource to be created.
    recoveryTargetProtectionContainerId String
    Id of target protection container to map to. Changing this forces a new resource to be created.
    recoveryVaultName String
    The name of the vault that should be updated. Changing this forces a new resource to be created.
    resourceGroupName String
    Name of the resource group where the vault that should be updated is located. Changing this forces a new resource to be created.

    Supporting Types

    ProtectionContainerMappingAutomaticUpdate, ProtectionContainerMappingAutomaticUpdateArgs

    AuthenticationType string

    The authentication type used for automation account. Possible values are RunAsAccount and SystemAssignedIdentity.

    Note: RunAsAccount of authentication_type is deprecated and will retire on September 30, 2023. Details could be found here.

    Note:: authentication_type will default to SystemAssignedIdentity in version 4.0.

    AutomationAccountId string

    The automation account ID which holds the automatic update runbook and authenticates to Azure resources.

    Note: automation_account_id is required when enabled is specified.

    Enabled bool

    Should the Mobility service installed on Azure virtual machines be automatically updated. Defaults to false.

    Note: The setting applies to all Azure VMs protected in the same container. For more details see this document

    AuthenticationType string

    The authentication type used for automation account. Possible values are RunAsAccount and SystemAssignedIdentity.

    Note: RunAsAccount of authentication_type is deprecated and will retire on September 30, 2023. Details could be found here.

    Note:: authentication_type will default to SystemAssignedIdentity in version 4.0.

    AutomationAccountId string

    The automation account ID which holds the automatic update runbook and authenticates to Azure resources.

    Note: automation_account_id is required when enabled is specified.

    Enabled bool

    Should the Mobility service installed on Azure virtual machines be automatically updated. Defaults to false.

    Note: The setting applies to all Azure VMs protected in the same container. For more details see this document

    authenticationType String

    The authentication type used for automation account. Possible values are RunAsAccount and SystemAssignedIdentity.

    Note: RunAsAccount of authentication_type is deprecated and will retire on September 30, 2023. Details could be found here.

    Note:: authentication_type will default to SystemAssignedIdentity in version 4.0.

    automationAccountId String

    The automation account ID which holds the automatic update runbook and authenticates to Azure resources.

    Note: automation_account_id is required when enabled is specified.

    enabled Boolean

    Should the Mobility service installed on Azure virtual machines be automatically updated. Defaults to false.

    Note: The setting applies to all Azure VMs protected in the same container. For more details see this document

    authenticationType string

    The authentication type used for automation account. Possible values are RunAsAccount and SystemAssignedIdentity.

    Note: RunAsAccount of authentication_type is deprecated and will retire on September 30, 2023. Details could be found here.

    Note:: authentication_type will default to SystemAssignedIdentity in version 4.0.

    automationAccountId string

    The automation account ID which holds the automatic update runbook and authenticates to Azure resources.

    Note: automation_account_id is required when enabled is specified.

    enabled boolean

    Should the Mobility service installed on Azure virtual machines be automatically updated. Defaults to false.

    Note: The setting applies to all Azure VMs protected in the same container. For more details see this document

    authentication_type str

    The authentication type used for automation account. Possible values are RunAsAccount and SystemAssignedIdentity.

    Note: RunAsAccount of authentication_type is deprecated and will retire on September 30, 2023. Details could be found here.

    Note:: authentication_type will default to SystemAssignedIdentity in version 4.0.

    automation_account_id str

    The automation account ID which holds the automatic update runbook and authenticates to Azure resources.

    Note: automation_account_id is required when enabled is specified.

    enabled bool

    Should the Mobility service installed on Azure virtual machines be automatically updated. Defaults to false.

    Note: The setting applies to all Azure VMs protected in the same container. For more details see this document

    authenticationType String

    The authentication type used for automation account. Possible values are RunAsAccount and SystemAssignedIdentity.

    Note: RunAsAccount of authentication_type is deprecated and will retire on September 30, 2023. Details could be found here.

    Note:: authentication_type will default to SystemAssignedIdentity in version 4.0.

    automationAccountId String

    The automation account ID which holds the automatic update runbook and authenticates to Azure resources.

    Note: automation_account_id is required when enabled is specified.

    enabled Boolean

    Should the Mobility service installed on Azure virtual machines be automatically updated. Defaults to false.

    Note: The setting applies to all Azure VMs protected in the same container. For more details see this document

    Import

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

    $ pulumi import azure:siterecovery/protectionContainerMapping:ProtectionContainerMapping mymapping /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/resource-group-name/providers/Microsoft.RecoveryServices/vaults/recovery-vault-name/replicationFabrics/fabric1/replicationProtectionContainers/container1/replicationProtectionContainerMappings/mapping1
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    Azure Classic pulumi/pulumi-azure
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the azurerm Terraform Provider.
    azure logo

    We recommend using Azure Native.

    Azure Classic v5.72.0 published on Monday, Apr 15, 2024 by Pulumi