Get-AzRecoveryServicesAsrProtectableItem
Get the protectable items in an ASR protection container.
Syntax
ByObject (Default)
Get-AzRecoveryServicesAsrProtectableItem
-ProtectionContainer <ASRProtectionContainer>
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
ByObjectWithName
Get-AzRecoveryServicesAsrProtectableItem
-Name <String>
-ProtectionContainer <ASRProtectionContainer>
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
ByObjectWithFriendlyName
Get-AzRecoveryServicesAsrProtectableItem
-FriendlyName <String>
-ProtectionContainer <ASRProtectionContainer>
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
ByObjectWithSiteIdAndFriendlyName
Get-AzRecoveryServicesAsrProtectableItem
-FriendlyName <String>
-SiteId <String>
-ProtectionContainer <ASRProtectionContainer>
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
ByObjectWithSiteId
Get-AzRecoveryServicesAsrProtectableItem
-SiteId <String>
-ProtectionContainer <ASRProtectionContainer>
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Description
The Get-AzRecoveryServicesAsrProtectableItem cmdlet gets the protectable items in an Azure Site Recovery Protection Container.
Examples
Example 1
$ProtectableItems = Get-AzRecoveryServicesAsrProtectableItem -ProtectionContainer $Container
Gets all the protectable items in specified ASR protection container.
Example 2
Get-AzRecoveryServicesAsrProtectableItem -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
Get-AzRecoveryServicesAsrProtectableItem -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.
Parameters
-DefaultProfile
The credentials, account, tenant, and subscription used for communication with Azure.
Parameter properties
Type: IAzureContextContainer
Default value: None
Supports wildcards: False
DontShow: False
Aliases: AzContext, AzureRmContext, AzureCredential
Parameter sets
(All)
Position: Named
Mandatory: False
Value from pipeline: False
Value from pipeline by property name: False
Value from remaining arguments: False
-FriendlyName
Specifies the friendly name of the ASR protectable item.
Parameter properties
Type: String
Default value: None
Supports wildcards: False
DontShow: False
Parameter sets
ByObjectWithFriendlyName
Position: Named
Mandatory: True
Value from pipeline: False
Value from pipeline by property name: False
Value from remaining arguments: False
ByObjectWithSiteIdAndFriendlyName
Position: Named
Mandatory: True
Value from pipeline: False
Value from pipeline by property name: False
Value from remaining arguments: False
-Name
Specifies the name of the ASR protectable item.
Parameter properties
Type: String
Default value: None
Supports wildcards: False
DontShow: False
Parameter sets
ByObjectWithName
Position: Named
Mandatory: True
Value from pipeline: False
Value from pipeline by property name: False
Value from remaining arguments: False
-ProtectionContainer
Specifies the Azure Site Recovery Protection Container object.
Parameter properties
Parameter sets
(All)
Position: Named
Mandatory: True
Value from pipeline: True
Value from pipeline by property name: False
Value from remaining arguments: False
-SiteId
Specifies the VMware site Id where the protectable item was discovered (Applicable only for VMware to Azure replication scenario).
Use site Id from fabric specific details in the ASR fabric to specify one.
Parameter properties
Type: String
Default value: None
Supports wildcards: False
DontShow: False
Parameter sets
ByObjectWithSiteIdAndFriendlyName
Position: Named
Mandatory: True
Value from pipeline: False
Value from pipeline by property name: False
Value from remaining arguments: False
ByObjectWithSiteId
Position: Named
Mandatory: True
Value from pipeline: False
Value from pipeline by property name: False
Value from remaining arguments: False
CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable,
-InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable,
-ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see
about_CommonParameters .
Outputs