2

While deploying azure functions in app service, other than adding the custom configuration settings and connection strings at the azure portal, is there a way to add these entries in an app settings file deployed with the runtime dlls and read it from there?

Trying to avoid manually maintaining these entries at the portal level for each environment.

abatishchev
  • 98,240
  • 88
  • 296
  • 433
Faizal
  • 353
  • 3
  • 16
  • What do you use for build & release management? If you're using Azure DevOps you could use the Azure Function App task and specify the settings in there: https://learn.microsoft.com/en-us/azure/devops/pipelines/tasks/deploy/azure-function-app?view=azure-devops – Marc Aug 12 '19 at 15:21

2 Answers2

2

Simple Answer No,

Everyone should use local.settings.json since the appsettings.json was renamed to local.settings.json.

Find the reference here

Sajeetharan
  • 216,225
  • 63
  • 350
  • 396
1

In-built support for appsettings.json files is unfortunately not supported in Azure functions (yet). There is a github issue that tracks this.

There are few ways to achieve this at present. Look at this answer at stackoveflow: Azure Functions, how to have multiple .json config files

There is also a similar solution described at github: https://github.com/Azure/azure-functions-host/issues/4464#issuecomment-494367524

Turbo
  • 2,179
  • 18
  • 38