다음을 통해 공유


Start-AzureSiteRecoveryProtectionProfileDissociationJob

Site Recovery 보호 컨테이너와 연결된 복제 정책에서 분리 작업을 시작합니다.

참고

이 설명서에서 참조하는 cmdlet은 Service Management API를 사용하는 레거시 Azure 리소스를 관리하기 위한 것입니다. Azure Resource Manager 리소스를 관리하는 cmdlet은 Az PowerShell 모듈을 참조하세요.

Syntax

Start-AzureSiteRecoveryProtectionProfileDissociationJob
     -ProtectionProfile <ASRProtectionProfile>
     -PrimaryProtectionContainer <ASRProtectionContainer>
     [-Profile <AzureSMProfile>]
     [<CommonParameters>]
Start-AzureSiteRecoveryProtectionProfileDissociationJob
     -ProtectionProfile <ASRProtectionProfile>
     -PrimaryProtectionContainer <ASRProtectionContainer>
     -RecoveryProtectionContainer <ASRProtectionContainer>
     [-Profile <AzureSMProfile>]
     [<CommonParameters>]

Description

Start-AzureSiteRecoveryProtectionProfileDissociationJob cmdlet은 Azure Site Recovery 보호 컨테이너와 연결된 복제 정책에서 분리 작업을 시작합니다.

예제

예제 1: 보호 프로필 분리

PS C:\> $ProtectionContainer01 = Get-AzureSiteRecoveryProtectionContainer -Id "5ba2ea95-856d-4033-9ca3-91e3e2c080b9"
PS C:\> $ProtectionContainer02 = Get-AzureSiteRecoveryProtectionContainer -Id "cf011f2a-aa19-443c-9f60-357f6b8afb77"
PS C:\> Start-AzureSiteRecoveryProtectionProfileDissociationJob -PrimaryProtectionContainer $ProtectionContainer01 -ProtectionProfile $ProtectionContainer01.AvailableProtectionProfiles[0] -RecoveryProtectionContainer $ProtectionContainer02
Name             : MyProtectionProfile
ID               : 51978b0f-9241-4153-9171-2e19344f0805
ClientRequestId  : bb6f3200-b7c6-4c6f-bcbc-a70bb9946f03-2015-01-30 02:55:55Z-P
State            : NotStarted
StateDescription : NotStarted
StartTime        : 
EndTime          : 
AllowedActions   : 
Tasks            : {}
Errors           : {}

첫 번째 명령은 Get-AzureSiteRecoveryProtectionContainer cmdlet을 사용하여 보호 컨테이너를 가져오고 해당 컨테이너를 $ProtectionContainer 01 변수에 저장합니다.

두 번째 명령은 보호 컨테이너를 가져오고 $ProtectionContainer 02 변수에 저장합니다.

최종 명령은 $ProtectionContainer 01에 저장된 컨테이너에서 보호 프로필을 기본 보호 컨테이너로 분리합니다. 이 명령은 $ProtectionContainer 02에 저장된 컨테이너를 복구 보호 컨테이너로 분리합니다.

매개 변수

-PrimaryProtectionContainer

기본 보호 컨테이너를 지정합니다.

Type:ASRProtectionContainer
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

-ProtectionProfile

보호 컨테이너에서 분리할 보호 프로필 설정을 지정합니다. 보호 컨테이너에 적용할 보호 프로필 설정을 지정합니다. ASRProtectionProfile 개체를 가져오려면 New-AzureSiteRecoveryProtectionProfileObject cmdlet을 사용합니다.

Type:ASRProtectionProfile
Position:Named
Default value:None
Required:True
Accept pipeline input:True
Accept wildcard characters:False

-RecoveryProtectionContainer

복구 보호 컨테이너를 지정합니다.

Type:ASRProtectionContainer
Position:Named
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False