< Back

Start-AzureRmRecoveryServicesAsrCommitFailoverJob

Tue Jan 29, 2019 10:02 pm

NAME Start-AzureRmRecoveryServicesAsrCommitFailoverJob



SYNOPSIS

Starts the commit failover action for a Site Recovery object.





SYNTAX

Start-AzureRmRecoveryServicesAsrCommitFailoverJob [-Confirm] [-DefaultProfile <IAzureContextContainer>] -RecoveryPlan <ASRRecoveryPlan> [-WhatIf]

[<CommonParameters>]



Start-AzureRmRecoveryServicesAsrCommitFailoverJob [-Confirm] [-DefaultProfile <IAzureContextContainer>] -ReplicationProtectedItem

<ASRReplicationProtectedItem> [-WhatIf] [<CommonParameters>]





DESCRIPTION

The Start-AzureRmRecoveryServicesAsrCommitFailoverJob cmdlet starts the commit failover process for an Azure Site Recovery object after a failover

operation.





PARAMETERS

-Confirm [<SwitchParameter>]

Prompts you for confirmation before running the cmdlet.



Required? false

Position? named

Default value False

Accept pipeline input? False

Accept wildcard characters? false



-DefaultProfile <IAzureContextContainer>

The credentials, account, tenant, and subscription used for communication with Azure.



Required? false

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-RecoveryPlan <ASRRecoveryPlan>

Specifies an ASR recovery plan object corresponding to recovery plan to be failovered.



Required? true

Position? named

Default value None

Accept pipeline input? True (ByValue)

Accept wildcard characters? false



-ReplicationProtectedItem <ASRReplicationProtectedItem>

Specifies an ASR replication protected item object corresponding to replication protected item to be failovered.



Required? true

Position? named

Default value None

Accept pipeline input? True (ByValue)

Accept wildcard characters? false



-WhatIf [<SwitchParameter>]

Shows what would happen if the cmdlet runs. The cmdlet is not run.



Required? false

Position? named

Default value False

Accept pipeline input? False

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).



INPUTS

Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRRecoveryPlan

Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRReplicationProtectedItem





OUTPUTS

Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRJob







NOTES









Example 1



PS C:\\> $currentJob = Start-AzureRmRecoveryServicesAsrCommitFailoverJob -RecoveryPlan $RP



Starts the commit failover for the specified recovery plan and returns the ASR job used to track the operation.







RELATED LINKS

Online Version:

https://docs.microsoft.com/en-us/powers ... ailoverjob