Azure:如何在不重启应用服务的情况下重新加载环境变量
Azure: How to reload the Environment Variables without rebooting the App Service
我想要达到的目标:
在 ASP.NET Core Web App 中,我想监听配置更改事件,并在 运行 时重新加载新的配置值。我正在使用以下 CLI 操作更改配置设置:
例如:
az webapp config appsettings set --name $WebAppName --slot $SlotName --resource-group $ResourceGroupName --settings A_Setting_To_Monitor=$NewSettingValue
如何在不重置应用服务的情况下检测到此更改事件并加载新的配置值?
我正在使用 C# 和 .NET Core 2.1。
Azure App Configuration provides a service to centrally manage application settings. Modern programs, especially programs running in a cloud, generally have many components that are distributed in nature. Spreading configuration settings across these components can lead to hard-to-troubleshoot errors during an application deployment. Use App Configuration to store all the settings for your application and secure their accesses in one place.
App Configuration makes it easier to implement the following scenarios:
- Centralized management and distribution of hierarchical configuration data for different environments and geographies
- Dynamic configuration changes without the need to redeploy or restart an application
- Feature management
我想要达到的目标:
在 ASP.NET Core Web App 中,我想监听配置更改事件,并在 运行 时重新加载新的配置值。我正在使用以下 CLI 操作更改配置设置:
例如:
az webapp config appsettings set --name $WebAppName --slot $SlotName --resource-group $ResourceGroupName --settings A_Setting_To_Monitor=$NewSettingValue
如何在不重置应用服务的情况下检测到此更改事件并加载新的配置值?
我正在使用 C# 和 .NET Core 2.1。
Azure App Configuration provides a service to centrally manage application settings. Modern programs, especially programs running in a cloud, generally have many components that are distributed in nature. Spreading configuration settings across these components can lead to hard-to-troubleshoot errors during an application deployment. Use App Configuration to store all the settings for your application and secure their accesses in one place.
App Configuration makes it easier to implement the following scenarios:
- Centralized management and distribution of hierarchical configuration data for different environments and geographies
- Dynamic configuration changes without the need to redeploy or restart an application
- Feature management