Azure Synapse 无法执行部署并给出错误 "type Microsoft.Data.Tools.Schema.Sql.SqlDwDatabaseSchemaProvider is not valid"

Azure Synapse is failing to perform the deployment giving error "type Microsoft.Data.Tools.Schema.Sql.SqlDwDatabaseSchemaProvider is not valid"

我正在研究 Azure Synapse。我能够使用 Azure CI 管道的 MS Build 任务成功构建 Azure Synapse 项目。

但是当我尝试使用 Azure CD 管道部署 Azure Synapse 时,出现以下错误。

Internal Error. The database platform service with type Microsoft.Data.Tools.Schema.Sql.SqlDwDatabaseSchemaProvider is not valid. You must make sure the service is loaded, or you must provide the full type name of a valid database platform service.

我正在使用以下任务部署 DacPac。我希望这不会成为任何问题。

https://github.com/DrJohnT/AzureDevOpsExtensionsForSqlServer/tree/master/extensions/PublishDacPac

这是一个奇怪的错误,因为几天前同样的部署已成功完成。

请帮忙!

我已经解决了这个问题。我深入调查发现这个问题与我在 Azure DevOps 管道中使用的代理有关。

还有一件事,我正在部署 SQL 数据库和 Azure Synapse 使用不同的管道但使用相同的代理。

下面是 Azure SQL 数据库管道代理的屏幕截图。 SQL 数据库部署成功,代理规范 vs2017-win2016

下面是 Azure Synapse 部署管道代理的屏幕截图。 Azure Synapse 正在使用代理规范 windows-2019

成功部署

要点是正在使用一个代理,但 Azure Synapse 和 SQL 数据库的规范不同,因为两者都是在 VS2019 上构建的。