1

After value in app configuration have changed,

enter image description here

the configuration in Azure App Service is not changed even I restart it

enter image description here

I wonder how can I make app service get the new configuration without any code?

Jess Chen
  • 3,136
  • 1
  • 26
  • 35

2 Answers2

3

You can force your App Service instance to reload the value from App Configuration by making any change to your existing application settings in App Service. According to this documentation:

Any configuration change to the app that results in a site restart causes an immediate refetch of all referenced key-values from the App Configuration store.

You could create a dummy application setting in App Service and change its value whenever you want to reload key-values from App Configuration.

Avani Gupta
  • 204
  • 1
  • 3
0

how can I make app service get the new configuration without any code?

  • To get the new configuration, navigate to Azure Portal and open Azure App Service.
  • Go to settings of your App Service=> Configuration=> Application Settings=> click on Add New Application Setting.

enter image description here

Enter the setting name in "Name" and its value in "Value" fields as shown below.

enter image description here

Once you add these settings in the configuration section of your App service, you can access these settings in your application for further use.


the configuration in Azure App Service is not changed even I restart it

AFAIK, the configuration values of Azure App Configuration will not reflect directly in the configuration of Azure App Service.

  • Azure App Service has its own configuration system, which includes application settings and connection strings that can be managed directly in the Azure portal.

  • You can fetch configuration values from Azure App Configuration in your App Service programmatically using SDKs or libraries (Azure.Extensions.AspNetCore.Configuration.AzureAppConfiguration nuget package).

References: Quickstart: Create an Azure App Configuration store | Microsoft Learn

Pravallika KV
  • 2,415
  • 2
  • 2
  • 7