jpskill.com
💼 ビジネス コミュニティ

azure-cost

Azureの過去のコストを分析し、将来の支出を予測、無駄を削減するための最適化提案を行うことで、Azure利用料金の把握とコスト削減を支援するSkill。

📜 元の英語説明(参考)

Unified Azure cost management: query historical costs, forecast future spending, and optimize to reduce waste. WHEN: "Azure costs", "Azure spending", "Azure bill", "cost breakdown", "cost by service", "cost by resource", "how much am I spending", "show my bill", "monthly cost summary", "cost trends", "top cost drivers", "actual cost", "amortized cost", "forecast spending", "projected costs", "estimate bill", "future costs", "budget forecast", "end of month costs", "how much will I spend", "optimize costs", "reduce spending", "find cost savings", "orphaned resources", "rightsize VMs", "cost analysis", "reduce waste", "unused resources", "optimize Redis costs", "cost by tag", "cost by resource group", "AKS cost analysis add-on", "namespace cost", "cost spike", "anomaly", "budget alert", "AKS cost visibility". DO NOT USE FOR: deploying resources, provisioning infrastructure, diagnostics, security audits, or estimating costs for new resources not yet deployed.

🇯🇵 日本人クリエイター向け解説

一言でいうと

Azureの過去のコストを分析し、将来の支出を予測、無駄を削減するための最適化提案を行うことで、Azure利用料金の把握とコスト削減を支援するSkill。

※ jpskill.com 編集部が日本のビジネス現場向けに補足した解説です。Skill本体の挙動とは独立した参考情報です。

⚡ おすすめ: コマンド1行でインストール(60秒)

下記のコマンドをコピーしてターミナル(Mac/Linux)または PowerShell(Windows)に貼り付けてください。 ダウンロード → 解凍 → 配置まで全自動。

🍎 Mac / 🐧 Linux
mkdir -p ~/.claude/skills && cd ~/.claude/skills && curl -L -o azure-cost.zip https://jpskill.com/download/19661.zip && unzip -o azure-cost.zip && rm azure-cost.zip
🪟 Windows (PowerShell)
$d = "$env:USERPROFILE\.claude\skills"; ni -Force -ItemType Directory $d | Out-Null; iwr https://jpskill.com/download/19661.zip -OutFile "$d\azure-cost.zip"; Expand-Archive "$d\azure-cost.zip" -DestinationPath $d -Force; ri "$d\azure-cost.zip"

完了後、Claude Code を再起動 → 普通に「動画プロンプト作って」のように話しかけるだけで自動発動します。

💾 手動でダウンロードしたい(コマンドが難しい人向け)
  1. 1. 下の青いボタンを押して azure-cost.zip をダウンロード
  2. 2. ZIPファイルをダブルクリックで解凍 → azure-cost フォルダができる
  3. 3. そのフォルダを C:\Users\あなたの名前\.claude\skills\(Win)または ~/.claude/skills/(Mac)へ移動
  4. 4. Claude Code を再起動

⚠️ ダウンロード・利用は自己責任でお願いします。当サイトは内容・動作・安全性について責任を負いません。

🎯 このSkillでできること

下記の説明文を読むと、このSkillがあなたに何をしてくれるかが分かります。Claudeにこの分野の依頼をすると、自動で発動します。

📦 インストール方法 (3ステップ)

  1. 1. 上の「ダウンロード」ボタンを押して .skill ファイルを取得
  2. 2. ファイル名の拡張子を .skill から .zip に変えて展開(macは自動展開可)
  3. 3. 展開してできたフォルダを、ホームフォルダの .claude/skills/ に置く
    • · macOS / Linux: ~/.claude/skills/
    • · Windows: %USERPROFILE%\.claude\skills\

Claude Code を再起動すれば完了。「このSkillを使って…」と話しかけなくても、関連する依頼で自動的に呼び出されます。

詳しい使い方ガイドを見る →
最終更新
2026-05-18
取得日時
2026-05-18
同梱ファイル
1

📖 Skill本文(日本語訳)

※ 原文(英語/中国語)を Gemini で日本語化したものです。Claude 自身は原文を読みます。誤訳がある場合は原文をご確認ください。

Azure Cost Management スキル

すべての Azure コスト管理タスクに対応する統合スキルです。履歴コストの照会、将来の支出の予測、無駄を削減するための最適化を行います。

このスキルを使用するタイミング

ユーザーが以下を希望する場合に、このスキルをアクティブ化します。

  • Azure コストの照会または分析(いくら使っているか、請求書を表示、コストの内訳)
  • サービス、リソース、場所、またはタグ別にコストを内訳
  • 時間の経過に伴うコストトレンドの分析
  • 将来の Azure 支出の予測または月末コストの見積もり
  • Azure コストの最適化、支出の削減、または節約の発見
  • 孤立したリソースまたは未使用のリソースの検索
  • Azure VM、コンテナ、またはサービスの適正化
  • コスト最適化レポートの生成

クイックリファレンス

