executionContext (https://msdn.microsoft.com/en-us/library/azure/gg557553.aspx#Runtime)上的Azure文档说executionContext控制运行时环境是“提升的”还是不“提升的”(默认为非提升的、“有限的”)。但是,我注意到WaIISHost和w3wp进程正在以提升的身份运行,即使executionContext缺省设置为有限。

文档没有解释这一点。对于将exectutionContext设置为“已提升”的影响,是否有更详细的解释?
使用executionContext="true“是否意味着我的整个web应用程序都运行提升了?
发布于 2018-10-24 02:55:18
使用executionContext="true“是否意味着我的整个web应用程序运行提升?
"true"不是有效值。
您可以将其设置为"limited"或"elevated"。如果您将其设置为elevated,则在Worker角色中,它将以SYSTEM而不是NETWORK SERVICE的身份运行waworkerhost.exe。
我不确定它对网络角色有什么作用。我读到过它的depends on what version of the Azure SDK you're using,在某些版本中只会提升web角色的RoleEntryPoint,而不是在IIS中运行的实际网站。
发布于 2016-08-23 11:08:57
来自官方网站:the executionContext attribute specifies the privilege level of the startup task, and the taskType attribute specifies how the task will be executed.
https://azure.microsoft.com/en-us/documentation/articles/cloud-services-startup-tasks/
https://stackoverflow.com/questions/39089809
复制相似问题