Do Azure Function Container application settings not work? How to pass app settings to Function Container?

Ryan 6 Reputation points
2020-11-18T06:19:34.873+00:00

Hi folks,

I just transfered from a standard Azure Function service to the Azure Container Function service. I'm having issues getting my application settings into the container, though. The Azure portal for the service shows the common application settings page, but none of these settings seem to make it through to the container.

Am I supposed to apply settings at the Dockerfile level, or am I doing something wrong?

Thank you

Azure Container Instances
Azure Container Instances
An Azure service that provides customers with a serverless container experience.
670 questions
Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
4,572 questions
{count} vote

1 answer

Sort by: Most helpful
  1. Nasreen Akter 10,781 Reputation points
    2020-11-19T14:37:20.97+00:00

    Hi @Ryan ,

    It's hard to tell what exactly the issue is. But first thing what came to my mind is:

    If you have something in the code to retrieve the Connection String
    string connectionString = Environment.GetEnvironmentVariable("CS_ABS_Storage", EnvironmentVariableTarget.Process);
    use
    string connectionString = Environment.GetEnvironmentVariable("CS_ABS_Storage"); instead.

    Hope this will help. Thanks!

    0 comments No comments