如何在函数APP中使用Azure Vault Secret作为配置提供程序?

问题描述 投票:0回答:0

我正在尝试将所有配置存储在 Azure Keyvault Secret 中,并希望使用类似的功能应用程序配置。

我已将机密添加到 Azure Key Vault 中,并且能够读取

GetSection
GetValue
方法,但是对于 SignalR,它正在尝试获取
AzureSignalRConnectionString
的配置值以进行协商。如果我将该变量声明到本地 json 配置中,就可以解决这个问题,但是对于 stage/prod 等上层环境,这种类型的配置将不存在。因此,需要使用 keyvault 中的秘密。

c# azure-functions environment-variables azure-keyvault
© www.soinside.com 2019 - 2024. All rights reserved.