< Back
Stop-AzureRmRecoveryServicesAsrJob
Post
NAME Stop-AzureRmRecoveryServicesAsrJob
SYNOPSIS
Stops an Azure Site Recovery job.
SYNTAX
Stop-AzureRmRecoveryServicesAsrJob [-Confirm] [-DefaultProfile <IAzureContextContainer>] -InputObject <ASRJob> [-WhatIf] [<CommonParameters>]
Stop-AzureRmRecoveryServicesAsrJob [-Confirm] [-DefaultProfile <IAzureContextContainer>] -Name <String> [-WhatIf] [<CommonParameters>]
DESCRIPTION
The Stop-AzureRmRecoveryServicesAsrJob cmdlet stops the specified 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>
Input Object: Specify the ASR job object corresponding to the ASR job to be stopped
Required? true
Position? named
Default value None
Accept pipeline input? True (ByValue)
Accept wildcard characters? false
-Name <String>
Specify the ASR Job to be stopped by the ASR job 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 = Stop-AzureRmRecoveryServicesAsrJob -Job $Job
Attempts to stop the specified job and returns an updated ASR job object.
RELATED LINKS
Online Version: https://docs.microsoft.com/en-us/powers ... icesasrjob
Get-AzureRmRecoveryServicesAsrJob
Restart-AzureRmRecoveryServicesAsrJob
Resume-AzureRmRecoveryServicesAsrJob
SYNOPSIS
Stops an Azure Site Recovery job.
SYNTAX
Stop-AzureRmRecoveryServicesAsrJob [-Confirm] [-DefaultProfile <IAzureContextContainer>] -InputObject <ASRJob> [-WhatIf] [<CommonParameters>]
Stop-AzureRmRecoveryServicesAsrJob [-Confirm] [-DefaultProfile <IAzureContextContainer>] -Name <String> [-WhatIf] [<CommonParameters>]
DESCRIPTION
The Stop-AzureRmRecoveryServicesAsrJob cmdlet stops the specified 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>
Input Object: Specify the ASR job object corresponding to the ASR job to be stopped
Required? true
Position? named
Default value None
Accept pipeline input? True (ByValue)
Accept wildcard characters? false
-Name <String>
Specify the ASR Job to be stopped by the ASR job 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 = Stop-AzureRmRecoveryServicesAsrJob -Job $Job
Attempts to stop the specified job and returns an updated ASR job object.
RELATED LINKS
Online Version: https://docs.microsoft.com/en-us/powers ... icesasrjob
Get-AzureRmRecoveryServicesAsrJob
Restart-AzureRmRecoveryServicesAsrJob
Resume-AzureRmRecoveryServicesAsrJob