函数运行时无法启动。 Microsoft.Azure.ServiceBus: 连接字符串参数名称 '@Microsoft.KeyVault 的值

The function runtime is unable to start. Microsoft.Azure.ServiceBus: Value for the connection string parameter name '@Microsoft.KeyVault

我有一个带有 ServiceBusTrigger 的 Azure 函数。现在我已经在应用程序设置中设置了 ServiceBusConnectionString 的值。我基本上是从 Azure KeyVault 中获取连接字符串值。但是,每当我 运行 我的 Azure Function 进行此更改后,我总是会收到如下错误。非常感谢任何帮助。

我找出了导致此问题的原因。显然,App Settings 值中存在拼写错误。我在值中遗漏了 SecretUri=。所以,我们应该使用 @Microsoft.KeyVault(SecretUri=Secret URI with version) 而不是 @Microsoft.KeyVault(Secret URI with version)

所以在进行了更改之后,错误就消失了。希望对你有帮助。