Skip to main content

Welcome to a Grasp lesson

Create a free account to keep studying and create your own study path.

Lesson 8

Optimizing Azure Costs with Microsoft Cost Management and Azure Advisor

Recommended resources

Welcome to the final lesson in our foundational module on Azure Governance and Resource Management. In our previous lesson, we dove into the practicalities of monitoring your Azure spending, using Microsoft Cost Management to analyze usage patterns and configuring budgets and alerts to maintain financial control. We established a framework for visibility and proactive governance.

Now, we will build directly on that foundation, shifting our focus from controlling costs to actively optimizing them. This lesson is about turning the data and insights you've gathered into actionable savings. As a future Principal Engineer, your role isn't just to design systems that work, but to design systems that deliver value efficiently. This involves a continuous process of refinement, a concept at the heart of the FinOps discipline, which seeks to maximize the business value of every dollar spent in the cloud.

By the end of this lesson, you will be able to identify concrete cost optimization opportunities using the combined power of Microsoft Cost Management and Azure Advisor, equipping you to make architectural and operational decisions that are both technically sound and financially prudent.

The Mindset of Optimization: It's About Value, Not Just Savings

Before we dive into the tools, it's crucial to adopt the right mindset. Cost optimization is not merely about slashing budgets. In the dynamic world of the cloud, increased spending can be a positive signal, indicating business growth and higher demand for your services. The real goal is to eliminate waste and ensure that your cloud spend is generating maximum value.

This shift in perspective—from pure cost-cutting to value engineering—is the essence of Financial Operations, or FinOps. It's a cultural practice that brings financial accountability to the variable spending model of the cloud. The following video segment by John Savill excellently frames this core idea.

FinOps and Azure! Understanding what FinOps is and why we care.

This video introduces the concept of FinOps. The selected segment explains why the focus should be on the value of the spend, not just the spend itself.

Please watch from the discussion on value. Pay close attention to the questions he poses: Do I know I spent it? Do I know why? Do I know what I got for it? These questions form the basis of a value-driven optimization strategy.


Your Automated Consultant: Azure Advisor

Your primary tool for identifying optimization opportunities is Azure Advisor. Think of it as a personalized cloud consultant that continuously analyzes your Azure configuration and usage telemetry. It provides actionable recommendations across five pillars of the Well-Architected Framework: Reliability, Security, Performance, Operational Excellence, and, most importantly for this lesson, Cost.

Advisor's cost recommendations are your starting point for nearly every optimization effort. They are low-hanging fruit, algorithmically identified and presented with an estimated potential savings. Common recommendations include:

  • Identifying idle or underutilized resources (like VMs or public IPs).
  • Recommending commitment-based discounts for predictable workloads.
  • Suggesting right-sizing opportunities for overprovisioned services.

John Savill's "Azure Cost Optimization Deep Dive" provides a concise overview of Advisor's role.

Azure Cost Optimization Deep Dive

This segment from the deep dive video positions Azure Advisor as a key, ongoing source of optimization recommendations.

Watch the section from the introduction to Azure Advisor. Note his emphasis on reviewing it weekly and the types of recommendations it surfaces, such as right-sizing and identifying unused resources. He also makes a key point about its limitations: it won't give you major architectural guidance, which is where your expertise comes in.


Strategy 1: Rate Optimization with Commitment-Based Discounts

The most significant savings often come from changing how you pay for resources, not the resources themselves. If you have workloads with predictable, steady-state usage (like core production VMs or databases), paying the on-demand, pay-as-you-go rate is inefficient. Instead, you can commit to using those resources for a longer term in exchange for a substantial discount.

Azure offers two primary models for this, which are analogous to AWS's Reserved Instances and Savings Plans:

  1. Azure Reservations: You commit to a specific VM type (or other service) in a specific region for a one- or three-year term. This offers the deepest discounts but is the least flexible. If your workload's requirements change, you may be stuck with an unused reservation (though there are some options for exchange or cancellation with a penalty).
  2. Azure Savings Plans for Compute: You commit to a fixed hourly spend on compute services (e.g., $10/hour) for a one- or three-year term. In return, your usage of a wide range of compute services across the globe is discounted up to that hourly commitment. This model offers much more flexibility than Reservations, as you can change VM families, sizes, and regions without losing the discount.

The following image shows how Azure Advisor's Cost Optimization Workbook visualizes these potential savings, making it easy to see the financial impact of adopting these plans.

The 'Rate optimization' tab in the Azure Advisor Cost Optimization Workbook provides an estimate of potential savings from Azure Reservations and Savings Plans based on your historical usage patterns.

For a deeper architectural understanding of these models and how they interact with other benefits, the following resources are invaluable.

Azure vs. AWS Pricing: 2026 Cloud Cost Comparison | Wiz

This article from Wiz provides a direct comparison of AWS and Azure's discount structures, which will be familiar territory given your background.

Please read the section Comparing the models. Focus on the described trade-offs between the flexibility of AWS Savings Plans (similar to Azure Savings Plans) and the rigidity of Azure Reservations.

