Start-AzRecoveryServicesAsrTestFailoverJob
Start een testfailoverbewerking.
Syntax
Start-AzRecoveryServicesAsrTestFailoverJob
-ReplicationProtectedItem <ASRReplicationProtectedItem>
-Direction <String>
[-CloudServiceCreationOption <String>]
[-DataEncryptionPrimaryCertFile <String>]
[-DataEncryptionSecondaryCertFile <String>]
[-RecoveryPoint <ASRRecoveryPoint>]
[-DefaultProfile <IAzureContextContainer>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Start-AzRecoveryServicesAsrTestFailoverJob
-RecoveryPlan <ASRRecoveryPlan>
-Direction <String>
[-CloudServiceCreationOption <String>]
[-DataEncryptionPrimaryCertFile <String>]
[-DataEncryptionSecondaryCertFile <String>]
[-RecoveryTag <String>]
[-MultiVmSyncPoint <String>]
[-DefaultProfile <IAzureContextContainer>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Start-AzRecoveryServicesAsrTestFailoverJob
-RecoveryPlan <ASRRecoveryPlan>
-Direction <String>
-VMNetwork <ASRNetwork>
[-DataEncryptionPrimaryCertFile <String>]
[-DataEncryptionSecondaryCertFile <String>]
[-RecoveryTag <String>]
[-DefaultProfile <IAzureContextContainer>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Start-AzRecoveryServicesAsrTestFailoverJob
-RecoveryPlan <ASRRecoveryPlan>
-Direction <String>
-AzureVMNetworkId <String>
[-CloudServiceCreationOption <String>]
[-DataEncryptionPrimaryCertFile <String>]
[-DataEncryptionSecondaryCertFile <String>]
[-RecoveryTag <String>]
[-DefaultProfile <IAzureContextContainer>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Start-AzRecoveryServicesAsrTestFailoverJob
-ReplicationProtectedItem <ASRReplicationProtectedItem>
-Direction <String>
-VMNetwork <ASRNetwork>
[-DataEncryptionPrimaryCertFile <String>]
[-DataEncryptionSecondaryCertFile <String>]
[-RecoveryPoint <ASRRecoveryPoint>]
[-DefaultProfile <IAzureContextContainer>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Start-AzRecoveryServicesAsrTestFailoverJob
-ReplicationProtectedItem <ASRReplicationProtectedItem>
-Direction <String>
-AzureVMNetworkId <String>
[-CloudServiceCreationOption <String>]
[-DataEncryptionPrimaryCertFile <String>]
[-DataEncryptionSecondaryCertFile <String>]
[-RecoveryPoint <ASRRecoveryPoint>]
[-DefaultProfile <IAzureContextContainer>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Description
De cmdlet Start-AzRecoveryServicesAsrTestFailoverJob start een testfailover van een met Azure Site Recovery beveiligd item of herstelplan. U kunt controleren of de taak is geslaagd met behulp van de cmdlet Get-AzRecoveryServicesAsrJob.
Voorbeelden
Voorbeeld 1
$currentJob = Start-AzRecoveryServicesAsrTestFailoverJob -RecoveryPlan $RP -Direction PrimaryToRecovery -VMNetwork $TestRecoveryNetwork
Start de testfailoverbewerking voor het herstelplan met de opgegeven parameters en retourneert de ASR-taak die wordt gebruikt om de bewerking bij te houden.
Voorbeeld 2
Start een testfailoverbewerking. (automatisch gegenereerd)
Start-AzRecoveryServicesAsrTestFailoverJob -AzureVMNetworkId <String> -Direction PrimaryToRecovery -RecoveryPlan $RP
Parameters
-AzureVMNetworkId
Hiermee geeft u de netwerk-id van de Azure-VM op voor herstel-VM na een failover.
Type: | String |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-CloudServiceCreationOption
Hiermee geeft u op of er een nieuwe cloudservice moet worden gemaakt of dat de herstelcloudservice die is geconfigureerd voor de VIRTUELE machine moet worden gebruikt voor de testfailover.
Type: | String |
Accepted values: | UseRecoveryCloudService, AutoCreateCloudService |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Confirm
Hiermee wordt u gevraagd om bevestiging voordat u de cmdlet uitvoert.
Type: | SwitchParameter |
Aliases: | cf |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-DataEncryptionPrimaryCertFile
Hiermee geeft u het primaire certificaatbestand.
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-DataEncryptionSecondaryCertFile
Hiermee geeft u het secundaire certificaatbestand.
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-DefaultProfile
De referenties, accounts, tenants en abonnementen die worden gebruikt voor communicatie met Azure.
Type: | IAzureContextContainer |
Aliases: | AzContext, AzureRmContext, AzureCredential |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Direction
Hiermee geeft u de failoverrichting op. De aanvaardbare waarden voor deze parameter zijn:
- PrimaryToRecovery
- RecoveryToPrimary
Type: | String |
Accepted values: | PrimaryToRecovery, RecoveryToPrimary |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-MultiVmSyncPoint
Hiermee geeft u op of meerdere VM-synchronisatiepunten moeten worden ingeschakeld voor failover van VM-synchronisatie ingeschakelde VM's (alleen van toepassing op VMware naar Azure-replicatiescenario).
Type: | String |
Accepted values: | Enable, Disable |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-RecoveryPlan
Hiermee geeft u een ASR-herstelplanobject op.
Type: | ASRRecoveryPlan |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-RecoveryPoint
Hiermee geeft u een aangepast herstelpunt om failover naar de beveiligde machine te testen.
Type: | ASRRecoveryPoint |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-RecoveryTag
Hiermee geeft u de hersteltag voor het testen van failover naar
Type: | String |
Accepted values: | Latest, LatestAvailable, LatestAvailableApplicationConsistent |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-ReplicationProtectedItem
Hiermee geeft u een met ASR-replicatie beveiligd item op.
Type: | ASRReplicationProtectedItem |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-VMNetwork
Hiermee geeft u het netwerk van de virtuele Site Recovery-machine om de virtuele testfailover(en) te verbinden met.
Type: | ASRNetwork |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-WhatIf
Hiermee wordt weergegeven wat er zou gebeuren als u de cmdlet uitvoert. De cmdlet wordt niet uitgevoerd.
Type: | SwitchParameter |
Aliases: | wi |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Invoerwaarden
Uitvoerwaarden
Verwante koppelingen
Azure PowerShell
Feedback
https://aka.ms/ContentUserFeedback.
Binnenkort beschikbaar: In de loop van 2024 zullen we GitHub-problemen geleidelijk uitfaseren als het feedbackmechanisme voor inhoud en deze vervangen door een nieuw feedbacksysteem. Zie voor meer informatie:Feedback verzenden en weergeven voor