运行 Get-AzManagementGroup PowerShell 命令时出错
error when running Get-AzManagementGroup PowerShell Command
我是全局管理员,当我 运行 命令 Get-AzManagementGroup 我收到以下错误:
Get-AzManagementGroup : The client 'live.com#kellygarcia9@yahoo.co.uk'
with object id 'bd24ab44-e034-439e-8a02-756d1e3557a3' does not have
authorization to perform action
'Microsoft.Management/managementGroups/read' over scope
'/providers/Microsoft.Management' or the scope is invalid. If access
was recently granted, please refresh your credentials. At line:1
char:1
+ Get-AzManagementGroup
+ ~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : CloseError: (:) [Get-AzManagementGroup], CloudException
+ FullyQualifiedErrorId : Microsoft.Azure.Commands.Resources.ManagementGroups.GetAzureRmManagementGroup
该错误清楚地表明您没有执行该操作的权限。您需要使用有权执行此操作的帐户授予自己(或请他人授予您这些权限)。
这是您需要的特定权限:Microsoft.Management/managementGroups/read
您必须获得用户访问管理员角色才能管理管理组
我是全局管理员,当我 运行 命令 Get-AzManagementGroup 我收到以下错误:
Get-AzManagementGroup : The client 'live.com#kellygarcia9@yahoo.co.uk' with object id 'bd24ab44-e034-439e-8a02-756d1e3557a3' does not have authorization to perform action 'Microsoft.Management/managementGroups/read' over scope '/providers/Microsoft.Management' or the scope is invalid. If access was recently granted, please refresh your credentials. At line:1 char:1 + Get-AzManagementGroup + ~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : CloseError: (:) [Get-AzManagementGroup], CloudException + FullyQualifiedErrorId : Microsoft.Azure.Commands.Resources.ManagementGroups.GetAzureRmManagementGroup
该错误清楚地表明您没有执行该操作的权限。您需要使用有权执行此操作的帐户授予自己(或请他人授予您这些权限)。
这是您需要的特定权限:Microsoft.Management/managementGroups/read
您必须获得用户访问管理员角色才能管理管理组