Need to get budget allocated for all my subscription and management group in Azure u

Copper Contributor

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-versio...

 

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

Hello @Srini1987,

Did you look into Get-AzureRmConsumptionBudget cmdlet? It lists all budgets in the subscription or resource group. 

 

Hope that helps.

 

Thanks for your update..How to achieve for multiple subscription

Hello @Srini1987,

One of the options would be to get all subscriptions and then loop though them and get consumption budgets.

 

Hope that helps.