Azure Resource Cost Estimation and Management

In this article, we will be discussing about Azure Resource Cost Estimation and Management.

 

Introduction to Azure Cost Estimation and Analysis

Microsoft Azure has a ton of features and resources to use, which enable you to do just about anything from the computational aspect. However, since you pay for the usage of all these resources, you need to have an efficient cost estimation and monitoring policy in place, in order not to get billed with costs you didn’t take into consideration when enabling those services/resources.

To this end, Microsoft provides a number of tools that can help you with that.

I would categorize these sets of tools using two categories:

  • Cost Estimation Before Resource Usage
  • Cost Analysis While Using Resources

 

Cost Estimation Before Resource Usage

The main tool that can help with estimating the cost (i.e. hourly cost, monthly cost, etc.) of a new resource to be added in your Azure account, is Azure Pricing Calculator.

 


Learn more about Azure SQL Database – Enroll to our Online Course!

Enroll to our online course on Udemy titled “Introduction to Azure SQL Database for Beginners” and get lifetime access to high-quality lessons and hands-on guides about all the aspects of Azure SQL Database.

Introduction to Azure SQL Database (Online Course - Lifetime Access)
(Lifetime Access/ Live Demos / Downloadable Resources and more!)

Learn More


What is Azure Pricing Calculator?

Azure Pricing calculator is an interactive web application, that lets you select Azure products and resources and add them to a virtual “basket”, and along the selecting various options and types for these products, the price is estimated automatically. Moreover, regarding the frequency of the estimated price, you can select to be on an hourly basis, or play with the hours and get for example a monthly estimate (i.e. for 730 hours) or yearly, etc.

Here’s a screenshot of the first screen of Azure Pricing Calculator:

Azure Resource Cost Estimation and Management - SQLNetHub
Figure 1: Azure Pricing Calculator Main Page.

 

Example of Using Azure Pricing Calculator

Let’s see an example with Pricing Calculator. Let’s say for example that I’m interested in creating a new Virtual Machine on Azure, that besides the OS, it will also have a SQL Server Enterprise Edition  instance.

So, what do I do?

I go to Azure Pricing Calculator, click on “Virtual Machines”, and then scroll down. Now I see in the “Your Estimate” box, the monthly usage cost estimation for a Virtual Machine.

The next step, is to choose the various options for my virtual machine. These options are the same options that are used when actually creating the resource in Azure, and they are the options that define the cost.

So, in this example, I chose the below settings for my virtual machine and got the respective monthly estimated cost:

Azure Resource Cost Estimation and Management - SQLNetHub
Figure 2: Virtual Machine Resource Options for Cost Estimation (1/2).

 

Azure Resource Cost Estimation and Management - SQLNetHub
Figure 3: Virtual Machine Resource Options for Cost Estimation (2/2).

 

As you can see, based on my resource options, the estimated monthly cost to use such virtual machine on Azure, would be $1,295.36

 

Cost Analysis While Using Resources

The above example, involved getting a monthly cost estimation about a potential resource usage on Azure, in this case, a virtual machine with SQL Server Enterprise.

If the cost estimation looks good for you, and you decided to proceed with setting up and using the virtual machine (or any other resource on Azure), then you should regularly monitor the cost of usage for these resources.

There are 2 ways to do this.

 

View my Bill (Cost Management + Billing)

The first option is to use “View my bill” from the Azure Portal.

Azure Resource Cost Estimation and Management - SQLNetHub
Figure 4: Azure Portal.

 

Note: I’m using an MSDN subscription for this demo, so the options can be slightly different from other plans.

 

After you click on “View my bill“, you get presented with the “Cost Management + Billing – Invoices” page:

Azure Resource Cost Estimation and Management - SQLNetHub
Figure 5: Azure “Cost Management + Billing – Invoices” page.

 

In my case, since I’m using an MSDN subscription, I clicked on “Subscriptions” and then on my MSDN subscription.

After I click on my MSDN subscription, I get the below page where I can see a pie chart and analysis of my costs by resource for the current billing period.

Azure Resource Cost Estimation and Management - SQLNetHub
Figure 6: Costs by resource.

 


Learn all about MySQL on Azure – Enroll to our Online Course!

Enroll to our online course on Udemy titled “Introduction to Azure Database for MySQL” and get lifetime access to high-quality lessons and hands-on guides about all the aspects of MySQL database service on the Azure cloud platform!

Introduction to Azure Database for MySQL - Online Course
(Lifetime Access, live guides, certificate of completion, downloadable resources and more!)

Enroll with Discount


Then, by clicking on each resource, you can drill down more and see more analytical cost-related information:

Azure Resource Cost Estimation and Management - SQLNetHub
Figure 7: Costs by resource (more analytical view).

 

Azure Resource Cost Estimation and Management - SQLNetHub
Figure 8: Costs by resource (more analytical view).

Depending on your plan, you can also get more cost-related insights via “Cost analysis” and “Usage + charges“, again, in the “Cost Management + Billing” page.

 

Cloud Cost Optimization Using Cloudyn

Another way to analyze and manage the cost of your Azure resources, is by using Cloudyn. Learn more about it here.

 

Concluding Remarks

In this article, we discussed about resource cost estimation and monitoring in Azure. We categorized the tools Microsoft provides regarding cost estimation and monitoring, and studied some examples.

Prior to adding/utilizing any product/resources in Azure, I would recommend first to work with Pricing Calculator in order to estimate the monthly cost. After all, for any new product or resource, proper planning must be taking place, and cost estimation should be part of this planning process.

Moreover, after adding products/resources in your Azure account, you should be monitoring the cost of each resource for your billing period, and plan ahead for the next period, tune your resources, etc.

Microsoft provides a large number of tools for cost estimation and monitoring, and you should definitely make use of these tools.

 

See More – Enroll to the Course!

Learn more about Azure SQL Database and get started fast and easy! Through our online course, you will get lifetime access to a comprehensive set of lectures and live demonstrations that will get you started with Azure SQL Database in no time! The course is regularly updated with additional educational material!

Introduction to Azure SQL Database (Online Course - Lifetime Access)
(Lifetime Access/ Live Demos / Downloadable Resources and more!)

Learn More

 

Featured Online Courses

 

Read Also

 

Check our latest software releases!

Easily generate SQL code snippets with Snippets Generator!

Convert static T-SQL to dynamic and vice versa with Dynamic SQL Generator.

Secure your SQL Server instances with DBA Security Advisor.

Benchmark SQL Server memory-optimized tables with In-Memory OLTP Simulator.

 

Rate this article: 1 Star2 Stars3 Stars4 Stars5 Stars (2 votes, average: 5.00 out of 5)

Loading...

Reference: SQLNetHub.com (https://www.sqlnethub.com)

© SQLNetHub