That isn't what the Connection Strings
section is for. Since you are running an ASP.NET Core app then you need to set your connection string information under App Settings
. This section overrides whatever is specified in the apps appsettings.*.json
file. This is where you would override the default connection string with whatever connection string you need to use for your app. At runtime everything in this section are bubbled up as env variables to the app process.
The Connection Strings
section is designed for non-.NET apps and NET Framework apps that use a web.config that you need to override. You can read more about when you'd use this approach here.
Move your connection string into App Settings
and restart your app and everything should work. Assuming you're following the standard connection string approach in appsettings.
{
"ConnectionStrings": {
"SomeConnection" : "..."
}
}
Then the setting in Azure would look something like ConnectionStrings__SomeConnection
.