Get-AzureSiteRecoveryProtectionEntity
Site Recovery 자격 증명 모음에서 보호 가능한 엔터티 또는 보호된 엔터티를 가져옵니다.
참고
이 설명서에서 참조하는 cmdlet은 Service Management API를 사용하는 레거시 Azure 리소스를 관리하기 위한 것입니다. Azure Resource Manager 리소스를 관리하는 cmdlet은 Az PowerShell 모듈을 참조하세요.
Syntax
Get-AzureSiteRecoveryProtectionEntity
-ProtectionContainer <ASRProtectionContainer>
[-Profile <AzureSMProfile>]
[<CommonParameters>]
Get-AzureSiteRecoveryProtectionEntity
-Id <String>
-ProtectionContainer <ASRProtectionContainer>
[-Profile <AzureSMProfile>]
[<CommonParameters>]
Get-AzureSiteRecoveryProtectionEntity
-Id <String>
-ProtectionContainerId <String>
[-Profile <AzureSMProfile>]
[<CommonParameters>]
Get-AzureSiteRecoveryProtectionEntity
-Name <String>
-ProtectionContainer <ASRProtectionContainer>
[-Profile <AzureSMProfile>]
[<CommonParameters>]
Get-AzureSiteRecoveryProtectionEntity
-Name <String>
-ProtectionContainerId <String>
[-Profile <AzureSMProfile>]
[<CommonParameters>]
Get-AzureSiteRecoveryProtectionEntity
-ProtectionContainerId <String>
[-Profile <AzureSMProfile>]
[<CommonParameters>]
Description
Get-AzureSiteRecoveryProtectionEntity cmdlet은 현재 Azure Site Recovery 자격 증명 모음에서 가상 머신과 같은 보호 가능한 또는 보호된 엔터티를 가져옵니다.
예제
예제 1: 컨테이너에 보호된 가상 머신 표시
PS C:\> $Container = Get-AzureSiteRecoveryProtectionContainer
PS C:\> Get-AzureSiteRecoveryProtectionEntity -ProtectionContainer $Container
ID : 43aaab46-1cb0-4c39-8077-9a091c3b05ce
ServerId : 4a94c4a9-c856-4577-afbd-367fe9b3ce9c
ProtectionContainerId : 4a94c4a9-c856-4577-afbd-367fe9b3ce9c_1c513d45-645d-4ed0-b9ae-e7b869a1f7fc
Name : testvm
Type : VirtualMachine
FabricObjectId : 506B3CAC-5758-49E2-98C4-E5B0512E4D8E
Protected : False
CanCommit : False
CanFailover : False
CanReverseReplicate : False
ActiveLocation : Primary
ProtectionStateDescription : Enabling protection
ReplicationHealth :
TestFailoverStateDescription : Nonev
ReplicationProvider : HyperVReplica
첫 번째 명령은 Get-AzureSiteRecoveryProtectionContainer cmdlet을 사용하여 보호된 컨테이너를 가져오고 해당 개체를 $Container 변수에 저장합니다.
두 번째 명령은 $Container 컨테이너에 속하는 보호된 가상 머신을 가져온 다음 표시합니다.
매개 변수
-Id
가져올 보호 엔터티의 ID를 지정합니다.
Type: | String |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Name
가져올 보호 엔터티의 이름을 지정합니다.
Type: | String |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Profile
이 cmdlet이 읽는 Azure 프로필을 지정합니다. 프로필을 지정하지 않으면 이 cmdlet은 로컬 기본 프로필에서 읽습니다.
Type: | AzureSMProfile |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-ProtectionContainer
보호 컨테이너를 지정합니다.
Type: | ASRProtectionContainer |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-ProtectionContainerId
보호된 컨테이너의 ID를 지정합니다.
Type: | String |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |