首页 > 解决方案 > 使用 PS 连接 Azure:请尝试使用不同的凭据或不同的订阅 ID 登录

问题描述

1) 我使用我的用户帐户 john.smith@mycompany.com 在子 ID“111111111111111111111111111”打开 Azure 门户。作为贡献者,我可以成功创建新资源。

2)我运行 Az 命令来创建资源并与以下连接。

Connect-AzAccount -Subscription "111111111111111111111111111"

错误:

Connect-AzAccount : The provided account john.smith@mycompany.com does not have access to 
subscription ID "111111111111111111111111111". Please try logging in with different 
credentials or a different subscription ID.

有什么问题?

标签: azureazure-powershell

解决方案


如果您还没有弄清楚,请尝试以下链接,它可能会对您有所帮助

Connect-AzAccount - 如何避免 azure 设备身份验证?


推荐阅读