Forum Discussion
Need to get budget allocated for all my subscription and management group in Azure u
Hi Team
I'm new to automation world and learning day by days
i've wondering to get the budget allocated for all my subscription and management group in Azure Account.
i am able to achieve using rest api for one subscription using the API below
"GET https://management.azure.com/{scope}/providers/Microsoft.Consumption/budgets/{budgetName}?api-version=2019-10-01"
however my requirement is to get it for all subscription & management group in my Azure account ,Any experts can help me on this which is much appreciate
3 Replies
- AndySvintsIron Contributor
Hello Srini1987,
Did you look into Get-AzureRmConsumptionBudget cmdlet? It lists all budgets in the subscription or resource group.
Hope that helps.
- Srini1987Copper ContributorThanks for your update..How to achieve for multiple subscription
- AndySvintsIron Contributor
Hello Srini1987,
One of the options would be to get all subscriptions and then loop though them and get consumption budgets.
Hope that helps.