プロパティ
クエリ API エンドポイント POST {scope}/providers/Microsoft.CostManagement/query?api-version=2023-11-01
予測 API エンドポイント POST {scope}/providers/Microsoft.CostManagement/forecast?api-version=2023-11-01
MCP ツール azure__documentation, azure__extension_cli_generate, azure__get_azure_bestpractices
CLI az rest, az monitor metrics list, az resource list
必要なロール Cost Management Reader + Monitoring Reader + Reader on scope

MCP ツール

ツール 説明 パラメータ 使用するタイミング
azure__documentation Azure ドキュメントを検索 query (必須): 検索語句 Cost Management API のパラメータとオプションを調査
azure__extension_cli_generate Azure CLI コマンドを生成 intent (必須): タスクの説明, cli-type (必須): "az" コストクエリ用の az rest コマンドを構築
azure__get_azure_bestpractices Azure のベストプラクティスを取得 intent (必須): 最適化のコンテキスト コスト管理のベストプラクティスでクエリ設計を通知
azure__extension_azqr Azure Quick Review コンプライアンススキャンを実行 subscription (必須): サブスクリプション ID, resource-group (オプション): リソースグループ名 孤立したリソースとコスト最適化の機会を検索
azure__aks Azure Kubernetes Service の操作 サブコマンドによって異なる AKS コスト分析: クラスターのリスト、ノードプールの取得、構成の検査

💡 ヒント: 直接 CLI コマンドを使用するよりも MCP ツールを優先してください。特定の操作が MCP ツールでカバーされていない場合にのみ az rest を使用してください。


ルーティング

ユーザーのリクエストを読み取り、以下の適切なワークフローに従ってください。

ユーザーの意図 ワークフロー プロンプトの例
現在のコストを理解する コストクエリワークフロー 「いくら使っているか」、「サービス別のコスト」、「請求書を表示」
コストを削減する / 無駄を見つける コスト最適化ワークフロー 「コストを最適化」、「孤立したリソースを見つける」、「支出を削減」
将来のコストを予測する コスト予測ワークフロー 「コストを予測」、「月末の見積もり」、「いくら使うか」
完全なコスト状況 3つのワークフローすべてを組み合わせる 「Azure コストの全体像を教えて」

重要: コストを最適化する際は、常に合計請求額とコストの内訳を最適化の推奨事項と併せて提示してください。


スコープリファレンス (すべてのワークフローで共有)

スコープ URL パターン
サブスクリプション /subscriptions/<subscription-id>
リソースグループ /subscriptions/<subscription-id>/resourceGroups/<resource-group-name>
管理グループ /providers/Microsoft.Management/managementGroups/<management-group-id>
請求アカウント /providers/Microsoft.Billing/billingAccounts/<billing-account-id>
請求プロファイル /providers/Microsoft.Billing/billingAccounts/<billing-account-id>/billingProfiles/<billing-profile-id>

💡 ヒント: これらはスコープパスのみであり、完全な URL ではありません。API エンドポイントとバージョンと組み合わせてください。


パート 1: コストクエリワークフロー

完全なコストクエリワークフロー(スコープ選択、レポートタイプ、期間、データセット構成、API 呼び出し、ページネーション、ガードレール、例、エラー処理)については、以下を参照してください。

📄 コストクエリワークフロー


パート 2: コスト最適化ワークフロー

完全なコスト最適化ワークフロー(前提条件、ベストプラクティス、Redis/AKS 固有の分析、Azure Quick Review、リソース検出、コストクエリ、価格検証、利用状況メトリック、レポート生成)については、以下を参照してください。

📄 コスト最適化ワークフロー


パート 3: コスト予測ワークフロー

完全なコスト予測ワークフロー(スコープ選択、期間ルール、データセット構成、予測固有のオプション、API 呼び出し、応答解釈、ガードレール、エラー処理)については、以下を参照してください。

📄 コスト予測ワークフロー


データ分類

  • ACTUAL DATA = Azure Cost Management API から取得
  • ACTUAL METRICS = Azure Monitor から取得
  • VALIDATED PRICING = 公式 Azure 料金ページから取得
  • ESTIMATED SAVINGS = 実際のデータと検証済み料金に基づいて計算

ベストプラクティス

  • 常に最初に実際のコストを照会してください — 見積もったり仮定したりしないでください
  • 常に合計請求額を最適化の推奨事項と併せて提示してください
  • 公式ソースから料金を検証してください — 無料枠を考慮してください
  • コストクエリには REST API を使用してください(az costmanagement query よりも信頼性が高いです)
  • 監査証跡を保存してください — すべてのクエリと応答を含めてください
  • すべてのリソースに Azure Portal リンクを含めてください
  • 月額 10 ドル未満のコストについては、財務上の節約よりも運用上の改善を強調してください
  • 明示的な承認なしに破壊的な操作を実行しないでください

よくある落とし穴

  • コストの仮定: 常に Cost Management API から実際のデータを照会してください
  • 無料枠の無視: 多くのサービスには寛大な許容量があります
  • 間違った日付範囲の使用: コストには 30 日間、利用状況には 14 日間
  • 請求書の非表示: 常にコストの内訳を最適化の推奨事項と併せて提示してください
  • コストクエリの失敗: az costmanagement query ではなく、JSON ボディで az rest を使用してください

