【发布时间】:2022-12-23 18:59:19
【问题描述】:
我们有一个天蓝色的租户。 我们开了一个新的,将我们的用户传递给新租户,然后将我们的用户作为客人添加到旧租户。 通过意味着我们从第一个租户中删除了我们的用户,然后我们将域迁移到新租户并在新租户中创建了具有相同属性的用户。
从那时起,每次我们尝试使用带有推荐 Connect-azaccount -TenantId 的 powershell 连接到 azure 时,我们都会收到以下错误:
Unable to acquire token for tenant '***' with error 'SharedTokenCacheCredential authentication unavailable. No account matching the specified username: *** tenantId: *** was found in the cache.'
有人知道如何解决这个问题吗?
谢谢你
我们已经尝试了我们在网上找到的所有东西。 我们尝试 clear-azcontext,从我们的机器中删除证书,删除 powershell 并重新安装等......
【问题讨论】:
-
客户需要新租户的帐户。您正在使用 Windows 身份验证进行连接,因此客户端需要一个新租户帐户。应该有一个组策略,其中用户在所有机器上都有网络帐户。您可能缺少新域的组策略。
标签: azure powershell authentication scripting azure-active-directory