Azure Advisor Cost Recommendations
Monitoring Cost Consumption
Cost Management Report
The course is part of these learning pathsSee 4 more
This course looks into how to capture log data and metrics from Azure services and feed this information into different locations for processing. We take a look at diagnostic logging, which can help to troubleshoot services and create queries and alerts based on that data. We also look into Azure Adviser, cost consumption reporting, and how we can baseline resources. This is an introduction to these advanced areas of Azure services.
- Understand how to use and configure diagnostic logging for Azure services
- Gain an understanding of Azure Monitor and how to create and manage alerts
- Review cost consumption reporting and how to create scheduled reports
- Investigate different methods for baselining resources
- People who want to become Azure cloud architects
- People preparing for Microsoft’s AZ-100 or AZ-300 exam
- General knowledge of Azure services
For more MS Azure-related training content, visit our Microsoft Azure Training Library.
Let's start the demo. For this demo, I'd like you to note that I'm using not the portal.azure.com. I'm actually gonna be using the preview portal as this will likely be in production in the near future. So that is a slight difference between what you may see.
Here, we have the cost analysis. So we can get to here from the dashboard, and we go down to Cost Management and Billing. Got a couple of subscriptions here. We'll go onto the one that's got some charges in it, and we can see cost by resource. So let's jump into cost analysis, and we can see the charts have loaded. So we have the ability to choose different reports, different ways we view costs. There's accumulated cost or amortized cost.
So the first thing here is amortized cost is used over a period of time. So if you have Windows licenses or one-off purchases, you can have that spread over a longer month or the one-off charge. We could also see it in US dollars if that's helpful. We also have the ability to choose different views. So these are the accumulated costs.
So we could also look at the cost by resource, and we can see the individual resources and the meters that they're spending. So here it's a premium SSD, and that's the meter, and it's cost that much. And that's over this time period. So we can also change that to be last month, last seven days, there's a bunch of predefined ranges here, and you can also choose your own custom dates. So if we do this quarter, still very low charges here.
If I can also choose now the cost by service, we can see we've got it by months, and we have these charts here that we can help drill down into. So, for location or resource group, you can choose to group the data differently. So we could say, let's group by resource rather than by resource group. Hence, now we have a different summary down here.
So we can see our most expensive resource group here is $74. And you can also click on these charts to filter down the graphs. So, when we look at this over the month, we'll see, now there's where our charges come, and this is basically one resource is taking up all our charge. There's also the ability to choose the granularity. So the granularity, again, could be daily. How detailed do you want the data? Microsoft will summarize some of this data after a period of time, but the reporting still has an aggregate, which allows you to report on it.
So we can see here, these are obviously the end of the month where it rolls over, but we've now gone to daily granularity. And this is an interesting one. We can see it over time. So we can see this one stopped running and maintained its cost, this one's run the same over the whole time, and here was a new charge that started, and it's been running consistently since. Again, if we click on that one result, we can drill into it. So we can see this is a disc, it's in US West, and it's storage. We can also choose to save these views, and you can also make them private, so it's useful for enterprise management. You can share these views with people.
The other option here under Settings is we can set up an export. The first thing we're gonna need to do is actually register the resource provider for that. So I've got another page here, which has my subscription, and if I go into the subscription, we can see the resource providers down here, and we can see cost, management, exports. In this case, it's already registered.
So if I go back to the schedule export, choose a name, sample, we're gonna choose weekly cost for the last seven days, and the storage account's gonna be me, cost, export. Next and Create. And that says there, your first export will be available in four hours. So there's the export sample data. Run now. Successfully queued. So we can create different jobs to export data. We've also seen the different ways we can drill down into it. We've looked at granularity. You can also choose different visualizations to help you understand how your data is being displayed. I can also view it on a table, which you can download and export. So here, we can see download to Excel, CSV. If we download to Excel, we can see that cost file's come down now, and our export data isn't too different, and here's our data.
So we can see the charges, the billing period, and if we chose by resource, we'd also have that sort of data inside this table. We also have the ability under the Settings tab to connect AWS. So if we click on that, we can add a connector. This will add AWS properties, and allow you to review those costs inside the Azure portal as well. Gonna go back to the cost management, and into here again, and look at budgets as the final thing.
So the final thing we're gonna do is create a budget. If we click Add, we get the choice to change the scope to a different subscription. We're gonna add ourselves $100 budget. We can choose the expiration and start of this budget. We can see there's a suggested amount here. Now, you have to wait for the cost data to appear, and we can see where this budget is. So previously we were spending over 120, this month was 180, and it's dropped over since then. So I don't wanna spend that again. Just wanna make sure that we don't catch that cost.
So if we go Next, we should see the percent of budget. So I wanna know when I'm at 80%, and that's $80, and I wanna send an email to an action group, so I've already created this earlier, but you can manage that through this link. And then, I also wanna know when I'm at 100% of that budget. You could send an SMS or trigger an action, different action as well. It's saying to also make sure you add this to your spam email, just in case you miss the emails. We're gonna click Create, and that's our budget. Budget 100 successfully created. And we can see if we've got a progress through that budget at the time.
This brings us to the end of the demo. I hope you found this useful.
About the Author
Matthew Quickenden is a motivated Infrastructure Consultant with over 20 years of industry experience supporting Microsoft systems and other Microsoft products and solutions. He works as a technical delivery lead managing resources, understanding and translating customer requirements and expectations into architecture, and building technical solutions. In recent years, Matthew has been focused on helping businesses consume and utilize cloud technologies with a focus on leveraging automation to rapidly deploy and manage cloud resources at scale.