다음을 통해 공유


Start-AzureSiteRecoveryProtectionProfileAssociationJob

Site Recovery 복제 정책 연결 작업을 시작합니다.

참고

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

Syntax

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

Description

Start-AzureSiteRecoveryProtectionProfileAssociationJob cmdlet은 복제 정책을 Azure Site Recovery 보호 컨테이너와 연결하는 연결 작업을 시작합니다.

예제

예제 1: 보호 프로필 연결

PS C:\> $ProtectionContainer01 = Get-AzureSiteRecoveryProtectionContainer -Id "5ba2ea95-856d-4033-9ca3-91e3e2c080b9"
PS C:\> $ProtectionProfile = New-AzureSiteRecoveryProtectionProfileObject -ReplicationProvider "HyperVReplica" -AllowReplicaDeletion -ApplicationConsistentSnapshotFrequencyInHours 1 -CompressionEnabled -RecoveryPoints 2 -ReplicationFrequencyInSeconds 30 -ReplicationMethod "Online" -ReplicationPort 8085 -ReplicationStartTime 1
PS C:\> $ProtectionContainer02 = Get-AzureSiteRecoveryProtectionContainer -Id "cf011f2a-aa19-443c-9f60-357f6b8afb77"
PS C:\> Start-AzureSiteRecoveryProtectionProfileAssociationJob -PrimaryProtectionContainer $ProtectionContainer01 -ProtectionProfile $ProtectionProfile -RecoveryProtectionContainer $ProtectionContainer02
Name             : MyProtectionProfile
ID               : 51978b0f-9241-4153-9171-2e19344f0805
ClientRequestId  : bb6f3200-b7c6-4c6f-bcbc-a70bb9946f03-2015-01-27 22:55:55Z-P
State            : InProgress
StateDescription : InProgress
StartTime        : 1/27/2015 10:56:01 PM
EndTime          : 
AllowedActions   : 
Tasks            : {Adding the protection group, Configuring Windows Server 2012 R2 Hyper-V hosts for Azure}
Errors           : {}

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

두 번째 명령은 New-AzureSiteRecoveryProtectionProfileObject cmdlet을 사용하여 보호 프로필을 만들고 해당 보호 프로필을 $ProtectionProfile 변수에 저장합니다.

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

최종 명령은 $ProtectionProfile 저장된 보호 프로필을 기본 보호 컨테이너로 $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