Chris Harrington
Chris Harrington

Reputation: 1326

Keeping secrets in Azure Function Apps

This article:

https://www.visualstudio.com/en-us/docs/release/examples/azure/change-config-azure-webapps

discusses using the Powershell Set-AzureWebsite command to "change the appSettings and connectionStrings values in the Web.config file"

Is this applicable to Azure Functions?

Upvotes: 1

Views: 810

Answers (1)

David Ebbo
David Ebbo

Reputation: 43193

Yes, they are based on the same platform, so this works identically. e.g. if you set an Azure App Setting called FOO, you will have an environment variable called FOO that you can consume in your Function logic.

Or if using C#, you can also write ConfigurationManager.AppSettings["FOO"].

Upvotes: 3

Related Questions