VSTS:部署 Azure SQL DACPAC 引发错误

VSTS: Deploy Azure SQL DACPAC throws an error

我正在尝试使用 'Deploy Azure SQL DACPAC' 为 Azure SQL 数据库在 VSTS 上设置一个版本。我收到以下错误(system.debug = true

2016-08-09T06:23:08.4767615Z Publishing to database 'DBName' on server 'DBServer'. 
2016-08-09T06:23:08.6821649Z Initializing deployment (Start) 
2016-08-09T06:23:24.7312223Z Initializing deployment (Failed) 
2016-08-09T06:23:24.7684904Z ##[debug]System.Management.Automation.RemoteException: <strong>* Could not deploy package. 
2016-08-09T06:23:24.7794888Z ##[debug][Azure RDFE Call] Deleting firewall rule 7d14da9b-4c86-4ed6-a3f3-d238a3143c39 on azure database server: DBServer 
2016-08-09T06:23:25.9730592Z ##[debug][Azure RDFE Call] Firewall rule 7d14da9b-4c86-4ed6-a3f3-d238a3143c39 deleted on azure database server: DBServer 
2016-08-09T06:23:25.9840576Z ##[error]System.Management.Automation.ParentContainsErrorRecordException: *</strong> Could not deploy package.</pre>

以下是发布配置文件 -

<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="12.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
  <PropertyGroup>
    <IncludeCompositeObjects>True</IncludeCompositeObjects>
    <TargetDatabaseName>SocialRecruiting</TargetDatabaseName>
    <DeployScriptFileName>Database.sql</DeployScriptFileName>
    <TargetConnectionString>Data Source=DBServer;Persist Security Info=True;User ID=username;Pooling=False</TargetConnectionString>
    <ProfileVersionNumber>1</ProfileVersionNumber>
    <ScriptDatabaseOptions>True</ScriptDatabaseOptions>
    <BlockOnPossibleDataLoss>True</BlockOnPossibleDataLoss>
    <CreateNewDatabase>False</CreateNewDatabase>
  </PropertyGroup>
</Project>

我在这方面阅读了几篇类似的帖子,一篇在这里,一篇在另一个论坛上。他们建议手动添加 IP 范围(0.0.0.0255.255.255.255)并使用友好的服务器名称而不是 FQDN,但这没有用。 我可以通过 Visual Studio 手动发布它,没有任何问题。

编辑
我已经尝试了以下帖子中的建议

Azure SQL DACPAC task keeps failing

编辑 - 完整的 DACPAC 日志
http://pastebin.com/bWvTi5Vx

在同事的朋友的帮助下,我得以解决这个问题。正在更新的数据库有一个 table 的列设置为 NULL,DACPAC 为 table 创建脚本,列为 NOT NULL,这导致了错误。我更改了现有的 table 以使列 NOT NULL 并且版本有效。