Reputation: 487
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
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:
Upvotes: 1