Skip to content

TechDirectArchive

Hands-on IT, Cloud, Security, Veeam & DevOps

  • Home
  • About
  • Advertise With US
  • Reviews
  • Contact
  • Toggle search form

Cost Management in Azure Using Cost Analysis Tool

Posted on 27/09/202129/08/2026 Raphael Gab-Momoh By Raphael Gab-Momoh 1 Comment on Cost Management in Azure Using Cost Analysis Tool
  1. Home
  2. AWS/Azure/OpenShift
  3. Cost Management in Azure Using Cost Analysis Tool
azure-cost-analysis

Ensuring our applications and system are reliable is one way to promote customer satisfaction. What’s more, consistent speed and efficiency will make your customers come back for more. Please see How to use container insights to get the full benefits of Azure Monitor for Azure Kubernetes workload, and how to create a static pod in Kubernetes with demos that can help you become a better Kubernetes administrator.

At a time when there are so many other options for a customer to get a particular service. It’s important that we put our house in order as a company that is hoping to make a profit. Furthermore, metrics and logs can help us with useful insight into the cost and performance of our running application.

However, it can become more reliable if we keep a tab on all the metrics that will help us take the necessary action. Want to know more about cost management in Azure? You’re in the right place.

I will walk you through

  • How to use the cost management tool for cost analysis in Azure
  • How to create an Analytics workspace in Azure for our test application techDirectArchiveApp.
  • How to create a diagnostic setting for the App.
  • How to get run/query logs for the application to see what’s happening to our app.

The link to my previous post can be found here: How to install Static pods in Kubernetes, how to create and deliver a report based on system utilization on a Linux-based OS, and how to use container insights to get the full benefits of Azure Monitor for Azure Kubernetes workload.

Cost Analysis

Before we proceed, let’s talk a little bit about the robustness of Azure Monitor, according to Microsoft.

Azure Monitor collect, analyze, and act on telemetry data from your Azure and on-premises environments. Azure Monitor helps you maximize the performance and availability of your applications and proactively identify problems in seconds.

In this article, we will be focusing on some rich features of Azure Monitor and how they can help you be wise with your spending and of course make you become more reliable with your application so that your customer stays with you.

These features are part of Azure Monitor

  • The Cost Management Tool
  • Log Analytics workspace
  • Diagnostics Settings

For the cost and optimization of workload in Azure, customers can take full advantage of the Cost Management features of Azure Monitor.

Azure Cost Management + Billing is a suite of tools provided by Microsoft that help you analyze, manage, and optimize the costs of your workloads. 

Uses of Azure Cost Management + Billing features:

  • Conduct Billing Administrative task such as paying of bills.
  • Manage billing access to cost.
  • Download cost and usage report.
  • Proactively apply data analysis to your cost.
  • Set spending threshold.
  • Identify opportunities for workload changes that can optimise your spending.

Analyzing Cost Using the Cost Management Tool

Our next point of action is how to review the cost of your workload in cost analysis. Thus, you can do this from the cost management tool in Azure. Then, check how to customize the view, and lastly how to download our cost reports.

Cost Management in Azure -final-scope
Fig1. Cost Management tool

So, to locate the cost management and billing tool, you can search for it on the search bar or from Azure monitor. The Cost Analysis tool is on the left-hand side of the tool in the blue highlight. Hence, to be able to drill down on our cost elements, we need to check the scope.

A scope can be defined at four levels in Azure: management group, subscription, resource group, and resource.
Cost Management in Azure -scope1
Fig 2. Scope in Cost Management

In Fig 2 above, we selected a scope that is at the resource group level, so all our spending at that level is what we want to see and if possible take action on.

cost-analysis-cost-accumulated-cost-page
Fig 3. Cost Analysis

From the cost analysis section of the cost management tool, we can see the accumulated cost, actual cost, forecasted cost and with these, we will be able to make an intelligent cost decision of our cloud expenses.

