Start-​Azure​Rm​Site​Recovery​Test​Failover​Job

Starts a test failover for a Site Recovery protection entity.

Syntax

Start-AzureRmSiteRecoveryTestFailoverJob
     -ProtectionEntity <ASRProtectionEntity>
     -Direction <String>
     [-DataEncryptionPrimaryCertFile <String>]
     [-DataEncryptionSecondaryCertFile <String>]
     [<CommonParameters>]
Start-AzureRmSiteRecoveryTestFailoverJob
     -ProtectionEntity <ASRProtectionEntity>
     -Direction <String>
     [-DataEncryptionPrimaryCertFile <String>]
     [-DataEncryptionSecondaryCertFile <String>]
     -VMNetwork <ASRNetwork>
     [<CommonParameters>]
Start-AzureRmSiteRecoveryTestFailoverJob
     -ProtectionEntity <ASRProtectionEntity>
     -Direction <String>
     [-DataEncryptionPrimaryCertFile <String>]
     [-DataEncryptionSecondaryCertFile <String>]
     -AzureVMNetworkId <String>
     [<CommonParameters>]
Start-AzureRmSiteRecoveryTestFailoverJob
     -Direction <String>
     [-DataEncryptionPrimaryCertFile <String>]
     [-DataEncryptionSecondaryCertFile <String>]
     -RecoveryPlan <ASRRecoveryPlan>
     [<CommonParameters>]
Start-AzureRmSiteRecoveryTestFailoverJob
     -Direction <String>
     [-DataEncryptionPrimaryCertFile <String>]
     [-DataEncryptionSecondaryCertFile <String>]
     -RecoveryPlan <ASRRecoveryPlan>
     -VMNetwork <ASRNetwork>
     [<CommonParameters>]
Start-AzureRmSiteRecoveryTestFailoverJob
     -Direction <String>
     [-DataEncryptionPrimaryCertFile <String>]
     [-DataEncryptionSecondaryCertFile <String>]
     -RecoveryPlan <ASRRecoveryPlan>
     -AzureVMNetworkId <String>
     [<CommonParameters>]
Start-AzureRmSiteRecoveryTestFailoverJob
     -Direction <String>
     [-DataEncryptionPrimaryCertFile <String>]
     [-DataEncryptionSecondaryCertFile <String>]
     -VMNetwork <ASRNetwork>
     -ReplicationProtectedItem <ASRReplicationProtectedItem>
     [<CommonParameters>]
Start-AzureRmSiteRecoveryTestFailoverJob
     -Direction <String>
     [-DataEncryptionPrimaryCertFile <String>]
     [-DataEncryptionSecondaryCertFile <String>]
     -AzureVMNetworkId <String>
     -ReplicationProtectedItem <ASRReplicationProtectedItem>
     [<CommonParameters>]
Start-AzureRmSiteRecoveryTestFailoverJob
     -Direction <String>
     [-DataEncryptionPrimaryCertFile <String>]
     [-DataEncryptionSecondaryCertFile <String>]
     -ReplicationProtectedItem <ASRReplicationProtectedItem>
     [<CommonParameters>]

Description

The Start-AzureRmSiteRecoveryTestFailoverJob cmdlet starts test failover of an Azure Site Recovery protection entity or recovery plan. You can check whether the job succeeded by using the Get-AzureRmSiteRecoveryJob cmdlet.

Required Parameters

-AzureVMNetworkId

Specifies the Azure virtual network ID.

Type:String
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-Direction

Specifies the failover direction. The acceptable values for this parameter are:- PrimaryToRecovery

  • RecoveryToPrimary
Type:String
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-ProtectionEntity

Specifies the Site Recovery protection entity object.

Type:ASRProtectionEntity
Position:Named
Default value:None
Accept pipeline input:True (ByValue)
Accept wildcard characters:False
-RecoveryPlan

Specifies a recovery plan object.

Type:ASRRecoveryPlan
Position:Named
Default value:None
Accept pipeline input:True (ByValue)
Accept wildcard characters:False
-ReplicationProtectedItem
Type:ASRReplicationProtectedItem
Position:Named
Default value:None
Accept pipeline input:True (ByValue)
Accept wildcard characters:False
-VMNetwork

Specifies the Site Recovery virtual machine network.

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

Optional Parameters

-DataEncryptionPrimaryCertFile

Specifies the primary certificate file.

Type:String
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-DataEncryptionSecondaryCertFile

Specifies the secondary certificate file.

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