Get-​Azure​Rm​Recovery​Services​Asr​Protection​Container​Mapping

Gets Azure Site Recovery Protection Container mappings.

Syntax

Get-AzureRmRecoveryServicesAsrProtectionContainerMapping
   -Name <String>
   -ProtectionContainer <ASRProtectionContainer>
   [<CommonParameters>]

Description

The Get-AzureRmRecoveryServicesAsrProtectionContainerMapping cmdlet gets information about the protection container to replication policy mappings(association) in the vault for the specified ASR protection container.

Examples

Example 1

PS C:\> $ProtectionContainerMappings = Get-AzureRmRecoveryServicesAsrProtectionContainerMapping -ProtectionContainer $Container

Gets all protection container mappings for the specified protection container.

Required Parameters

-Name

Specifies the name of the protection container mapping to get.

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

Get protection container mappings corresponding to the the specified ASR protection container object.

Type:ASRProtectionContainer
Position:Named
Default value:None
Accept pipeline input:True (ByValue)
Accept wildcard characters:False

Inputs

Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRProtectionContainer

Outputs

System.Collections.Generic.IEnumerable`1[[Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRProtectionContainerMapping, Microsoft.Azure.Commands.RecoveryServices.SiteRecovery, Version=4.0.0.0, Culture=neutral, PublicKeyToken=null]]