It’s also very important to note that we can point out our cost by views

customised-view
Fig 4. Views

If we are to view by cost by resource, a cost analysis will show us the exact resource that made our bill go up or down so that we can take the appropriate action.

view2
Fig 6. View by Resource

Therefore, we can choose to download any of the cost views as JPG, Excel, or CSV as shown in the red highlight below.

Cost Management in Azure -downloadxxx-1024x294-1

Creating a Log Analytics workspace for Cost Management in Azure

A Log Analytics workspace is a unique environment for Azure Monitor log data. Each workspace has its own data repository and configuration, and data sources and solutions are configured to store their data in a particular workspace.

Collects Data from:
- Azure resources in your subscription
- On-premises computers monitored by System Center Operations Manager
- Device collections from Configuration Manager
- Diagnostics or log data from Azure storage

By default when we create an App we will be given the option to enable application insight and the logs from those insights will need a workspace. Thus, if we don’t have a workspace created for our App, Azure will create one by default. But as a responsible cloud practitioner, it’s good to create one

Cost Management in Azure -default-workspace

For me, I would normally just type log analytics workspace in the search bar and click to begin creation but it’s usually found in the Azure services section of the portal.

created1
Fig 8. Application Insight

Since the log Analytics workspace name techDirectArcive has been created, it will be good to let the logs from Application Insight for the App techDirectArchiveApp be placed in our newly created workspace as shown below

log-analytics-workspace
Fig9. log Analytics Workspace Applied

Diagnostics Settings

While we discussed cost analysis and cost management tool, let’s describe the diagnostics settings. Since, we have our app techDirectArchiveApp sending logs to our workspace, now it’s time to create a diagnostic setting for the app.

So, to create this we check from the monitor section of our workspace or better yet, we can just go to Azure Monitor and check the settings section just as shown below

settings
Fig 10. Diagnostic Logs

When we click on the settings, a list of apps will come up for us to activate or add diagnostic settings upon. We will select our newly created techdirectArchiveApp that was sent to the workspace that we created

viewd
Fig 11. Diagnostic Log settings for an app

we will select and add diagnostics settings to the app

apply-diagnostics
Fig 12. Add Diagnostic Settings

We applied all the categories of logs we want to the settings and requested them to be sent to our created workspace. We named the settings app_logs

settings-1
Fig 13. App_logs

Log Query

Log query is crucial to analyzing cost in Azure. We can choose to start from the Azure monitor page but preferably from our created workspace, check for the section with the title logs. It will give us an option that is as shown below

Log-run
Fig 14. Log Query

lets hit the run button on the response time trend

scopelog
Fig 15. Scope in Query

We still need to do a scope as we have other options, the scope will help us narrow down our search on the app we are interested in getting metrics from. In this case, it’s techDirectApp that is in the techDirectArchive log analytics workspace.

If we remember correctly we decided to run a query for response time trend. The result is as shown below. If you followed along, go get a cold glass of juice because the mission has been accomplished as seen below

mission-accomplished
Fig 16. Time Response Trend

In Summary, knowing how to use cost analysis provided with the Cost management tool of the Azure portal can help us make smart decisions about our cloud spend. Also in order to make our app more reliable, it is important that we can query logs and check what is happening to our app at each point in time. Log Analytics workspace and diagnostic settings can help us with all the metrics we need to query our app logs.

If you have any questions, leave us a comment and we will answer it. For now, I will see you in the Cloud.

Thank you for reading this post. Kindly share it with others.

  • Share on X (Opens in new window) X
  • Share on Reddit (Opens in new window) Reddit
  • Share on LinkedIn (Opens in new window) LinkedIn
  • Share on Facebook (Opens in new window) Facebook
  • Share on Pinterest (Opens in new window) Pinterest
  • Share on Tumblr (Opens in new window) Tumblr
  • Share on Telegram (Opens in new window) Telegram
  • Share on WhatsApp (Opens in new window) WhatsApp
  • Share on Mastodon (Opens in new window) Mastodon
  • Share on Bluesky (Opens in new window) Bluesky
