如何使用 Windows Azure 设置 CRON 作业?
有没有办法使用 Windows 计划任务来按计划启动 url 或 exe?
我可以将程序编写为 exe,然后创建 Azure VM,然后通过 RDP 进入 Azure VM,并将其连接到 Windows 任务计划程序吗?
Is there a way to use the windows scheduled task to kick off a url or a exe on a schedule?
Can I write a program as an exe then create a Azure VM then RDP into the Azure VM and hook it up to windows task scheduler?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
最近事情变得容易多了,请参阅此链接 https://azure.microsoft.com/ en-us/services/scheduler/ 在新的 Azure Scheduler 中创建计划作业。有一个基本的免费套餐以及一些付费选项,但我认为这正是我们许多人所寻求的。它是使用 GET、POST、PUT、DELETE 请求触发 URL 的出色解决方案。
只需按照简单的说明进行操作即可。首先从 Azure 仪表板应用程序菜单中选择“调度程序”:
Things got much easier lately, please see this link https://azure.microsoft.com/en-us/services/scheduler/ to create a scheduled job in the new Azure Scheduler. There is a basic Free tier as well as some paid options but I think this is exactly what many of us were looking for. It is an excellent solution for triggering URLs with GET,POST,PUT,DELETE requests.
Just follow the simple instructions. Starting by selecting "Scheduler" from the Azure dashboard app menu:
Azure 现在确实有一个调度程序。
它允许通过 HTTP/s 调用 Web 服务并将消息发布到 Windows Azure 存储队列。它非常新,但如果您不需要经常执行调度程序,它可以是免费的。否则,每月只需支付少量费用,并附带最多每分钟的计划任务。
Azure does have a scheduler now.
It allows invoking a Web Service over HTTP/s and post a message to a Windows Azure Storage Queue. It's very new but it can be free if you do not need the scheduler to be executed often. Otherwise it's a small monthly fee which come with scheduled task that can be up to every minute.
今天的调度程序是
Azure Logic Apps
:https://learn.microsoft.com/en- us/azure/logic-apps/logic-apps-overview
如果您正在寻找类似 cron 作业的内容(这是一个在特定时间一次又一次运行的作业),请查看
天蓝色功能:
https://learn.microsoft.com/en-us/天蓝色/天蓝色函数/函数概述
Today the scheduler has been
Azure Logic Apps
:https://learn.microsoft.com/en-us/azure/logic-apps/logic-apps-overview
If you are looking for something like a cron job (which is a job, that is being run at specific time again and again), then check out
Azure Functions
:https://learn.microsoft.com/en-us/azure/azure-functions/functions-overview
谷歌Azure存储队列。它们允许您安排稍后运行的作业。您甚至可以指定作业何时运行。
Google Azure Storage Queues. They allow you to schedule jobs that will run at a later date. You can even specify when the job should run.