< Back

Restart-AzureRmRecoveryServicesAsrJob

Tue Jan 29, 2019 10:01 pm

NAME Restart-AzureRmRecoveryServicesAsrJob



SYNOPSIS

Restarts an Azure Site Recovery job.





SYNTAX

Restart-AzureRmRecoveryServicesAsrJob [-Confirm] [-DefaultProfile <IAzureContextContainer>] -InputObject <ASRJob> [-WhatIf] [<CommonParameters>]



Restart-AzureRmRecoveryServicesAsrJob [-Confirm] [-DefaultProfile <IAzureContextContainer>] -Name <String> [-WhatIf] [<CommonParameters>]





DESCRIPTION

The Restart-AzureRmRecoveryServicesAsrJob cmdlet restarts an Azure Site Recovery job.





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



-InputObject <ASRJob>

The input object to the cmdlet: The ASR job object corresponding to the ASR job to be restarted



Required? true

Position? named

Default value None

Accept pipeline input? True (ByValue)

Accept wildcard characters? false



-Name <String>

Specify the job by name.



Required? true

Position? named

Default value None

Accept pipeline input? False

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.ASRJob







OUTPUTS

Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRJob







NOTES









Example 1



PS C:\\> $currentJob = Restart-AzureRmRecoveryServicesAsrJob -Job $Job



Restarts the specified ASR job and returns the updated ASR job object of the ASR job.







RELATED LINKS

Online Version: https://docs.microsoft.com/en-us/powers ... icesasrjob

Get-AzureRmRecoveryServicesAsrJob

Resume-AzureRmRecoveryServicesAsrJob

Stop-AzureRmRecoveryServicesAsrJob