New-AzureRmSiteRecoveryProtectionContainerMapping

Creates an Azure Site Recovery Protection Container mapping by associating a policy to a Protection Container.

Syntax

New-AzureRmSiteRecoveryProtectionContainerMapping
   -Name <String>
   -Policy <ASRPolicy>
   -PrimaryProtectionContainer <ASRProtectionContainer>
   [-DefaultProfile <IAzureContextContainer>]
   [<CommonParameters>]
New-AzureRmSiteRecoveryProtectionContainerMapping
   -Name <String>
   -Policy <ASRPolicy>
   -PrimaryProtectionContainer <ASRProtectionContainer>
   -RecoveryProtectionContainer <ASRProtectionContainer>
   [-DefaultProfile <IAzureContextContainer>]
   [<CommonParameters>]

Description

The New-AzureRmSiteRecoveryProtectionContainerMapping cmdlet creates an Azure Site Recovery Protection Container mapping by associating a policy to a Protection Container.

Required Parameters

-Name

Specifies the name of the Protection Container mapping.

Type:String
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-Policy

Specifies the Azure Site Recovery Policy object.

Type:Microsoft.Azure.Commands.SiteRecovery.ASRPolicy
Position:Named
Default value:None
Accept pipeline input:True (ByValue)
Accept wildcard characters:False
-PrimaryProtectionContainer

Specifies the primary Protection Container object.

Type:Microsoft.Azure.Commands.SiteRecovery.ASRProtectionContainer
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-RecoveryProtectionContainer

Specifies the Recovery Protection Container object.

Type:Microsoft.Azure.Commands.SiteRecovery.ASRProtectionContainer
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

Optional Parameters

-DefaultProfile

The credentials, account, tenant, and subscription used for communication with azure.

Type:Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContextContainer
Aliases:AzureRmContext, AzureCredential
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

Inputs

ASRPolicy

Parameter 'Policy' accepts value of type 'ASRPolicy' from the pipeline

Outputs

Microsoft.Azure.Commands.SiteRecovery.ASRJob