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

Gets ASR protection containers in the Recovery Services vault.

Syntax

Get-AzureRmRecoveryServicesAsrProtectionContainer
   -Fabric <ASRFabric>
   -FriendlyName <String>
   [<CommonParameters>]
Get-AzureRmRecoveryServicesAsrProtectionContainer
   -Fabric <ASRFabric>
   -Name <String>
   [<CommonParameters>]

Description

The Get-AzureRmRecoveryServicesAsrProtectionContainer cmdlet gets Azure Site Recovery protection containers in the Recovery Services vault. A protection container is a logical container for protectable(discovered) and protected objects such as virtual machines. Replication policies define replication settings for protected items and can be associated with a protection container and applied to a protectable item.

Examples

Example 1

PS C:\> $ProtectionContainers = Get-AzureRmRecoveryServicesAsrFabric | Get-AzureRmRecoveryServicesAsrProtectionContainer

Gets all the ASR protection containers in the specified ASR fabric (the pipeline input in the above example.)

Required Parameters

-Fabric

Look for the protection container in the specified ASR fabric.

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

Specifies the friendly name of the ASR protection container to look for.

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

Specifies the name of the ASR protection container to look for.

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

Inputs

Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRFabric

Outputs

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