在 visual studio 内添加 Azure Key Vault 连接服务将继续显示 "Verifying that your application will have access to the key vault"

Adding Azure Key Vault connected service inside visual studio will keep showing "Verifying that your application will have access to the key vault"

我想在 visual studio 中添加一个 Key Vault 连接服务,但是当我这样做时,我一直收到这个屏幕:-

我的项目中不会添加任何内容?有什么建议吗?

确保您已将登录 VS 的用户帐户添加到 azure keyvault 的访问策略中,如果没有,请按照此link 添加它。

如果仍然无效,请导航到门户中的 azure keyvault -> Access control (IAM) -> 添加 RBAC 角色,例如Contributor 到您的用户帐户,按照此 link(您登录 Azure 门户的用户帐户需要是 Owner/User Access administrator 才能执行此操作)。