Start-AzureSiteRecoveryProtectionProfileAssociationJob
Startet einen Zuordnungsauftrag für die SiteWiederherstellungs-Replikationsrichtlinie.
Hinweis
Die Cmdlets, auf die in dieser Dokumentation verwiesen wird, dienen zum Verwalten von Azure-Legacyressourcen, die Azure Dienst-Manager (ASM) APIs verwenden. Dieses ältere PowerShell-Modul wird beim Erstellen neuer Ressourcen nicht empfohlen, da ASM für den Ruhestand geplant ist. Weitere Informationen finden Sie unter Einstellung des Azure Service Manager.
Das Az PowerShell-Modul ist das empfohlene PowerShell-Modul zum Verwalten von Azure Resource Manager (ARM)-Ressourcen mit PowerShell.
Syntax
Start-AzureSiteRecoveryProtectionProfileAssociationJob
-ProtectionProfile <ASRProtectionProfile>
-PrimaryProtectionContainer <ASRProtectionContainer>
[-Profile <AzureSMProfile>]
[<CommonParameters>]
Start-AzureSiteRecoveryProtectionProfileAssociationJob
-ProtectionProfile <ASRProtectionProfile>
-PrimaryProtectionContainer <ASRProtectionContainer>
-RecoveryProtectionContainer <ASRProtectionContainer>
[-Profile <AzureSMProfile>]
[<CommonParameters>]
Beschreibung
Das Cmdlet Start-AzureSiteRecoveryProtectionProfileAssociationJob initiiert einen Zuordnungsauftrag, um eine Replikationsrichtlinie einem Azure Site Recovery-Schutzcontainer zuzuordnen.
Beispiele
Beispiel 1: Zuordnen eines Schutzprofils
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 : {}
Der erste Befehl ruft einen Schutzcontainer mithilfe des Cmdlets "Get-AzureSiteRecoveryProtectionContainer " ab und speichert diesen Container dann in der Variablen $ProtectionContainer 01.
Der zweite Befehl erstellt ein Schutzprofil mithilfe des Cmdlets New-AzureSiteRecoveryProtectionProfileObject und speichert dieses Schutzprofil in der $ProtectionProfile Variablen.
Der dritte Befehl ruft einen Schutzcontainer ab und speichert ihn dann in der Variablen $ProtectionContainer 02.
Der letzte Befehl ordnet das in $ProtectionProfile gespeicherte Schutzprofil dem in $ProtectionContainer 01 gespeicherten Container als primären Schutzcontainer zu. Der Befehl ordnet den in $ProtectionContainer 02 gespeicherten Container als Wiederherstellungsschutzcontainer zu.
Parameter
-PrimaryProtectionContainer
Gibt den primären Schutzcontainer an, auf den die Schutzprofileinstellungen angewendet werden sollen.
Typ: | ASRProtectionContainer |
Position: | Named |
Standardwert: | None |
Erforderlich: | True |
Pipelineeingabe akzeptieren: | False |
Platzhalterzeichen akzeptieren: | False |
-Profile
Gibt das Azure-Profil an, aus dem dieses Cmdlet liest. Wenn Sie kein Profil angeben, liest dieses Cmdlet aus dem lokalen Standardprofil.
Typ: | AzureSMProfile |
Position: | Named |
Standardwert: | None |
Erforderlich: | False |
Pipelineeingabe akzeptieren: | False |
Platzhalterzeichen akzeptieren: | False |
-ProtectionProfile
Gibt die Schutzprofileinstellungen an, die auf die Schutzcontainer angewendet werden sollen. Verwenden Sie das Cmdlet New-AzureSiteRecoveryProtectionProfileObject, um ein ASRProtectionProfile-Objekt abzurufen.
Typ: | ASRProtectionProfile |
Position: | Named |
Standardwert: | None |
Erforderlich: | True |
Pipelineeingabe akzeptieren: | True |
Platzhalterzeichen akzeptieren: | False |
-RecoveryProtectionContainer
Gibt den Wiederherstellungsschutzcontainer an, auf den die Schutzprofileinstellungen angewendet werden sollen.
Typ: | ASRProtectionContainer |
Position: | Named |
Standardwert: | None |
Erforderlich: | True |
Pipelineeingabe akzeptieren: | False |
Platzhalterzeichen akzeptieren: | False |