Azure Budget Monitoring using Tags and Dashboards

Azure Spring Clean March 2021 Contribution

Subscribe to my newsletter and never miss my upcoming articles

Listen to this article

Special thanks to Joe and Thomas for arranging the Azure Spring Clean event and allowing me to contribute along with many great content creators.

When it comes to working with multiple teams and departments, monitoring costs can become an overhead. Ways to conquer this is by applying tags on resources to identify their relationship. This post will walk you through the steps in creating a tag, creating a budget to monitor costs based on resources that have a specific tag and add these budgets to a dashboard to centralise monitoring.

Create a Tag

  1. Go into the resource or resource group you want to tag;

  2. Select Tags in the left side bar; 1.png

  3. Set your tag Name and Value, in my example we will use the following tags 2.png
  4. Click Apply to save the changes.

Note: you may need to wait a period of time before continuing to the next step as Tags do not appear in the filter list immediately. If you have an existing Tag, you should proceed with the next steps.

Create a Budget using Tags

  1. Within the Subscription or within Resource Group where you created your tags, select Budgets from within the side menu under the heading Cost Management; 3.png
  2. Select Add from within the window; 4.png
  3. The Scope option should be specified based on where you launched the budget option from. If you wish to change the scope, then select Change Scope;

  4. Next to the filter option select Add filter and select Tags. Within the first drop-down option that appears, select the Tag name you want to use and in the second drop-down the value you want to monitor; 5.png

  5. Complete the remaining fields based on your preference, this is what I used for this example: 6.png

    Select the Next button once the fields are filled in;

  6. This section is about setting alerts. Here is an example of what I've set (make sure you set an alert recipient if you do not have an Action group set): 7.png Once you are happy with the settings configured, select Create.

How to add the Budget to a Dashboard

Now you are ready to add the newly created Budget to a dashboard

  1. Within the Budget blade (where you would end up after the above section) you should be able to see your budget listed. Select the three dotted icon at the end of the row and select Pin to dashboard; 8.png
  2. Now you are presented with two options, to use an Existing or Create new dashboard. If you have a dashboard already select Existing but if not, select Create New and give it a name. I have already created my dashboard in advance so I will be selecting the Existing option, selecting the dashboard I need from the drop-down and then clicking Create once done. 9.png

Once all steps are followed, you’ll have your first budget monitor within your dashboard based on resources that are tagged. You can repeat these steps to create a full dashboard of budget monitoring based on tags.

10.png

Want more Azure Spring Clean Content?

azurespringcleanfollow.jpg

Interested in reading more such articles from James Cook?

Support the author by donating an amount of your choice.

Recent sponsors

Comments (2)

Parv Gupta's photo

Great stuff James Cook, adding the budget to the dashboard is an awesome tip.

PS: I also have a tutorial on Azure Cost Management coming soon on my blog.

James Cook's photo

Thanks Parv Gupta for the comment. Will have to checkout your post once its published