Sa

📜 原文 SKILL.md(Claudeが読む英語/中国語)を展開

Azure Cost Management Skill

Unified skill for all Azure cost management tasks: querying historical costs, forecasting future spending, and optimizing to reduce waste.

When to Use This Skill

Activate this skill when user wants to:

  • Query or analyze Azure costs (how much am I spending, show my bill, cost breakdown)
  • Break down costs by service, resource, location, or tag
  • Analyze cost trends over time
  • Forecast future Azure spending or project end-of-month costs
  • Optimize Azure costs, reduce spending, or find savings
  • Find orphaned or unused resources
  • Rightsize Azure VMs, containers, or services
  • Generate cost optimization reports

Quick Reference

Property Value
Query API Endpoint POST {scope}/providers/Microsoft.CostManagement/query?api-version=2023-11-01
Forecast API Endpoint POST {scope}/providers/Microsoft.CostManagement/forecast?api-version=2023-11-01
MCP Tools azure__documentation, azure__extension_cli_generate, azure__get_azure_bestpractices
CLI az rest, az monitor metrics list, az resource list
Required Role Cost Management Reader + Monitoring Reader + Reader on scope

MCP Tools

Tool Description Parameters When to Use
azure__documentation Search Azure documentation query (Required): search terms Research Cost Management API parameters and options
azure__extension_cli_generate Generate Azure CLI commands intent (Required): task description, cli-type (Required): "az" Construct az rest commands for cost queries
azure__get_azure_bestpractices Get Azure best practices intent (Required): optimization context Inform query design with cost management best practices
azure__extension_azqr Run Azure Quick Review compliance scan subscription (Required): subscription ID, resource-group (Optional): resource group name Find orphaned resources and cost optimization opportunities
azure__aks Azure Kubernetes Service operations varies by sub-command AKS cost analysis: list clusters, get node pools, inspect configuration

💡 Tip: Prefer MCP tools over direct CLI commands. Use az rest only when MCP tools don't cover the specific operation.


Routing

Read the user's request and follow the appropriate workflow below.

User Intent Workflow Example Prompts
Understand current costs Cost Query Workflow "how much am I spending", "cost by service", "show my bill"
Reduce costs / find waste Cost Optimization Workflow "optimize costs", "find orphaned resources", "reduce spending"
Project future costs Cost Forecast Workflow "forecast costs", "end of month estimate", "how much will I spend"
Full cost picture All three workflows combined "give me the full picture of my Azure costs"

Important: When optimizing costs, always present the total bill and cost breakdown alongside optimization recommendations.


Scope Reference (Shared Across All Workflows)

Scope URL Pattern
Subscription /subscriptions/<subscription-id>
Resource Group /subscriptions/<subscription-id>/resourceGroups/<resource-group-name>
Management Group /providers/Microsoft.Management/managementGroups/<management-group-id>
Billing Account /providers/Microsoft.Billing/billingAccounts/<billing-account-id>
Billing Profile /providers/Microsoft.Billing/billingAccounts/<billing-account-id>/billingProfiles/<billing-profile-id>

💡 Tip: These are scope paths only — not complete URLs. Combine with the API endpoint and version.


Part 1: Cost Query Workflow

For the full cost query workflow (scope selection, report types, timeframes, dataset configuration, API calls, pagination, guardrails, examples, and error handling), see:

📄 Cost Query Workflow


Part 2: Cost Optimization Workflow

For the full cost optimization workflow (prerequisites, best practices, Redis/AKS-specific analysis, Azure Quick Review, resource discovery, cost queries, pricing validation, utilization metrics, and report generation), see:

📄 Cost Optimization Workflow


Part 3: Cost Forecast Workflow

For the full cost forecast workflow (scope selection, time period rules, dataset configuration, forecast-specific options, API calls, response interpretation, guardrails, and error handling), see:

📄 Cost Forecast Workflow


Data Classification

  • ACTUAL DATA = Retrieved from Azure Cost Management API
  • ACTUAL METRICS = Retrieved from Azure Monitor
  • VALIDATED PRICING = Retrieved from official Azure pricing pages
  • ESTIMATED SAVINGS = Calculated based on actual data and validated pricing

Best Practices

  • Always query actual costs first — never estimate or assume
  • Always present the total bill alongside optimization recommendations
  • Validate pricing from official sources — account for free tiers
  • Use REST API for cost queries (more reliable than az costmanagement query)
  • Save audit trail — include all queries and responses
  • Include Azure Portal links for all resources
  • For costs < $10/month, emphasize operational improvements over financial savings
  • Never execute destructive operations without explicit approval

Common Pitfalls

  • Assuming costs: Always query actual data from Cost Management API
  • Ignoring free tiers: Many services have generous allowances
  • Using wrong date ranges: 30 days for costs, 14 days for utilization
  • Not showing the bill: Always present cost breakdown alongside optimization recommendations
  • Cost query failures: Use az rest with JSON body, not az costmanagement query

Safety Requirements

  • Get approval before deleting resources
  • Test changes in non-production first
  • Provide dry-run commands for validation
  • Include rollback procedures

SDK Quick References

  • Redis Management: .NET