## [error]需要用户交互来验证此用户。请使用登录对话框进行身份验证。在PowerShell中,为Azure Resource Manager cmdlet执行Login-AzureRMAccount,或为服务管理cmdlet执行Add-AzureAccount。 [英] ##[error]User Interaction is required to authenticate this user. Please authenticate using the log in dialog. In PowerShell, execute Login-AzureRMAccount for Azure Resource Manager cmdlets or Add-AzureAccount for service management cmdlets.
问题描述
Hi Team,
## [错误]需要用户互动来验证此用户。请使用登录对话框进行身份验证。在PowerShell中,为Azure Resource Manager cmdlet执行Login-AzureRMAccount,或为服务管理cmdlet执行Add-AzureAccount。
在将我的云服务部署到Azure时,我收到指定的错误VSO。请帮帮我。
I am getting the specified error while deploying my cloud service to Azure via VSO. Please help me on same.
谢谢
推荐答案
我猜您使用的是"Azure云服务部署"。任务,对吗?如果你不这样做请使用它。在那里,您需要提供目标Azure订阅(通过服务端点定义提供)。
I guess you are using the "Azure Cloud Service Deployment" task, correct? If you don't please use it. There you need to provide the target Azure Subscription (which is provided via a service endpoint definition).
因此,您需要在Visual Studio Team Services(Azure)中创建新的服务端点 -
https://msdn.microsoft.com/Library/vs/alm/Release/author-release-definition /了解任务#serviceconnections 功能;.这里有几种身份验证机制。我个人更喜欢"服务原则认证"。因为它很容易设置
并且非常强大(粒度控制)。
So you need to create a new service endpoint in Visual Studio Team Services (Azure) - https://msdn.microsoft.com/Library/vs/alm/Release/author-release-definition/understanding-tasks#serviceconnections . Here you have a couple of authentication mechanisms. I personally prefer "Service Principle Authentication" as it is easy to setup and is quite powerful (granular control).
David Ebbo创建了一篇关于在CI服务器上自动化Azure的博客文章。
http://blog.davidebbo.com/2014/12/azure-service- principal.html
David Ebbo created a great blog article around automating Azure on your CI server. http://blog.davidebbo.com/2014/12/azure-service-principal.html
Best,Oliver
Best,Oliver
这篇关于## [error]需要用户交互来验证此用户。请使用登录对话框进行身份验证。在PowerShell中,为Azure Resource Manager cmdlet执行Login-AzureRMAccount,或为服务管理cmdlet执行Add-AzureAccount。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!