运行Get-AzManagementGroup PowerShell命令时出错

问题描述 投票:0回答:2

我是全局管理员,当我运行命令Get-AzManagementGroup时出现以下错误:

Get-AzManagementGroup:客户端'live.com#[email protected]'对象ID为'bd24ab44-e034-439e-8a02-756d1e3557a3'的对象没有授权采取行动范围内的“ Microsoft.Management/managementGroups/read”'/providers/Microsoft.Management'或范围无效。如果访问已被授予,请刷新您的凭据。在第1行字符数:1+ Get-AzManagementGroup+ ~~~~~~~~~~~~~~~~~~~~~+ CategoryInfo:CloseError :( :) [Get-AzManagementGroup],CloudException+ FullyQualifiedErrorId:Microsoft.Azure.Commands.Resources.ManagementGroups.GetAzureRmManagementGroup

azure azure-powershell azure-rbac
2个回答

0
投票

错误明确表明您没有执行该操作的权限。您需要使用有权执行此操作的帐户授予自己的权限(或要求某人向您授予这些权限)。

这里是您需要的特定权限:Microsoft.Management/managementGroups/read

© www.soinside.com 2019 - 2024. All rights reserved.