Visual Studio Sql 服务器项目无法使用类型 6 的外部源编译(dacpac 生成)

Visual Studio Sql Server project cannot compile (dacpac generation ) with External source of type 6

我正在尝试在 visual studio 中执行一个 Sql 项目(在 Azure Sql 池中,以前是 SQL 数据仓库)。但是,当引擎使用托管身份解析我的外部数据源时,我遇到了问题。外部数据源代码如下:

SQL
CREATE EXTERNAL DATA SOURCE [data_toto_dfs_core_windows_net] WITH (LOCATION = N'abfss://data@toto.dfs.core.windows.net')

错误代码如下:

Error An error occurred while attempting to reverse engineer elements of type Microsoft.Data.Tools.Schema.Sql.SchemaModel.SqlExternalDataSource: Unsupported external data source type '6'.

知道如何处理吗?

此致

文森特

您需要创建一个数据库范围的凭据,以帮助访问外部数据源。

确保您的外部数据源有权使用托管身份访问数据。

请阅读此文档Database-scoped credential with Managed Identity 了解更多信息。