Fred2020
Fred2020

Reputation: 487

How to retrieve local.settings.json for an Azure FunctionApp

I can retrieve the ApplicationSettings easily for an Azure FunctionApp with Get-AzFunctionAppSetting but I can't seem to find a way to get the associated local.settings.json file. Can anybody steer me in the right direction. Thanks

Upvotes: 0

Views: 1233

Answers (1)

SwethaKandikonda
SwethaKandikonda

Reputation: 8234

The local.setting.json file contains app settings that Core Tools uses while running locally. You can publish the accompanying local.settings.json file using the --publish-local-settings option.

When you publish make sure these settings are added to the function app in Azure. from there you can try reading app settings using

Get-AzFunctionAppSetting -Name MyAppName -ResourceGroupName MyResourceGroupName

REFERENCES:

  1. Work with Azure Functions Core Tools
  2. Azure Functions Core Tools reference

Upvotes: 1

Related Questions