没有指定默认订阅。使用Select-AzureSubscription -Default< subscriptionName>设置默认订阅 [英] No default subscription has been designated. Use Select-AzureSubscription -Default <subscriptionName> to set the default subscription

查看:118
本文介绍了没有指定默认订阅。使用Select-AzureSubscription -Default< subscriptionName>设置默认订阅的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在TFS上运行需要AD设置的任务。我设法建立所有连接,但由于某种原因未选择TFS上的订阅。

我不确定我必须登录什么帐户,才能设置默认订阅。 - 不推荐使用-Default参数。

I am trying to run a task on TFS which requires AD set up. I managed to set up all connections, but for some reason Subscription on TFS is not selected.
I am not sure to what account do I have to log in, to set default subscription. -Default parameter is deprecated btw.

TFS构建错误:

我试图通过power-shell设置: 

推荐答案

您好Amel S,

感谢您在此发帖。

我对你的问题不是很清楚。对于第二张图片,您运行Select-AzureSubscription命令来设置和清除powershell命令窗口中的当前和默认Azure订阅,它似乎成功。而你的问题是你不能
这是TFS因为你不知道该帐户使用,我是对的吗?如果是这样,您能告诉我您在构建定义中使用的任务以及帐户"ame1"吗?您使用在powershell命令窗口中运行Select-AzureSubscription命令,
此帐户是什么类型的帐户?

Hi Amel S,
Thank you for posting here.
I'm not very clear about your issue. For the second picture you run the Select-AzureSubscription command to sets and clears the current and default Azure subscriptions in powershell command window and it seems that it succeeds. And your question is you can't do this is TFS because you don't know that account to use, am I right? If so, could you please tell me which task you use in your build definition and the account "ame1" you use to run the Select-AzureSubscription command in powershell command window, what kind of account is this account?


这篇关于没有指定默认订阅。使用Select-AzureSubscription -Default< subscriptionName>设置默认订阅的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