我想将构建部署到Azure WebApp。将WebApp部署到Azure
在Azure中(http://manage.windowsazure.com)我将该Web应用程序链接到我的Visual Studio Online(VSTS)帐户。
在VSTS中,我创建了一个包含单个任务(Azure Web App Deployment)的发布定义;该任务被配置为使用管理模块中定义的端点。服务端点配置为使用凭据。该凭证正在使用Microsoft帐户。
释放与下面的错误而失败:
2015-12-02T18:17:35.4422685Z AzurePSCmdletsVersion= 0.9.8.1
2015-12-02T18:17:35.5692677Z Get-ServiceEndpoint -Name foo -Context Microsoft.TeamFoundation.DistributedTask.Agent.Worker.Common.TaskContext
2015-12-02T18:19:07.5877546Z Username= ********
2015-12-02T18:19:07.5887893Z azureSubscriptionId= foo-foo-foo-foo-foo
2015-12-02T18:19:07.5907904Z azureSubscriptionName= Pay-As-You-Go
2015-12-02T18:19:07.6278127Z Add-AzureAccount -Credential $psCredential
2015-12-02T18:19:09.7755541Z ##[error]-Credential parameter can only be used with Organization ID credentials. For more information, please refer to http://go.microsoft.com/fwlink/?linkid=331007&clcid=0x409 for more information about the difference between an organizational account and a Microsoft account.
2015-12-02T18:19:09.9664413Z ##[error]There was an error with the Azure credentials used for deployment.
我如何设置发布使用Microsoft帐户凭据Azure的?
只有在签入代码时才会出现此错误?或者,如果您手动尝试部署到该端点,您还会看到它吗?此外,您是否能够使用相同的帐户在过去部署网络应用程序(甚至是一个空白示例应用程序)? –
这是我第一次尝试从VSTS进行部署。我只使用该版本的手动版本。 – ds19