从 Azure Web 应用程序中删除恶意 Web 作业

Removing rogue webjob from Azure web application

我有一个 azure wep 应用程序,里面有几个网络作业 运行。我注意到其中一个网络作业是 运行 旧代码。也无法删除它,无论我做什么,它都会保持运行。

我试过: * 重新部署代码。 * 停止网络作业 * 停止网络应用 * 正在删除网络作业。

即使在删除之后,网络作业仍然 运行,并从其队列中消耗数据。

没有任何网络应用程序是 运行 使用旧代码的网络作业。

我怀疑 webjob 运行 在一个部署槽中,但是所有的部署槽都被删除了,所以我不知道如何确认这一点。

在 kudu 仪表板上,进程资源管理器中不存在 webjob。

如何摆脱这个流氓网络作业?

您可以尝试按名称获取特定作业,并通过 WebJobs API, which could help you check whether job is indeed deleted/stopped. If the WebJob is deleted from current website, please make sure whether any other WebJob running on your other websites are consuming the queue. In addition please make sure whether Azure Functions 检查作业运行历史记录。当然,Azure 之外的任务也可以使用队列。如果您担心有人恶意执行您的存储,如您所说,您可以尝试重新生成您的存储帐户密钥,但您可能需要将访问密钥与依赖于存储帐户的 applications/services 重新同步。