英文:
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 设置,然后它被重新启动,如下所示:
设置更新如下:
警告,指出应用程序将重新启动:
更新网站设置日志已添加到活动日志中,请参考以下内容:
英文:
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:-
Settings updated like below:-
Warning that states that the app will be re started :-
Update website setting logs is added in the Activity Logs refer below:-
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论