I have an Azure Functions project and locally there is a local.settings.json file with this JSON:
"PushFile": {
"Location": "value",
"Port": 22
}
And I can get the values like so
_configuration.GetValue<string>("PushFile:Location");
_configuration.GetValue<int>("PushFile:Port");
So all good locally. Within the Azure Function App service I have added an app setting like so
Name: PushFile
Value: {"Location":"value", "Port": 22}
However when I run the function hosted in Azure the values resolve to null.
Is there something I have to enable/turn on within code or azure?