Skip to content

Using management groups with Get-AzureSizingInfo.ps1 doesn't work #87

Description

@DamaniN

When the ManagementGroups option for Get-AzureSizingInfo.ps1 is specified with a group name the following error occurs:

PS> ./Get-AzureSizingInfo.ps1 -ManagementGroups "Tenant Root Group" 

Search-AzGraph: /home/damani/Get-AzureSizingInfo.ps1:429
Line |
 429 |  … ptionName $(Search-AzGraph -Query "ResourceContainers | where type =~ …
     |                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     | {   "error": {     "code": "BadRequest",     "message": "Please provide below info when asking for support: timestamp = 2025-01-07T18:19:24.8806098Z,
     | correlationId = 393a636d-4dd5-4004-a74f-a03419e82084.",     "details": [       {         "code": "ManagementGroupsContainInvalidIds",         "message":
     | "The provided management groups must be valid. Given: 'Tenant Root Group'."       }     ]   } }

In some conditions the script will continue and scan all subscriptions.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions