VSTS Service Fabric 发布到 Azure:使用“1”参数调用“.ctor”时出现异常:"Value cannot be null. Parameter name: authority"

VSTS Service Fabric Release to Azure: Exception calling ".ctor" with "1" argument(s): "Value cannot be null. Parameter name: authority"

接着是:https://docs.microsoft.com/en-us/azure/service-fabric/service-fabric-set-up-continuous-integration

但是当我 运行 实际部署时,我得到以下构造函数错误,这不是很有帮助。

==============================================================================
Task         : Service Fabric Application Deployment
Description  : Deploy a Service Fabric application to a cluster.
Version      : 1.1.2
Author       : Microsoft Corporation
Help         : [More Information](https://go.microsoft.com/fwlink/?LinkId=820528)
==============================================================================
Searching for path: C:\a\r1\a\LONG_PATH\PublishProfiles\Dev.xml
Found path: C:\a\r1\a\LONG_PATH\PublishProfiles\Dev.xml
Searching for path: C:\a\r1\a\**\drop\applicationpackage
Found path: C:\a\r1\a\PATH\drop\applicationpackage
AAD Authority: 
Cluster Application ID: 
Client Application ID: 
##[error]Exception calling ".ctor" with "1" argument(s): "Value cannot be null. Parameter name: authority"
##[section]Finishing: Deploy Service Fabric Application
##[section]Finishing: Release

有什么想法吗?我在哪里可以找到更好的错误消息?如果我从我的桌面和 VS2015 部署它工作正常。谢谢。

对 MATT THALMAN 的回复:

ConnectionEndpoint   : {myapp.eastus.cloudapp.azure.com:19000}
FabricClientSettings : {
                       ClientFriendlyName                   : PowerShell-xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
                       PartitionLocationCacheLimit          : 100000
                       PartitionLocationCacheBucketCount    : 1024
                       ServiceChangePollInterval            : 00:02:00
                       ConnectionInitializationTimeout      : 00:00:02
                       KeepAliveInterval                    : 00:00:20
                       HealthOperationTimeout               : 00:02:00
                       HealthReportSendInterval             : 00:00:00
                       HealthReportRetrySendInterval        : 00:00:30
                       NotificationGatewayConnectionTimeout : 00:00:30
                       NotificationCacheUpdateTimeout       : 00:00:30
                       AuthTokenBufferSize                  : 4096
                       }

我在尝试执行不带引号 ("") 的 powershell 时遇到了这个问题。 Visual Studio 在部署过程中第一次生成powershell 脚本,用于部署。尝试手动执行此脚本,您将看到哪些参数不带引号。

this问题的反馈,您可以跟踪,根据反馈,解决方法是使用证书认证。

另一方面,您可以从 here 查看该任务的源代码。