The Stop-AzRecoveryServicesBackupJob cmdlet cancels an existing Azure Backup job.
Use this cmdlet to stop a job that takes too long and blocks other activities.
You can cancel only Backup and Restore job types.
Set the vault context by using the Set-AzRecoveryServicesVaultContext cmdlet before you use the current cmdlet.
The first command gets a backup job, and then stores the job in the $Job variable.
The last command stops the job by specifying the Instance ID of the backup job in $Job.
Parameters
-Confirm
Prompts you for confirmation before running the cmdlet.
Specifies the ID of the job to cancel.
The ID is the InstanceId property of a BackupJob object.
To obtain an BackupJob object, use Get-AzRecoveryServicesBackupJob.
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable,
-InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable,
-ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see
about_CommonParameters.
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.