使用DACPAC未连接,使用TFS自动部署 [英] Automated Deploy with TFS on prem using a DACPAC not connecting

查看:135
本文介绍了使用DACPAC未连接,使用TFS自动部署的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用DACPAC进行TFS自动部署。我在构建服务器上运行SQL Developer,这是发布版本的运行地点。 

I am trying to do an Automated Deploy with TFS using a DACPAC. I have SQL Developer running on the Build Server, which is where the release runs from. 

我试图在没有数据库的情况下运行它

I tried to run this with no Database

我创建了数据库

Ran作为SA和另一个管理员类型用户。

Ran as SA and as another Admin type user.

SQL Developer是否阻止我执行此概念证明? 我不确定管理员凭据无效?

Is SQL Developer preventing me from performing this proof of concept?  I am not sure  what has Invalid administrator credentials?

2019-05-20T20:03:24.4123362Z ## [section]开始:部署使用:dacpac

2019-05-20T20:03:24.4279595Z ====================================== ========================================

2019- 05-20T20:03:24.4279595Z任务         :WinRM - SQL Server数据库部署

2019-05-20T20:03:24.4279595Z描述  :使用WinRM连接到主机,并使用sqlpackage.exe或Invoke-Sqlcmd部署数据库

2019-05-20T20:03:24.4279595Z版本      :1.3.5

2019-05-20T20:03:24.4279595Z作者       :Microsoft Corporation

