Hi all
I want to update configuration (applicationsettings) in azure function app automatically.
I added all the configuration in local.settings.json
{
"IsEncrypted": false,
"Values": {
"AzureAbc": "AzureAbc",
"FUNCTIONS_WORKER_RUNTIME": "dotnet",
"BaseUrl": "some_value",
"relUrl1": "some_value",
"relUrl1 "some_value"
}
}
but after publishing function app configuration values are not updated in azure function app configuration.
thanks.

Jaimin ShethiyaPosted Aug 19, 2023, 3:12 PM
That kind of provision is not there.
You have a couple of options.
1. Manually go to the function app configuration and add whatever you want in the configuration.
2. All the configuration data add to the Azure key vault and use those secrets in your code side.
Cr BhargaviPosted Aug 5, 2023, 2:33 AM
To update the configuration (application settings) in your Azure Function app, you can follow these steps:
1. **Update Application Settings in Azure Portal**:
After publishing your Azure Function app, go to the Azure portal (https://portal.azure.com/) and navigate to your Function app.
2. **Configure Application Settings**:
In the Function app's left-hand menu, under the "Settings" section, click on "Configuration." Here, you can add, modify, or delete application settings.
3. **Add or Modify Settings**:
Click on the "+ New application setting" button to add a new setting, or click on the existing setting to modify its value.
4. **Save Changes**:
Once you have added or modified the application settings, click on the "Save" button to apply the changes.
Alternatively, if you prefer to automate the configuration update process, you can use Azure CLI or PowerShell scripts as part of your deployment process. Here's an example using Azure CLI:
1. Install Azure CLI: Make sure you have Azure CLI installed on your local machine.
2. Sign in: Run `az login` to sign in to your Azure account.
3. Update Application Settings: Use the `az functionapp config appsettings set` command to set or update the application settings in your Function app. For example:
az functionapp config appsettings set --name
Replace `` and `` with the actual names of your Function app and the resource group where it is located.
Deepak RawatPosted Aug 3, 2023, 12:13 PM
When publishing an Azure Function app, the configuration settings in the
local.settings.jsonfile are not automatically updated in the Azure Function App's configuration. Thelocal.settings.jsonfile is meant for local development and debugging purposes and is not used for managing the actual configurations in the Azure portal.To update the configuration settings in the Azure Function App, you need to do it through the Azure portal or by using Azure CLI or PowerShell. Here's how you can update the configuration settings in the Azure Function App:
Option 1: Using Azure Portal
Option 2: Using Azure CLI or PowerShell If you prefer using command-line tools, you can use Azure CLI or PowerShell to update the configuration settings.
Using Azure CLI:
Using PowerShell:
to replace
FUNCTION_APP_NAMEandRESOURCE_GROUP_NAMEwith the actual names of your Azure Function App and the resource group it belongs to.After updating the configuration settings using either of the methods above, the new settings will be reflected in your Azure Function App. Remember to keep sensitive information, such as connection strings or passwords, encrypted and secure in your Azure Function App's configuration