Azure中触发应用程序重启的文档?

huangapple go评论54阅读模式
英文:

Documentation on what triggers app restarts in Azure?

问题

我正在升级一些 Azure 函数应用程序,并需要实现一些应用程序设置。Portal UI 表示应用程序设置的更改会重新启动应用程序,但我在应用程序的活动日志中没有看到这方面的证据。我只看到一个“更新网站”操作记录。所以,现在我开始怀疑到底发生了什么。

是否有任何文档是真实情况的来源?

英文:

I'm in the process of upgrading some Azure function apps and I need to implement some application settings. The Portal UI says that changes to application settings will restart the application, but I don't see evidence of this in the Activity Logs of the app. The only entry I see is a 'Update Website' operation. So, now I begin to doubt what is really happening.

Is there documentation anywhere that is the source of truth?

答案1

得分: 0

请参考此文档,其中提到应用程序将在应用设置生效时重新启动:

> - 更改函数应用设置需要重新启动您的函数应用。

每当升级应用程序设置时,您的 Web 应用程序都会重新启动,类似于您的 IIS 服务器,在应用程序中进行任何更改都会导致整个主机重新启动,以便这些更改在 Web 应用程序中得以反映。如果不重新启动 Web 应用程序,应用程序设置将不会生效。例如,添加 WEBSITE_RUN_FROM_PACKAGE=1 允许以 zip 包部署的函数触发器从 zip 包中运行而不会出现任何警告。为了升级这些更改,需要重新启动函数应用程序或 Web 应用程序一次。

我尝试在函数应用中添加了 WEBSITE_RUN_FROM_PACKAGE=1 设置,然后它被重新启动,如下所示:

Azure中触发应用程序重启的文档?

设置更新如下:

警告,指出应用程序将重新启动:

Azure中触发应用程序重启的文档?

Azure中触发应用程序重启的文档?

更新网站设置日志已添加到活动日志中,请参考以下内容:

Azure中触发应用程序重启的文档?

英文:

Refer this document that states that the Application will restart when the app settings is applied:-

> - Changes to function app settings require your function app to be restarted.

Whenever you upgrade your application settings your Web app is restarted its similar to your IIS server where any change made in the application restarts the entire host in in order for those changes to get reflected in the web app. If the web app is not restarted the application settings does not apply. As some settings. Example- Adding WEBSITE_RUN_FROM_PACKAGE=1 allows the function trigger deployed as zip to run from the zip package without any warnings. In order to upgrade these changes in the function app or web app it is restarted once.

I tried adding WEBSITE_RUN_FROM_PACKAGE=1 setting in the Function app and it got restarted like below:-

Azure中触发应用程序重启的文档?

Settings updated like below:-

Warning that states that the app will be re started :-

Azure中触发应用程序重启的文档?

Azure中触发应用程序重启的文档?

Update website setting logs is added in the Activity Logs refer below:-

Azure中触发应用程序重启的文档?

huangapple
  • 本文由 发表于 2023年7月6日 22:29:17
  • 转载请务必保留本文链接:https://go.coder-hub.com/76629893.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定