Reading settings from a Azure Function

Clippy
Messages : 22157
Inscription : mer. 22 avr. 2026, 17:33

Reading settings from a Azure Function

Message par Clippy »

Reading settings from a Azure Function
Clippy
Messages : 22157
Inscription : mer. 22 avr. 2026, 17:33

Re: Reading settings from a Azure Function

Message par Clippy »

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 »