Start-AzureSiteRecoveryProtectionProfileDissociationJob
Hiermee start u een dissociatietaak voor een replicatiebeleid dat is gekoppeld aan een Site Recovery-beveiligingscontainer.
Notitie
De cmdlets waarnaar in deze documentatie wordt verwezen, zijn bedoeld voor het beheren van verouderde Azure-resources die gebruikmaken van ASM-API's (Azure Service Manager). Deze verouderde PowerShell-module wordt niet aanbevolen bij het maken van nieuwe resources, omdat ASM is gepland voor buitengebruikstelling. Zie Buitengebruikstelling van Azure Service Manager voor meer informatie.
De Az PowerShell-module is de aanbevolen PowerShell-module voor het beheren van ARM-resources (Azure Resource Manager) met PowerShell.
Syntaxis
Start-AzureSiteRecoveryProtectionProfileDissociationJob
-ProtectionProfile <ASRProtectionProfile>
-PrimaryProtectionContainer <ASRProtectionContainer>
[-Profile <AzureSMProfile>]
[<CommonParameters>]
Start-AzureSiteRecoveryProtectionProfileDissociationJob
-ProtectionProfile <ASRProtectionProfile>
-PrimaryProtectionContainer <ASRProtectionContainer>
-RecoveryProtectionContainer <ASRProtectionContainer>
[-Profile <AzureSMProfile>]
[<CommonParameters>]
Description
De cmdlet Start-AzureSiteRecoveryProtectionProfileDissociationJob initieert een dissociatietaak op het replicatiebeleid dat is gekoppeld aan een Azure Site Recovery-beveiligingscontainer.
Voorbeelden
Voorbeeld 1: Een beveiligingsprofiel loskoppelen
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 : {}
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 wordt een beveiligingscontainer opgeslagen en vervolgens opgeslagen in de variabele $ProtectionContainer 02.
Met de laatste opdracht wordt het beveiligingsprofiel losgekoppeld van de container die is opgeslagen in $ProtectionContainer 01 als de primaire beveiligingscontainer. De opdracht ontkoppelt de container die is opgeslagen in $ProtectionContainer 02 als de herstelbeveiligingscontainer.
Parameters
-PrimaryProtectionContainer
Hiermee geeft u een primaire beveiligingscontainer op.
Type: | ASRProtectionContainer |
Position: | Named |
Default value: | None |
Vereist: | True |
Pijplijninvoer accepteren: | False |
Jokertekens accepteren: | 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 |
Vereist: | False |
Pijplijninvoer accepteren: | False |
Jokertekens accepteren: | False |
-ProtectionProfile
Hiermee geeft u de beveiligingsprofielinstellingen op die moeten worden ontkoppeld van de beveiligingscontainers. 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 |
Vereist: | True |
Pijplijninvoer accepteren: | True |
Jokertekens accepteren: | False |
-RecoveryProtectionContainer
Hiermee geeft u een herstelbeveiligingscontainer op.
Type: | ASRProtectionContainer |
Position: | Named |
Default value: | None |
Vereist: | True |
Pijplijninvoer accepteren: | False |
Jokertekens accepteren: | False |