New-​Azure​Rm​Site​Recovery​Protection​Container​Mapping

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>
   -RecoveryProtectionContainer <ASRProtectionContainer>
   [<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:ASRPolicy
Position:Named
Default value:None
Accept pipeline input:True (ByValue)
Accept wildcard characters:False
-PrimaryProtectionContainer

Specifies the primary Protection Container object.

Type:ASRProtectionContainer
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-RecoveryProtectionContainer

Specifies the Recovery Protection Container object.

Type:ASRProtectionContainer
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

Outputs

Microsoft.Azure.Commands.SiteRecovery.ASRJob