我有一个Visual Studio Team Services构建定义,可以将Asp.Net MVC应用程序部署到Azure网站。我使用向导创建了构建定义,因此它是非常原始的实现。
大多数构建都进行得很好。“获取源代码”,“构建解决方案”,“测试程序集”任务全部通过。但是“ Azure部署”的任务失败了,在我看来,PowerShell凭据似乎有问题。
错误统计信息:
AADSTS50034: To sign into this application the account must be added to the mydomain.org directory.
由于这是在云中运行的,因此我不知道它尝试使用什么帐户,因此我正在寻找一些方法来解决这一问题。
这是Azure部署任务的输出。
******************************************************************************
Starting task: Azure Deployment: http://superpoolsquares.azurewebsites.net
******************************************************************************
Executing the powershell script: C:\LR\MMS\Services\Mms\TaskAgentProvisioner\Tools\agents\default\tasks\AzureWebPowerShellDeployment\1.0.23\Publish-AzureWebDeployment.ps1
Importing Azure Powershell module.
Importing AzureRM Powershell module.
AzurePSCmdletsVersion= 1.0.0
Get-ServiceEndpoint -Name edb1710a-25b3-4037-93b0-58c00f83c038 -Context Microsoft.TeamFoundation.DistributedTask.Agent.Worker.Common.TaskContext
Username= ********
azureSubscriptionId= b4d2fa61-92ff-494a-9ff1-d1362895fc78
azureSubscriptionName= Visual Studio Professional with MSDN
Add-AzureAccount -Credential $psCredential
AADSTS50034: To sign into this application the account must be added to the mydomain.org directory.
Trace ID: 2cb051b9-6e76-4789-8a5d-e95a9486b731
Correlation ID: 22162659-23fa-4858-b957-9ccbf120654d
Timestamp: 2016-02-10 00:19:27Z: The remote server returned an error: (400) Bad Request.
Add-AzureRMAccount -Credential $psCredential
AADSTS50034: To sign into this application the account must be added to the mydomain.org directory.
Trace ID: ed10284e-87b6-4d45-8bd3-9ed1b25f4498
Correlation ID: 88960dea-0434-4eba-9f17-e4d6ceba1a41
Timestamp: 2016-02-10 00:20:21Z: The remote server returned an error: (400) Bad Request.
There was an error with the Azure credentials used for deployment.
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句