Allan Xu
Allan Xu

Reputation: 9288

What are my options to supply configuration settings to an Azure Function and how to secure them?

I need to supply a few environment-related configuration settings (such as passwords and Connection Strings) to my Azure function.

What are my options to supply such settings to my Azure Function and how to secure settings such as Passwords?

Upvotes: 0

Views: 85

Answers (1)

Matt Mason
Matt Mason

Reputation: 2726

If these settings are consumed by your function bindings (triggers/input/output), the way to supply these settings is by setting environment variables on the app via Web App Application Settings.

https://learn.microsoft.com/en-us/azure/azure-functions/functions-how-to-use-azure-function-app-settings

If they are not used in function.json properties, then you can use other key management solutions such as Azure Key Vault within your function code.

Upvotes: 1

Related Questions