Azure Functions - Golang App setting with array value

Guy Dillen 76 Reputation points
2023-06-27T17:28:44.74+00:00

Hi,

I need an array value as an app setting in my Golang/ Custom Handler function.

I could define an environment variable and add a comma separated string with the values.

Are there eventually other options for custom handlers (Golang)?

Thanks.

Guy

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
5,909 questions
0 comments No comments
{count} votes

Accepted answer
  1. MuthuKumaranMurugaachari-MSFT 22,441 Reputation points Moderator
    2023-06-27T20:32:42.9633333+00:00

    Guy Dillen Thank you for posting your question in Microsoft Q&A. For representing an array in app setting, you can use 0 based configuration with set of elements like described here. I found a similar discussion in SO thread which would help in your scenario.

    If you face any issues, share the code snippet and .json values or app setting values that will help in understanding it better.


0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.