2019-05-20T20:03:24.4279595Z帮助         :[更多信息]( http://aka.ms/sqlserverdacpackreadme

2019-05-20T20: 03:24.4279595Z ============================================== ================================

2019-05-20T20:03:24.4592157Z准备任务执行处理程序。

2019-05-20T20:03:25.0686274Z执行powershell脚本:D:\ TFSVSOWork \_tasks \SqlDacpacDeploy_063c7649-4934-49e8-9eac-37121fe7e350 \1.3 .5\Main.ps1

2019-05-20T20:03:25.2717632Z使用dacpac开始部署

2019-05-20T20:03:25.2717632Z
2019-05-20T20:03:25.2717632Z

2019-05-20T20:03:25.3030139Z

2019-05-20T20:03:25.3030139 Z

2019-05-20T20:03:25.3186459Z ## [错误] System.Management.Automation.RuntimeException:无效的管理员凭据。 ---> System.Management.Automation.RuntimeException:无效的管理员凭据。

2019-05-20T20:03:25.3186459Z    ---内部异常堆栈跟踪结束---

2019-05-20T20:03:25.3186459Z   在System.Management.Automation.Runspaces.PipelineBase.Invoke(IEnumerable input)

2019-05-20T20:03:25.3186459Z   在System.Management.Automation.PowerShell.Worker.ConstructPipelineAndDoWork(Runspace rs,Boolean performSyncInvoke)

2019-05-20T20:03:25.3186459Z   在System.Management.Automation.PowerShell.Worker.CreateRunspaceIfNeededAndDoWork(Runspace rsToUse,Boolean isSync)

2019-05-20T20:03:25.3186459Z   在System.Management.Automation.PowerShell.CoreInvokeHelper [TInput,TOutput](PSDataCollection`1输入,PSDataCollection`1输出,PSInvocationSettings设置)

2019-05-20T20:03:25.3186459Z    在System.Management.Automation.PowerShell.CoreInvoke [TInput,TOutput](PSDataCollection`1输入,PSDataCollection`1输出,PSInvocationSettings设置)

2019-05-20T20:03:25.3186459Z    在Microsoft.TeamFoundation.DistributedTask.Handlers.LegacyVSTSPowerShellHost.VSTSPowerShellHost.Main(String [] args)

2019-05-20T20:03:25.3498900Z ## [错误] LegacyVSTSPowerShellHost.exe已完成,返回代码:-1。

2019-05-20T20:03:25.3498900Z ## [section]整理:使用部署:dacpac

2019-05-20T20:03:24.4123362Z ##[section]Starting: Deploy using : dacpac
2019-05-20T20:03:24.4279595Z ==============================================================================
2019-05-20T20:03:24.4279595Z Task         : WinRM - SQL Server DB Deployment
2019-05-20T20:03:24.4279595Z Description  : Using WinRM connect to host, and deploy database using sqlpackage.exe or Invoke-Sqlcmd
2019-05-20T20:03:24.4279595Z Version      : 1.3.5
2019-05-20T20:03:24.4279595Z Author       : Microsoft Corporation
2019-05-20T20:03:24.4279595Z Help         : [More Information](http://aka.ms/sqlserverdacpackreadme)
2019-05-20T20:03:24.4279595Z ==============================================================================
2019-05-20T20:03:24.4592157Z Preparing task execution handler.
2019-05-20T20:03:25.0686274Z Executing the powershell script: D:\TFSVSOWork\_tasks\SqlDacpacDeploy_063c7649-4934-49e8-9eac-37121fe7e350\1.3.5\Main.ps1
2019-05-20T20:03:25.2717632Z Starting deployment using dacpac
2019-05-20T20:03:25.2717632Z
2019-05-20T20:03:25.2717632Z
2019-05-20T20:03:25.3030139Z
2019-05-20T20:03:25.3030139Z
2019-05-20T20:03:25.3186459Z ##[error]System.Management.Automation.RuntimeException: Invalid administrator credentials. ---> System.Management.Automation.RuntimeException: Invalid administrator credentials.
2019-05-20T20:03:25.3186459Z    --- End of inner exception stack trace ---
2019-05-20T20:03:25.3186459Z    at System.Management.Automation.Runspaces.PipelineBase.Invoke(IEnumerable input)
2019-05-20T20:03:25.3186459Z    at System.Management.Automation.PowerShell.Worker.ConstructPipelineAndDoWork(Runspace rs, Boolean performSyncInvoke)
2019-05-20T20:03:25.3186459Z    at System.Management.Automation.PowerShell.Worker.CreateRunspaceIfNeededAndDoWork(Runspace rsToUse, Boolean isSync)
2019-05-20T20:03:25.3186459Z    at System.Management.Automation.PowerShell.CoreInvokeHelper[TInput,TOutput](PSDataCollection`1 input, PSDataCollection`1 output, PSInvocationSettings settings)
2019-05-20T20:03:25.3186459Z    at System.Management.Automation.PowerShell.CoreInvoke[TInput,TOutput](PSDataCollection`1 input, PSDataCollection`1 output, PSInvocationSettings settings)
2019-05-20T20:03:25.3186459Z    at Microsoft.TeamFoundation.DistributedTask.Handlers.LegacyVSTSPowerShellHost.VSTSPowerShellHost.Main(String[] args)
2019-05-20T20:03:25.3498900Z ##[error]LegacyVSTSPowerShellHost.exe completed with return code: -1.
2019-05-20T20:03:25.3498900Z ##[section]Finishing: Deploy using : dacpac

推荐答案

你好,Steve Miske,b


感谢您的光临!▼


自Visual Studio Team Services以来现在是Azure DevOps Services,TFS论坛已被锁定;它仍可在"存档论坛"文件夹中查看。对VSTS的讨论已经发生了变化。报告问题或提供有关开发者
社区
的建议,获取有关堆栈溢出,并获得支持  Azure DevOps支持
Hi Steve Miske,

Thanks for reaching out!

Since Visual Studio Team Services is now Azure DevOps Services, TFS forum has been locked; It is still available for review in the Archived Forums folder. The discussion for VSTS has moved. Report a problem or provide a suggestion on Developer Community, get advice on Stack Overflow, and get support on Azure DevOps Support.


这篇关于使用DACPAC未连接,使用TFS自动部署的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