Get-AzRecoveryServicesAsrProtectableItem
Hämta de skyddsbara objekten i en ASR-skyddscontainer.
Syntax
Get-AzRecoveryServicesAsrProtectableItem
-ProtectionContainer <ASRProtectionContainer>
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Get-AzRecoveryServicesAsrProtectableItem
-Name <String>
-ProtectionContainer <ASRProtectionContainer>
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Get-AzRecoveryServicesAsrProtectableItem
-FriendlyName <String>
-ProtectionContainer <ASRProtectionContainer>
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Get-AzRecoveryServicesAsrProtectableItem
-FriendlyName <String>
-SiteId <String>
-ProtectionContainer <ASRProtectionContainer>
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Get-AzRecoveryServicesAsrProtectableItem
-SiteId <String>
-ProtectionContainer <ASRProtectionContainer>
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Description
Cmdleten Get-AzRecoveryServicesAsrProtectableItem hämtar de skyddsbara objekten i en Azure Site Recovery Protection-container.
Exempel
Exempel 1
$ProtectableItems = Get-AzRecoveryServicesAsrProtectableItem -ProtectionContainer $Container
Hämtar alla skyddsbara objekt i den angivna ASR-skyddscontainern.
Exempel 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}
Hämta de skyddsbara objekten i den angivna ASR-skyddscontainern och med ett eget namn.
Exempel 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}
Hämtar alla skyddsbara objekt i den angivna ASR-skyddscontainern.
Parametrar
-DefaultProfile
Autentiseringsuppgifter, konto, klientorganisation och prenumeration som används för kommunikation med Azure.
Typ: | IAzureContextContainer |
Alias: | AzContext, AzureRmContext, AzureCredential |
Position: | Named |
Standardvärde: | None |
Obligatorisk: | False |
Godkänn pipeline-indata: | False |
Godkänn jokertecken: | False |
-FriendlyName
Anger det egna namnet på det ASR-skyddsbara objektet.
Typ: | String |
Position: | Named |
Standardvärde: | None |
Obligatorisk: | True |
Godkänn pipeline-indata: | False |
Godkänn jokertecken: | False |
-Name
Anger namnet på det ASR-skyddsbara objektet.
Typ: | String |
Position: | Named |
Standardvärde: | None |
Obligatorisk: | True |
Godkänn pipeline-indata: | False |
Godkänn jokertecken: | False |
-ProtectionContainer
Anger containerobjektet Azure Site Recovery Protection.
Typ: | ASRProtectionContainer |
Position: | Named |
Standardvärde: | None |
Obligatorisk: | True |
Godkänn pipeline-indata: | True |
Godkänn jokertecken: | False |
-SiteId
Anger det VMware-plats-ID där det skyddade objektet identifierades (gäller endast för replikeringsscenariot VMware till Azure). Använd plats-ID från infrastrukturresursspecifik information i ASR-infrastrukturresurserna för att ange ett.
Typ: | String |
Position: | Named |
Standardvärde: | None |
Obligatorisk: | True |
Godkänn pipeline-indata: | False |
Godkänn jokertecken: | False |
Indata
Utdata
Relaterade länkar
Azure PowerShell