Furthermore, you can stack these discounts with other license-based benefits, creating a powerful combination for cost reduction.

Azure Cost Optimization Deep Dive

This segment provides a detailed explanation of how Azure Reservations work and how they can be combined with Azure Hybrid Benefit for maximum savings on Microsoft workloads.

Watch the detailed walkthrough from reservations and hybrid benefit. This covers the mechanics of how the discount is applied hourly and the significant financial advantage of stacking these benefits.


Strategy 2: Usage Optimization by Eliminating Waste

This strategy focuses on ensuring you are only running—and paying for—what you actually need.

  • Right-Sizing Overprovisioned Resources: Engineers often provision larger instances "just in case," leading to significant waste. Azure Advisor is excellent at spotting chronically underutilized VMs, disks, and other services. You can then use the metrics in Azure Monitor to confirm the low utilization (e.g., CPU percentage consistently below 5-10%) and safely resize the resource to a smaller, cheaper SKU.

  • Shutting Down Idle Resources: Non-production environments are often the biggest culprits. A development VM running 24/7 spends over 70% of its cost outside of typical business hours. Implementing auto-shutdown schedules for these resources is a quick and effective win.

  • Finding Orphaned Resources: When you delete a VM, its managed disks and public IP address are often not deleted by default. These "orphaned" resources accrue charges while providing no value. Scripts or regular reviews using Azure Resource Graph can help you hunt these down.

These seemingly small items are the "hidden costs" that can silently inflate your bill.

Azure vs. AWS Pricing: 2026 Cloud Cost Comparison | Wiz

This section of the Wiz article highlights several common, yet often overlooked, sources of waste in cloud environments.

Focus on the points about overprovisioning and idle workloads. These directly relate to right-sizing and eliminating waste.


Strategy 3: Architectural Optimization

As an architect, your biggest leverage for cost optimization comes from making smart design choices upfront.

  • Leverage PaaS and Serverless: Shifting from Infrastructure as a Service (IaaS) to Platform as a Service (PaaS) or Serverless abstracts away the underlying infrastructure. This not only reduces management overhead but also often lowers costs. Instead of paying for a VM to be idle waiting for requests, you pay for the transaction or the execution time. The Azure Well-Architected Framework explicitly calls this out as a key cost optimization principle.

  • Optimize Storage Costs: For object storage, don't keep everything in the most expensive tier. Use Azure Blob Storage access tiers (Hot, Cool, Archive) and define Lifecycle Management policies to automatically move data to cheaper tiers as it ages and is accessed less frequently.

  • Optimize Network Costs: Data egress—traffic leaving an Azure region—is a significant and often unpredictable cost. Architectural patterns that involve large data transfers between regions or out to the public internet should be carefully scrutinized. Using a content delivery network (CDN) like Azure Front Door can reduce egress costs for globally distributed users. Similarly, be mindful of services like NAT Gateway, which charge a per-gigabyte processing fee on top of standard egress charges.

Azure vs. AWS Pricing: 2026 Cloud Cost Comparison | Wiz

Revisit this article, this time focusing on the architectural considerations.

Read the points on Data egress fees and NAT gateway costs. Understanding these network-related charges is critical for designing cost-efficient distributed systems.


The Continuous Loop of Optimization

Finally, remember that optimization is not a one-time project; it is a continuous process. As John Savill emphasizes, you must constantly re-evaluate your architecture and stay current with new Azure services and features that might offer a more cost-effective solution.

Azure Cost Optimization Deep Dive

This video drives home the point that optimization is an ongoing journey.

Watch the introductory segment on the ongoing effort and then the concluding thoughts from staying current and questioning choices. This reinforces the mindset of continuous improvement that is essential for a Principal Engineer.

This loop involves:

  1. Gaining Visibility with Cost Management.
  2. Identifying Opportunities with Azure Advisor.
  3. Implementing Changes through architectural or operational refinement.
  4. Measuring the Impact and starting the cycle over again.

Conclusion

In this lesson, we explored the critical strategies for moving beyond cost control to active cost optimization. We established that the ultimate goal is to maximize the value of your cloud investment, a core tenet of the FinOps philosophy.

Here are the key takeaways:

  • Optimization is a continuous process focused on eliminating waste and maximizing business value, not just cutting costs.
  • Azure Advisor is your first stop for automated, actionable recommendations on right-sizing, eliminating idle resources, and adopting commitment-based discounts.
  • Rate optimization through Azure Reservations and Savings Plans offers the most significant savings for predictable workloads.
  • Architectural choices—such as leveraging PaaS/serverless, optimizing storage tiers, and designing for network efficiency—are your most powerful levers for long-term cost-effectiveness.
  • A strong governance foundation, particularly a consistent tagging strategy, is essential for attributing costs and enabling this entire optimization lifecycle.

This lesson concludes our module on Azure's foundational pillars of governance and resource management. You now have a comprehensive framework for organizing, deploying, governing, and financially managing resources in an enterprise Azure environment. In our next module, we will shift our focus to security, starting with the cornerstone of Azure's security model: Identity and Access Management with Microsoft Entra ID.