惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
B
Blog
Jina AI
Jina AI
N
Netflix TechBlog - Medium
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
博客园_首页
Hugging Face - Blog
Hugging Face - Blog
博客园 - 聂微东
美团技术团队
Google DeepMind News
Google DeepMind News
WordPress大学
WordPress大学
阮一峰的网络日志
阮一峰的网络日志
U
Unit 42
The Cloudflare Blog
V
V2EX
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
小众软件
小众软件
罗磊的独立博客
Microsoft Security Blog
Microsoft Security Blog
Apple Machine Learning Research
Apple Machine Learning Research
I
InfoQ
GbyAI
GbyAI
腾讯CDC
MongoDB | Blog
MongoDB | Blog

DEV Community

Authentication Security Deep Dive: From Brute Force to Salted Hashing (With Java Examples) Why AI Systems Don’t Fail — They Drift Spilling beans for how i learn for exam😁"Reinforcement Learning Cheat Sheet" I Replaced Chrome with Safari for AI Browser Automation. Here's What Broke (and What Finally Worked) How Python Borrows Other People's Work The $40 Architecture: Processing 1 Billion API Requests with 99.99% Uptime Vibe Coding: A Workflow Guide (From Zero to SaaS) Most webhook security guides protect the wrong side. The scary part is delivery. Headless CMS for TanStack Start: Build a Blog with Cosmic EU Age Verification App "Hacked in 2 Minutes" — What Actually Happened Comfy Cloud’s delete function does not actually remove files Running AI Models on GPU Cloud Servers: A Beginner Guide Event-driven media intelligence with AWS Step Functions and Bedrock I scored 500 AI prompts across 8 quality dimensions — here's what broke How to Call Google Gemini API from Next.js (Free Tier, No Backend Needed) The Portal Protocol: Reclaiming Human Connection in the Age of AI How to Fix Your Team's Scattered Knowledge Problem With a Self-Hosted Forum Intro to tc Cloud Functors: A Graph-First Mental Model for the Modern Cloud Designing Multi-Tenant Backends With Both Ownership and Team Access I Built a Neumorphic CSS Library with 77+ Components — Here's What I Learned PostgreSQL Performance Optimization: Why Connection Pooling Is Critical at Scale Cómo construí un SaaS multi-rubro para gestionar expensas en Argentina con FastAPI + Vue 3 🚀 I Built an Ethical Hacking Scanner Tool – Open Source Project I Replaced /usage and /context in Claude Code With a Single Statusline A Pythonic Way to Handle Emails (IMAP/SMTP) with Auto-Discovery and AI-Ready Design I Collected 8.9 Million Polymarket Price Points — Here's What I Found About How Markets Really Move EcoTrack AI — Carbon Footprint Tracker & Dashboard Everyone's Using AI. No One Agrees How. 5 self-hosted ebook managers worth trying in 2026 Building Your First AI Agent with LangChain: From Chatbot to Autonomous Assistant
Azure Cost Management Cheat Sheet: Commands, Tools & Stra...
Cloud9 Infosystems · 2026-06-01 · via DEV Community

Cloud9 Infosystems

As DevOps engineers, we're great at building scalable infrastructure. But optimizing cost often falls through the cracks until finance sends an angry email.

Here's my practical cheat sheet for managing Azure costs — commands, tools, and strategies that work in production.

Quick Audit: Find Waste in 5 Minutes

Find idle VMs (Azure CLI):

List VMs with less than 5% average CPU (last 7 days)
az monitor metrics list \
  --resource <vm-resource-id> \
  --metric "Percentage CPU" \
  --interval PT1H \
  --aggregation Average \
  --start-time $(date -d '7 days ago' +%Y-%m-%dT%H:%M:%SZ)

Enter fullscreen mode Exit fullscreen mode

Find unattached disks:

List all unattached managed disks (you're paying for these!)
az disk list --query "[?managedBy==null].{Name:name, Size:diskSizeGb, SKU:sku.name, RG:resourceGroup}" -o table

Enter fullscreen mode Exit fullscreen mode

Find unused public IPs:

az network public-ip list --query "[?ipConfiguration==null].{Name:name, RG:resourceGroup}" -o table

Enter fullscreen mode Exit fullscreen mode

Top Cost-Saving Strategies (Ranked by Impact)

Strategy Savings Effort Time to ROI
Right-size VMs 30-50% Medium 1-2 weeks
Reserved Instances 30-72% Low Immediate
Azure Hybrid Benefit Up to 85% Low Immediate
Auto-shutdown dev/test 65% on those VMs Low 1 day
Spot VMs for batch Up to 90% Medium 1-2 weeks
Storage tiering 50-90% on storage Low 1 week

Automate Cost Governance

Budget alerts (ARM template snippet):

{
  "type": "Microsoft.Consumption/budgets",
  "name": "monthly-team-budget",
  "properties": {
    "category": "Cost",
    "amount": 500000,
    "timeGrain": "Monthly",
    "notifications": {
      "Over75Percent": {
        "enabled": true,
        "operator": "GreaterThan",
        "threshold": 75,
        "contactEmails": ["team-lead@company.com"]
      }
    }
  }
}

Enter fullscreen mode Exit fullscreen mode

Auto-shutdown schedule (Azure CLI):

az vm auto-shutdown -g MyResourceGroup -n MyDevVM --time 1900 --timezone "India Standard Time"

Enter fullscreen mode Exit fullscreen mode

Tools Worth Knowing

  1. Azure Cost Management + Billing — Native cost analysis and forecasting
  2. Azure Advisor — Right-sizing and RI recommendations
  3. Azure Resource Graph — Query resources at scale
  4. Power BI Cost Dashboard — Custom team-level visibility
  5. Terraform/Bicep — Infrastructure-as-Code with cost-aware defaults

When to Get External Help

If your Azure bill is consistently above ₹10L/month and you don't have a dedicated FinOps practice, it's worth engaging specialists. I've seen teams at Cloud 9 Infosystems reduce Azure costs by 40%+ for enterprise clients using a combination of the strategies above plus reserved instance planning and license optimization that's hard to do without deep Microsoft partnership expertise.

Key Metrics to Track Monthly

  • Cloud Unit Economics: Cost per transaction / per user / per GB
  • Coverage ratio: % of compute covered by RIs or Savings Plans
  • Waste ratio: Idle resources / total resources
  • Anomaly alerts: Unexpected spend spikes

If this was useful, follow me for more Azure infrastructure content. Next week: building a cost anomaly detection system with Azure Functions + Logic Apps.