Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
DamaniN opened this issue Jan 7, 2025 · 0 comments
Open

Comments

@DamaniN
Copy link
Contributor

DamaniN commented Jan 7, 2025

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant