gpt4 book ai didi

visual-studio - 发布时 Visual Studio 2019 Azure KeyVault 配置错误

转载 作者:行者123 更新时间:2023-12-02 22:52:59 25 4
gpt4 key购买 nike

我想将我的项目部署到我刚刚创建的应用服务中的 Azure。另外,我为所有设置创建了一个 KeyVault。

当我尝试将应用程序部署到服务时,我必须配置数据库的连接字符串。

enter image description here

我点击配置并按照说明进行操作并选择正确的应用服务或 KeyVault。然后,在最后一步中,我收到此错误。

Dependency configuration progress

Failed to resolve token 'ProfileResourceId'.

ErrorEmpty parameter 'resourceId'...

ErrorFailed to configure Azure AppService settings.

Failed to configure dependency Azure Key Vault secrets1

enter image description here

如何修复它?

更多详细信息

我没有遵循任何文档。通常,我使用 Azure DevOps 将应用程序部署到 Azure。在这种情况下,我更喜欢从笔记本电脑部署应用程序。

为此,我从门户下载了发布配置文件并添加到 Visual Studio 中。

enter image description here

然后,我看到一些警报。一开始我忽略了该警报,但部署的应用程序不起作用。因此,我尝试配置每个依赖项

enter image description here

如果我按 + 添加新的服务依赖项,我会选择 Azure Key Vault。选择 Azure 订阅和 key 保管库。然后,局部变量并检查设置。然后完成。

enter image description here

enter image description here

enter image description here

30719-image.png

在解决方案中,我看到一些 ServiceDependency 文件

enter image description here

令我奇怪的是,在项目中我成功配置了连接服务

enter image description here

最佳答案

我在 Application Insights 方面也遇到了类似的问题。我可以通过单击“发布”窗口中的“恢复服务依赖项及其设置”来解决。

单击后,我能够配置我的依赖项,而不会出现“无法解析 token ‘ProfileResourceId’”的情况。错误。

Service Dependencies Configuration Window

关于visual-studio - 发布时 Visual Studio 2019 Azure KeyVault 配置错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/64247385/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com