Megosztás a következőn keresztül:


Get-AzRecoveryServicesAsrProtectableItem

Szerezze be a védhető elemeket egy ASR védelmi tárolóban.

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

A Get-AzRecoveryServicesAsrProtectableItem parancsmag lekéri a védhető elemeket egy Azure Site Recovery Protection-tárolóban.

Példák

1. példa

$ProtectableItems = Get-AzRecoveryServicesAsrProtectableItem -ProtectionContainer $Container

Lekéri az összes védhető elemet a megadott ASR védelmi tárolóban.

2. példa

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}

Kérje le a védhető elemeket a megadott ASR védelmi tárolóban, és adja meg a rövid nevet.

3. példa

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}

Lekéri az összes védhető elemet a megadott ASR védelmi tárolóban.

Paraméterek

-DefaultProfile

Az Azure-ral való kommunikációhoz használt hitelesítő adatok, fiók, bérlő és előfizetés.

Típus:IAzureContextContainer
Aliases:AzContext, AzureRmContext, AzureCredential
Position:Named
alapértelmezett érték:None
Kötelező:False
Accept pipeline input:False
Accept wildcard characters:False

-FriendlyName

Megadja az ASR által védhető elem rövid nevét.

Típus:String
Position:Named
alapértelmezett érték:None
Kötelező:True
Accept pipeline input:False
Accept wildcard characters:False

-Name

Megadja az ASR által védhető elem nevét.

Típus:String
Position:Named
alapértelmezett érték:None
Kötelező:True
Accept pipeline input:False
Accept wildcard characters:False

-ProtectionContainer

Megadja az Azure Site Recovery Protection container objektumot.

Típus:ASRProtectionContainer
Position:Named
alapértelmezett érték:None
Kötelező:True
Accept pipeline input:True
Accept wildcard characters:False

-SiteId

Megadja azt a VMware-helyazonosítót, ahol a védhető elem felderítve lett (csak A VMware-hez az Azure-beli replikációs forgatókönyvhöz alkalmazható). Az ASR-hálóban a hálóra vonatkozó részletekből származó helyazonosítóval adjon meg egyet.

Típus:String
Position:Named
alapértelmezett érték:None
Kötelező:True
Accept pipeline input:False
Accept wildcard characters:False

Bevitelek

ASRProtectionContainer

Kimenetek

ASRProtectableItem