是否可以不通过UI或FTP轻松停止/启动Azure Webjobs? [英] Can I easily stop/start Azure Webjobs without going through the UI or FTP?

查看:65
本文介绍了是否可以不通过UI或FTP轻松停止/启动Azure Webjobs?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Azure管理界面非常慢,无法加载Web作业列表,并且新门户仅超时并在95%的时间内失败.

The Azure management interface is abhorrently slow to load up the web jobs list, and the new portal just times out and fails 95% of the time.

Azure中有很多WebApp(通常按区域部署)运行Web作业. 极其麻烦且缓慢,必须通过UI来完成所有这些工作.

We have a lot of WebApps (often deployed per region) in Azure running web jobs. It's extremely cumbersome and slow to have to go through the UI to do all this.

我知道Kudu API提供了针对Web作业的启动/停止机制,您只需在作业文件夹中放置一个名为"disable.job"的文件即可将其停止,但是这些都需要通过极其烦人的慢UI来完成下载发布凭据($用户名,密码).

I know that the Kudu API offers start/stop mechanisms for web jobs and you can just drop a file called 'disable.job' in the job folder to stop it, but these all require going through the extremely annoyingly slow UI to download publish credentials ($username, password).

是否存在我出于某种原因错过的PowerShell cmdlet,或者那里有公共脚本来帮助您执行此操作?理想情况下,我只想提供我的Azure凭据或导入证书.

Is there a PowerShell cmdlet I've somehow missed or a public script out there to help do this? Ideally I just want to supply my Azure credentials or import the certificates.

(老实说,微软的关键云/DevOps产品几乎完全依赖于UI,并且使用的是极其缓慢/无用的UI,这实在令人惊讶.)

(Honestly, it's rather surprising that Microsoft's key cloud/DevOps product would be almost entirely UI-dependent, and on an extremely slow/useless UI at that.)

推荐答案

很难找到,但这是指向开始"和停止"文档的链接:

It's hard to find, but here's a link to the documentation for Start and Stop:

开始: 文档

示例:Start-AzureWebsiteJob -Name MyWebsite -JobName MyWebJob -JobType Continuous

停止: 文档

示例:Stop-AzureWebsiteJob -Name MyWebsite -JobName MyWebJob

这篇关于是否可以不通过UI或FTP轻松停止/启动Azure Webjobs?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