< Back

Get-AzureRmRecoveryServicesAsrProtectableItem

Tue Jan 29, 2019 10:01 pm

NAME Get-AzureRmRecoveryServicesAsrProtectableItem



SYNOPSIS

Get the protectable items in an ASR protection container.





SYNTAX

Get-AzureRmRecoveryServicesAsrProtectableItem [-DefaultProfile <IAzureContextContainer>] -FriendlyName <String> -ProtectionContainer

<ASRProtectionContainer> [<CommonParameters>]



Get-AzureRmRecoveryServicesAsrProtectableItem [-DefaultProfile <IAzureContextContainer>] -Name <String> -ProtectionContainer

<ASRProtectionContainer> [<CommonParameters>]





DESCRIPTION

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





PARAMETERS

-DefaultProfile <IAzureContextContainer>

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



Required? false

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-FriendlyName <String>

Specifies the friendly name of the ASR protectable item.



Required? true

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-Name <String>

Specifies the name of the ASR protectable item.



Required? true

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-ProtectionContainer <ASRProtectionContainer>

Specifies the Azure Site Recovery Protection Container object.



Required? true

Position? named

Default value None

Accept pipeline input? True (ByValue)

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).



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]]







NOTES









Example 1



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



Gets all the protectable items in specified ASR protection container.





Example 2



PS C:\\> Get-ASRProtectableItem -ProtectionContainer $pc -FriendlyName $piFriendlyName



Disks : {}

FabricObjectId :

FabricSpecificVMDetails : Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRVMWareSpecificVMDetails

FriendlyName : V2A-W2K12-400

ID : /Subscriptions/xxxxxxxxxxxx/resourceGroups/canaryexproute/providers/Microsoft.RecoveryServices/vaults/IbizaV2ATest/

replicationFabrics/d011a5abf48190235963ee3a88ad188ee6bca8a4c6cd0c8d7ce5d439aa77ffd9/replicationProt



ectionContainers/cloud_5dc96260-9f00-42e4-aca7-24ad27fc2078/replicationProtectableItems/22d47502-7df0-11e7-9373-0050568f2e8f

Name : 22d47502-7df0-11e7-9373-0050568f2e8f

OS : WINDOWS

OSDiskId :

OSDiskName :

ProtectionContainerId : cloud_5dc96260-9f00-42e4-aca7-24ad27fc2078

ProtectionReadinessErrors :

ProtectionStatus : Unprotected

ReplicationProtectedItemId :

SupportedReplicationProviders : {InMage, InMageAzureV2}



Get the protectable items in specified ASR protection container and with given friendly name.





Example 3



PS C:\\> Get-ASRProtectableItem -ProtectionContainer $pc -Name $piName



Disks : {}

FabricObjectId :

FabricSpecificVMDetails : Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRVMWareSpecificVMDetails

FriendlyName : V2A-W2K12-400

ID : /Subscriptions/xxxxxxxxxxxx/resourceGroups/canaryexproute/providers/Microsoft.RecoveryServices/vaults/IbizaV2ATest/

replicationFabrics/d011a5abf48190235963ee3a88ad188ee6bca8a4c6cd0c8d7ce5d439aa77ffd9/replicationProt



ectionContainers/cloud_5dc96260-9f00-42e4-aca7-24ad27fc2078/replicationProtectableItems/22d47502-7df0-11e7-9373-0050568f2e8f

Name : 22d47502-7df0-11e7-9373-0050568f2e8f

OS : WINDOWS

OSDiskId :

OSDiskName :

ProtectionContainerId : cloud_5dc96260-9f00-42e4-aca7-24ad27fc2078

ProtectionReadinessErrors :

ProtectionStatus : Unprotected

ReplicationProtectedItemId :

SupportedReplicationProviders : {InMage, InMageAzureV2}



Gets all the protectable items in specified ASR protection container.







RELATED LINKS

Online Version:

https://docs.microsoft.com/en-us/powers ... ctableitem

Get-AzureRmRecoveryServicesAsrProtectionEntity

Set-AzureRmRecoveryServicesAsrProtectionEntity