Delen via


Start-AzureSiteRecoveryProtectionProfileAssociationJob

Hiermee start u een site Recovery-koppelingstaak voor replicatiebeleid.

Notitie

De cmdlets waarnaar in deze documentatie wordt verwezen, zijn bedoeld voor het beheren van verouderde Azure-resources die gebruikmaken van Service Management-API's. Zie de Az PowerShell-module voor cmdlets voor het beheren van Azure Resource Manager-resources.

Syntax

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

Description

De cmdlet Start-AzureSiteRecoveryProtectionProfileAssociationJob initieert een koppelingstaak om een replicatiebeleid te koppelen aan een Azure Site Recovery-beveiligingscontainer.

Voorbeelden

Voorbeeld 1: Een beveiligingsprofiel koppelen

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           : {}

De eerste opdracht haalt een beveiligingscontainer op met behulp van de cmdlet Get-AzureSiteRecoveryProtectionContainer en slaat die container vervolgens op in de variabele $ProtectionContainer 01.

Met de tweede opdracht maakt u een beveiligingsprofiel met behulp van de cmdlet New-AzureSiteRecoveryProtectionProfileObject en slaat u dat beveiligingsprofiel op in de variabele $ProtectionProfile.

Met de derde opdracht wordt een beveiligingscontainer opgeslagen en vervolgens opgeslagen in de variabele $ProtectionContainer 02.

De laatste opdracht koppelt het beveiligingsprofiel dat is opgeslagen in $ProtectionProfile aan de container die is opgeslagen in $ProtectionContainer 01 als de primaire beveiligingscontainer. De opdracht koppelt de container die is opgeslagen in $ProtectionContainer 02 als de herstelbeveiligingscontainer.

Parameters

-PrimaryProtectionContainer

Hiermee geeft u de primaire beveiligingscontainer op waarop de beveiligingsprofielinstellingen moeten worden toegepast.

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

-Profile

Hiermee geeft u het Azure-profiel op waaruit deze cmdlet wordt gelezen. Als u geen profiel opgeeft, leest deze cmdlet uit het lokale standaardprofiel.

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

-ProtectionProfile

Hiermee geeft u de beveiligingsprofielinstellingen op die moeten worden toegepast op de beveiligingscontainers. Als u een ASRProtectionProfile-object wilt verkrijgen, gebruikt u de cmdlet New-AzureSiteRecoveryProtectionProfileObject.

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

-RecoveryProtectionContainer

Hiermee geeft u de herstelbeveiligingscontainer op waarop de beveiligingsprofielinstellingen moeten worden toegepast.

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