azure-cost-optimizer

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Azure Cost Optimizer

Azure成本优化器

Quick Start

快速开始

Analyze Azure costs and implement optimization strategies to reduce spending while maintaining performance.
分析Azure成本并实施优化策略,以在维持性能的同时降低支出。

Instructions

操作指南

Step 1: Analyze current costs

步骤1:分析当前成本

bash
undefined
bash
undefined

View cost analysis

查看成本分析

az cost-management query
--type Usage
--dataset-aggregation name="PreTaxCost" function="Sum"
--dataset-grouping name="ResourceGroup" type="Dimension"
az cost-management query
--type Usage
--dataset-aggregation name="PreTaxCost" function="Sum"
--dataset-grouping name="ResourceGroup" type="Dimension"

View costs by service

按服务查看成本

az cost-management query
--type Usage
--dataset-grouping name="ServiceName" type="Dimension"
undefined
az cost-management query
--type Usage
--dataset-grouping name="ServiceName" type="Dimension"
undefined

Step 2: Identify optimization opportunities

步骤2:识别优化机会

Check for unused resources:
  • Unattached disks
  • Idle virtual machines
  • Unused public IPs
  • Orphaned network interfaces
Review resource utilization:
  • VM CPU and memory usage
  • Database DTU utilization
  • Storage account access patterns
  • Network bandwidth usage
检查未使用资源:
  • 未附加的磁盘
  • 闲置虚拟机
  • 未使用的公网IP
  • 孤立的网络接口
查看资源利用率:
  • VM CPU和内存使用率
  • 数据库DTU利用率
  • 存储账户访问模式
  • 网络带宽使用率

Step 3: Implement cost-saving measures

步骤3:实施成本节约措施

Reserved Instances:
  • 1-year or 3-year commitments
  • Up to 72% savings vs pay-as-you-go
  • Recommended for stable workloads
Azure Hybrid Benefit:
  • Use existing Windows Server licenses
  • Use existing SQL Server licenses
  • Significant cost savings
Rightsizing:
  • Downsize overprovisioned VMs
  • Adjust database tiers
  • Optimize storage tiers
Spot VMs:
  • Up to 90% savings
  • Suitable for interruptible workloads
  • Batch processing, dev/test
预留实例:
  • 1年或3年承诺期限
  • 相比按需付费最高可节省72%
  • 推荐用于稳定工作负载
Azure混合权益:
  • 使用现有Windows Server许可证
  • 使用现有SQL Server许可证
  • 大幅节省成本
资源调整大小:
  • 缩小过度配置的VM
  • 调整数据库层级
  • 优化存储层级
Spot虚拟机:
  • 最高可节省90%
  • 适用于可中断工作负载
  • 批处理、开发/测试场景

Advanced

进阶内容

For detailed information, see:
  • Pricing Models - Azure pricing tiers and models
  • Reserved Instances - RI recommendations and strategies
  • Rightsizing - VM and resource sizing guidance
如需详细信息,请参阅:
  • 定价模型 - Azure定价层级和模型
  • 预留实例 - RI建议和策略
  • 资源调整大小 - VM和资源调整指南