为什么我无法在 Azure 门户中访问我的 AAD 应用程序注册,但我可以使用 Azure CLI 查看它?

Why I don't have access to my AAD app registration in Azure Portal, but I can view it using Azure CLI?

我可以在我公司的 AAD 中使用 az ad app create 或使用旧门户 https://apps.dev.microsoft.com/#/appList 注册我的应用程序,我可以使用 az ad app view

对其进行审核

现在在 Azure 门户中我无法查看它。

可以理解,我无法访问 Azure 门户中的 Azure Active Directory 窗格,但即使我将 azure 门户 link 直接复制并粘贴到我的应用程序注册中,它仍然说我没有有权查看它。

为什么?它是 Azure 门户中的错误吗?我需要什么权限才能使用 Azure 门户?

这不是错误,我可以在我这边重现你的问题。您的租户可以在 User settings 中将 Restrict access to Azure AD administration portal 设置为 Yes

如果设置为 Yes,非管理员用户将无法访问 Azure AD 管理门户,但其他客户端(如 PowerShell、CLI)可以使用。

要解决此问题,您有两种选择。

1.Ask 你租户的 Global admin 给你一个 Administrator role,导航到门户中的 Azure Active Directory -> Roles and administrators -> 选择角色,单击 Add assignment -> 添加您的帐户。

2.Ask 您租户的 Global adminRestrict access to Azure AD administration portal 设置设置为 No