【发布时间】:2018-09-21 07:16:54
【问题描述】:
我知道可以从 Azure WebApp 中的 c# WebJob 读取应用程序设置,如 this 帖子中所述。
基本上您可以使用ConfigurationManager 或CloudConfigurationManager,因为WebJob 在相同的WebApp 上下文中运行,如下所示:
var appSetting = ConfigurationManager.AppSettings["MyKey"];
var appCloudSetting = CloudConfigurationManager.GetSetting("MyKey");
在我的场景中,我使用的不是c# 应用程序,而是一个PowerShell 脚本,我正在寻找类似的解决方案。
是否可以在 PowerShell WebJob 中读取这些应用程序设置?
【问题讨论】:
标签: c# azure powershell azure-webjobs