Terraform-如何使用Terraform启动/停止应用程序服务

发布于 2025-02-02 02:07:00 字数 212 浏览 2 评论 0原文

我需要停止并启动Azure应用程序服务。以下是我当前的实现,

  1. 我正在使用Azure DevOps首先部署Docker映像
  2. ,然后使用Docker Image创建Azure App Service,

因此,如果重建了Docker Image,则应用程序服务不会显示更改,直到我们停止并启动开始应用程序服务

在这里可以解决什么?

I have an requirement to stop and start an Azure App service. following are my current implementation

  1. I am using Azure Devops to deploy Docker Image first
  2. Then I create an Azure App Service using the Docker image

So, if the docker image has been rebuilt, the App service doesn't show the changes until we stop and start the App service

what could be solution here?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

爱的那么颓废 2025-02-09 02:07:00
  • 您可以使用门户网站停止/启动应用程序服务。
  1. 登录到Azure Portal
  2. app Service 您想
  3. json 中启动/停止 查看将状态从运行更改为停止
  4. 您也可以从 scmsitealSostopped 属性中进行 set false << /strong> to true

“在此处输入图像描述”

  • You can stop/start the app service using the Portal.
  1. Login to Azure Portal
  2. Goto the app service that you want to start/stop
  3. In the JSON view change the state from Running to Stopped
  4. Also you can do it from scmSiteAlsoStopped property and set False to True.

enter image description here

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文