我可以制作一个 powershell 来在 WebJobs 的帮助下打开和关闭应用程序服务中的 AlwaysOn 属性吗?或者有没有更好的安排方法?
我可以制作一个 powershell 来在 WebJobs 的帮助下打开/关闭应用程序服务中的 AlwaysOn 属性吗?或者有没有更好的安排方法?
Can I make a powershell that turns on/off the AlwaysOn property in the App service with help of WebJobs? Or is there better ways to schedule it?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以使用下面的 azure powershell 命令 Set-AzWebApp 来打开和关闭应用服务中的 AlwaysOn 属性。
此命令将修改 Azure Web 应用程序并确保 Web 应用程序始终加载,而不是在空闲后卸载。
You can use the below azure powershell command Set-AzWebApp to turn on and off the AlwaysOn property in the App service.
This cmd will Modify an Azure Web App and Ensure that web app gets loaded all the time, rather unloaded after been idle.