PFA 6 PFA 2 PFA 3 PFA PFA 4 PFA 5 I have some triggered jobs running in Azure. I have created scheduler jobs for those jobs in Azure so that whenever I disable it will stop running the triggered jobs instead of killing. But I want to disable those scheduler jobs from VSTS using plugin or Powershell script. I can stop and start Continuous webjobs using Powershell scripts but triggered jobs/scheduler jobs I am not sure how to disable using Powershell/Plugins/Tasks from VSTS definitions.
相关问题
- running headless chrome in an microsoft azure web
- Docker task in Azure devops won't accept "$(pw
- Authentication Failure using Git-LFS Azure DevOps
- Register MicroServices in Azure Active Directory (
- Getting error: File extension specified '.webt
相关文章
- Build errors of missing packages in Visual Studio
- SQL Azure Reset autoincrement
- How to cast Azure DocumentDB Document class to my
- VSTS continuous integration triggers not working
- Can't get azure web role to run locally using
- Azure WebApp - Unable to auto-detect the runtime s
- How to change region for Azure WebSite
- Azure webjob vs cloud service
You can add an Azure Powershell Script Task and add the script below to Enable/Disable the scheduler jobs:
Set the Job to "Disabled":
Set the Job to "Enabled":
If you want to enable/disable the JobCollection, you can use
Enable-AzureRmSchedulerJobCollection
andDisable-AzureRmSchedulerJobCollection
Command:Use the script below:
I am afraid you can’t disable scheduler jobs, you may full stopping a web app.