部署到本地服务器、SSIS、Azure Devops

Deploy to onpremise servers, SSIS, Azure Devops

我正在使用 Azure Devops 并且想要安装 CD。

我已经使用 PowerShell 脚本注册了我的本地服务器。在 Azure Devops 中显示为 "ONLINE"。但是,当我尝试使用带有 "Microsoft SSIS Build task" 的版本进行部署时,我收到一条错误消息,指出它无法访问服务器。服务器在线。

有什么建议吗?我做错了什么?

2020-05-16T10:49:17.3274679Z Microsoft.SqlServer.Management.Common.ConnectionFailureException:无法连接到服务器 psjtst*****。 ---> System.Data.SqlClient.SqlException:建立与 SQL 服务器的连接时发生了与网络相关或特定于实例的错误。服务器未找到或无法访问。验证实例名称是否正确并且 SQL 服务器配置为允许远程连接。 (提供程序:命名管道提供程序,错误:40 - 无法打开到 SQL 服务器的连接)---> System.ComponentModel.Win32Exception:找不到网络路径 2020-05-16T10:49:17.3276924Z --- 内部异常堆栈跟踪结束 --- 2020-05-16T10:49:17.3278587Z 在 System.Data.SqlClient.SqlInternalConnectionTds..ctor(DbConnectionPoolIdentity 身份、SqlConnectionString connectionOptions、SqlCredential 凭据、Object providerInfo、String newPassword、SecureString newSecurePassword、Boolean redirectedUserInstance、SqlConnectionString userConnectionOptions、SessionData reconnectSessionData pool、Db String accessToken, Boolean applyTransientFaultHandling, SqlAuthenticationProviderManager sqlAuthProviderManager) 2020-05-16T10:49:17.3282547Z System.Data.SqlClient.SqlConnectionFactory.CreateConnection(DbConnectionOptions 选项、DbConnectionPoolKey poolKey、对象 poolGroupProviderInfo、DbConnectionPool 池、DbConnection owningConnection、DbConnectionOptions

SSIS 构建任务依赖于Visual Studio 和SSIS 设计器,这对构建代理是强制性的。因此,对于管道中的 运行 SSIS 构建任务,您必须为 Microsoft 托管代理选择 vs2017-win2016,或 安装 Visual Studio 和 SSIS 设计器(VS2017 + SSDT2017,或 VS2019 + SSIS 项目扩展)在自托管代理上。

A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections.

根据错误信息,请确保您的构建代理没有这些limitations

此外,由于您使用的是自托管代理,请确保您的构建服务帐户可以远程访问您的本地服务器并具有足够的权限。

最好将该帐户添加为本地管理员和 SQL 服务器管理员在您的本地服务器上。

添加发布管道时,有不同类型的代理作业。这是我忽略的。我需要使用 "deployment group job" 才能看到我的本地服务器。