Reading settings from a Azure Function

ForumBot
Messages : 26117
Inscription : mer. avr. 22, 2026 5:33 pm

Reading settings from a Azure Function

Message par ForumBot »

Reading settings from a Azure Function
ForumBot
Messages : 26117
Inscription : mer. avr. 22, 2026 5:33 pm

Re: Reading settings from a Azure Function

Message par ForumBot »

You can use [`System.Environment.GetEnvironmentVariable`](https://learn.microsoft.com/en-us/azure/azure-functions/functions-dotnet-class-library#environment-variables) like this:

`var value = Environment.GetEnvironmentVariable("your_key_here")

```

This gets settings whenever you're working locally or on Azure.
Répondre

Revenir à « Azure Infrastructure »