AWS/Azure/OpenShift Tags:Azure Monitor, Azure resources

Post navigation

Previous Post: Openstack Deployment with Devstack
Next Post: Install and Register GitLab Runner on Windows

Related Posts

  • Screenshot 2020 05 13 at 23.07.56
    ENA Driver on Amazon EC2: Easy Installation Guide AWS/Azure/OpenShift
  • How to backup Azure VIM 3
    How to backup Azure VM with VM Settings AWS/Azure/OpenShift
  • Webp.net resizeimage 5
    How to Improve Website Response Using Traffic Manager AWS/Azure/OpenShift
  • AWS Principals
    MFA on Root Account: Create a User on AWS and Register MFA AWS/Azure/OpenShift
  • Route53AWS
    Set up and configure Route 53 for your Domain in AWS AWS/Azure/OpenShift
  • VBAWS comprehensive guide
    Deep Dive into Protecting AWS EC2, RDS Instances and VPC AWS/Azure/OpenShift

More Related Articles

image 54 How to enable Amazon S3 default bucket encryption using S3 Console AWS/Azure/OpenShift
How to Set up a Single Site to Site VPN Connection on AWS Setup a Site-to-Site VPN Connection on AWS AWS/Azure/OpenShift
react 1 How to deploy a React Application to AWS S3 AWS/Azure/OpenShift
images 5 3 How to uninstall AWS CLI in Windows AWS/Azure/OpenShift
mfa scaled Microsoft Azure Multi-Factor Authentication (MFA) AWS/Azure/OpenShift
AzureCloudShell Provisioning Azure Resources using Azure Az PowerShell Cmdlet from Cloud Shell AWS/Azure/OpenShift

Comment (1) on “Cost Management in Azure Using Cost Analysis Tool”

  1. Avatar photo Anon says:
    18/01/2023 at 11:42 AM

    The title of the page implies that you write a LA query (KQL) to analyse the cost of the resource. As you know, that’s not the case. This is a misleading post.

    Log in to Reply

Leave a Reply Cancel reply

You must be logged in to post a comment.

Microsoft MVP

vexpert-badge-stars-5

Virtual Background

VEEAMLEGEND

Categories

Top 30 Sysadmin blog

veeaam100

Veeam Vanguard

  • Windows 11 Taskmanager
    Create Task Manager Shortcuts: How to add access, pin the Task Manager on Windows 11 Windows
  • Linux basic commands: Master the ‘ifconfig’ Utility Linux
  • RRcovery1
    Your Hypervisor Exit Plan Should Be a Recovery Runbook Backup
  • image 19
    Download your MySQL database from Azure to a local PC with MySQL Workbench AWS/Azure/OpenShift
  • goland
    How to install Golang on a Linux System Linux
  • Object First Appliance unboxing
    Object First OOTBI Appliance Unboxing and Quick Setup Backup
  • fallocate
    What the Fallocate command does Linux
  • insufficientaccessright 1
    Azure AD Connect Permission issue: Error 8344 insufficient access rights to perform the operation AWS/Azure/OpenShift

Subscribe to Blog via Email

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

Join 1,747 other subscribers
  • RSS - Posts
  • RSS - Comments
  • About
  • Authors
  • Write for us
  • Contact
  • Advertise with us
  • General Terms and Conditions
  • Privacy policy
  • Feedly
  • Telegram
  • Youtube
  • Facebook
  • Instagram
  • LinkedIn
  • Tumblr
  • Pinterest
  • Twitter
  • mastodon
  • Bsky

Tags

Active Directory Azure Bitlocker Microsoft Windows PowerShell WDS Windows 10 Windows 11 Windows Deployment Services Windows Server 2016

Copyright © 2026 TechDirectArchive

Loading Comments...

You must be logged in to post a comment.