Get-​Azure​Rm​Recovery​Services​Asr​Protectable​Item

Get the protectable items in an ASR protection container.

Syntax

Get-AzureRmRecoveryServicesAsrProtectableItem
   -FriendlyName <String>
   -ProtectionContainer <ASRProtectionContainer>
   [<CommonParameters>]
Get-AzureRmRecoveryServicesAsrProtectableItem
   -Name <String>
   -ProtectionContainer <ASRProtectionContainer>
   [<CommonParameters>]

Description

The Get-AzureRmRecoveryServicesAsrProtectableItem cmdlet gets the protectable items in an Azure Site Recovery Protection Container.

Examples

Example 1

PS C:\> $ProtectableItems = Get-AzureRmRecoveryServicesAsrProtectableItem -ProtectionContainer $Container

Gets all the protectable items in specified ASR protection container.

Required Parameters

-FriendlyName

Specifies the friendly name of the ASR protectable item.

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

Specifies the name of the ASR protectable item.

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

Specifies the Azure Site Recovery 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.ASRProtectableItem, Microsoft.Azure.Commands.RecoveryServices.SiteRecovery, Version=4.0.0.0, Culture=neutral, PublicKeyToken=null]]