Hello and welcome back to Cyber Aires. Microsoft Azure Administrator A Z 103 course. This is well, Carlson coming to you with Episode 15 controlling costs.
In today's episode, we're gonna discuss Cem built in ways and azure to help us minimize unused resource is
and we're also going to discuss some ways that you can help watch and alert on spending to make sure you're not completely overrunning your budget,
jumping right back into portal as usual, we're actually going to take a detour a little bit, and we're gonna click into the adviser. Late
Advisor is going to be a tool that automatically helps you monitor and manage four key areas that they're gonna obviously be here on screen. And they pertain to high availability, security, performance and cost. Now, in our
discussion today, we're gonna primarily be concerned about as your advisor helping us manage and maintain costs.
As we can see here for my demo environment. The Azure Advisor recommendations are really very simple. These recommendations were going to change based on what resources you have deployed to help you, Taylor and tool your environment to maximize its functionality
as we get going here What are some of the ways we can functionally minimize costs in azure? Well, some of the biggest ones are to control costs as it relates to virtual machines. And some ways we can do that seem pretty straightforward. But sometimes we may not think about all of these, and the first one's gonna be turn it off when not in use.
If you have a virtual machine that's not being used in the evenings,
simply turn it off and save money. Now you won't be charged for the computer or the memory or no ingress egress. At that point, either right? You will still be charged for the storage. But relatively speaking, storage is the more affordable piece of the entire virtual machine package.
Another really powerful thing you can do, and this relates to our armed template. Discussion about our development environment is you can simply delete be EMS that are not in use.
There's no need to leave a 30 resource development environment up and running over the weekend when nobody's at the office working in development,
you can just turn those off, but again, we still have all the storage associated with those. Resource is to pay for it. If you really want to minimize costs, simply delete it completely when you're not using it and spin it back up when you're ready to use it again.
The last thing that you could do with the EMS is make sure that they're right sized, right. We don't want Paul from the development team thinking that he needs to x the resource. Is that what he really does? Because the applications simply not performing the way that he wants
as your advisors gonna watch some of those things for us and the way that as your advisor works, is that it's going to watch for 14 days and within that 14 days, if four or more days in a row CPU usage is 5% or less and network usage is seven megabytes, or at last
it's going to start giving us recommendations here under costs is to what we can do
to minimize those costs.
Now you can configure how Azure is looking at the CPU portion of its cost recommendation. By coming here to configuration
and clicking on rules,
I can click my free trial
select edit, and it gives me a couple simple options of what CPU threshold do I want to look for over that 14 day period
5 10 15 or 20 completely at your discretion, we're gonna leave that 5% them
now. If I had some recommendations for from Azure Advisor about minimizing costs, I could click on C list of recommendations or cost over here, and it would pull up the detail of those recommendations of steps I could take to help minimize costs.
There are a couple of other things in addition to virtual machines that Azure Advisor looks for to help Mac to help suggest some cost savings.
And the first of those is gonna be express route circuits. We'll talk a little bit more about express routes in the networking section of the course, but if you're expressed around, circuit has ultimately not been in a provision status for the last 30 days, as your advisor will recommend some steps to minimize that cost.
Measure Advisor also looks for a network gateways that have been idle for more than 90 days and suggest some cost saving metrics there as well.
Now that we've talked about how to use as your monitor to be proactive in some ways about our spending. How do we set budgeting and alerts to make sure that we don't overrun our expenditures and azure?
And the answer. That question is here in the cost management and building blade. There are a number of things here that you can use to help monitor and manage your spending within Azure. The ones we're gonna call out today are
here within the cost management Blake.
Now I can look at my cost analysis, which is a great way to report at Hawk On where my spending is that in my azure environment, you can see that so far I've spent a dollar in 80 cents this month, and I'm projected to spend a whopping $7.91 before this chart expires on July 31st.
Now, I can also see that my spending expenditures have gone flat because I've powered down soon be ems as well.
I can see what service's are using the bulk of the spin, and for me, so far, primarily that storage,
I can see what locations that expenditure is at, and then what resource groups are my primary expenses.
If I want to click through one of these resource is it will provide me a little more information about that particular service group storage, where that expenses that
you can also come up here and sort these reports a number of different ways and filter them as well. So cost analysis is a pretty powerful way to get an idea of where you're spending is at. And if it's in line with where you expect that it should be.
You can export these reports as CSP or Excel to pass off to finance. You can also, through the magic of role based access control, which we'll talk about in future episodes.
Give the financial folks access to these particular parts of the system and not necessarily all of the rest.
Another way that we can manage costs here in Azure is through the use of budgets, and this should be pretty self explanatory. I don't currently have any budget set on my free trial subscription. Remember, scope, pretrial pay attention to scope.
I can go ahead and click on add,
and I can create a budget. Now I don't care for a budget amount of $1000. Let's say my monthly budget amount is $100 I want to be notified when I get to
and we're going to use
and email action group that we set up in a previous episode.
I also want to be notified. When I get to 75% of that,
we're gonna use the same email group
and then I want to be notified again. When I get to 95% of that,
I don't wanna be sent in email.
I can go ahead and add recipients here, but I don't need to do that because these action groups already have recipients involved.
As with all things in Azure having to do with action groups and notifications,
what this ultimately fires off is alerts. And I can come right up here to cost alerts and see which of those have been fired off in relation to my budget right now, Thankfully, I'm not overrunning budget at all, so I'm all clear here.
We did talk about as your recommendation as your advisor recommendations as well. So here's another way to get to that. And what Microsoft is trying to do here is just coalesce all the cost management tools in tow. One place, but we can also get to adviser here as well. Now
cloud in is something that you're going to possibly see, but this is going to be a legacy tool at this point.
This was an acquisition that Microsoft made a good while back now, and they ultimately began rolling the cloud in solution into the azure ecosystem at large.
And that wraps up today's episode about controlling costs here in Azure, both proactively by using azure adviser and also using budgets to create alerts on fire. Those off tow us when thresholds have been eclipsed.
Coming up next, we're going to talk about role based access control and azure and how fine Groom rained, that is, and how many roles Microsoft already has set up.
And we'll talk briefly about how you have to go about setting up a custom role in a measure as well.
Thanks for joining me today, and I'm looking forward to the next video together