我有哪些选项可以为 Azure 函数提供配置设置以及如何保护它们?

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

我需要为我的 Azure 函数提供一些与环境相关的配置设置(例如密码和连接字符串)。

我有哪些选项可以为我的 Azure 函数提供此类设置以及如何保护密码等设置?

如果您的函数绑定使用这些设置 (triggers/input/output),提供这些设置的方法是通过 Web 应用程序设置在应用程序上设置环境变量。

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

如果它们未在 function.json 属性中使用,那么您可以在函数代码中使用其他密钥管理解决方案,例如 Azure Key Vault。