我正在尝试使用az login
从cli登录到azure。根据azure文档,如果未安装edge browser
,它会打开一个新选项卡,要求在默认浏览器上登录。但是,我想打开一个特定的配置文件,因为我使用不同的配置文件为不同的用户帐户。
例如:如果我使用az login
,它会打开默认配置文件的默认浏览器
如果我使用azAd login
(假设我将azAd
创建为az with profile name for default browser
的alias
,它会打开带有传入的配置文件名称的默认浏览器
1条答案
按热度按时间kgsdhlau1#
我设法用一种巧妙的方法做了这件事。如果有更好的方法,我会更新它。但现在,这就是我所做的