Azure网站:如何取消部署? [英] Azure-Web-sites: How to cancel a deployment?

查看:35
本文介绍了Azure网站:如何取消部署?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个Azure Function应用程序/Azure网站设置,并且可以从源代码管理中进行连续部署.

I have an Azure Function App / Azure Website setup with continuous deployment from source-control.

此应用程序具有一个自定义部署脚本,该脚本需要花费大量时间才能运行.有时我将对git的更改推送到一个错误的位置,并且我想取消该部署(尽管仍然允许将来的git push导致部署).

This App has a custom deployment script that takes quite a bit of time to run. Occasionally I push out a change to git which was a mistake, and I want to cancel that one deployment (While still allowing future git pushes to cause a deployment).

是否可以运行PowerShell命令,或者是否有某些选项可以取消当前的部署?

Is there a PowerShell command I can run, or some option which will cancel my current deployment?

推荐答案

我最终能弄清楚这一点,并想把它发布在这里.没有干净"的方法可以做到这一点,但是有一个"hack".

I was able to figure this out eventually, and figured I'd post it here. There is no "clean" way to do this, but there is a "hack".

  1. 导航到您的SCM网站:

  1. Navigate to your SCM site:

[YOUR_WEBSITE] .scm.azurewebsites.net

[YOUR_WEBSITE].scm.azurewebsites.net

单击进程资源管理器"

Click on "Process Explorer"

找到当前部署的过程,然后选择属性".

Find the process which is the current deployment and choose "Properties".

滚动到页面底部,然后选择杀死"

Scroll to the bottom of the page and choose "Kill"

Voilà,您已经杀死了中间的部署.

Voilà, you've killed your deployment in the middle.

这篇关于Azure网站:如何取消部署?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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