jpskill.com
🛠️ 開発・MCP コミュニティ

preset

Intelligently deploys Azure OpenAI models to optimal regions by analyzing capacity across all available regions. Automatically checks current region first and shows alternatives if needed. USE FOR: quick deployment, optimal region, best region, automatic region selection, fast setup, multi-region capacity check, high availability deployment, deploy to best location. DO NOT USE FOR: custom SKU selection (use customize), specific version selection (use customize), custom capacity configuration (use customize), PTU deployments (use customize).

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

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

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

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

💾 手動でダウンロードしたい(コマンドが難しい人向け)
  1. 1. 下の青いボタンを押して preset.zip をダウンロード
  2. 2. ZIPファイルをダブルクリックで解凍 → preset フォルダができる
  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
同梱ファイル
3

📖 Skill本文(日本語訳)

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

[スキル名] プリセット

モデルを最適なリージョンにデプロイする

リージョン間のキャパシティを確認し、利用可能な最適なオプションにデプロイすることで、インテリジェントな Azure OpenAI モデルのデプロイを自動化します。

このスキルができること

  1. Azure 認証とプロジェクトスコープを確認します
  2. 現在のプロジェクトのリージョンでキャパシティを確認します
  3. キャパシティがない場合:すべてのリージョンを分析し、利用可能な代替案を表示します
  4. 選択したリージョンでプロジェクトをフィルタリングします
  5. 必要に応じて新しいプロジェクトの作成をサポートします
  6. GlobalStandard SKU でモデルをデプロイします
  7. デプロイの進行状況を監視します

前提条件

  • Azure CLI がインストールされ、構成されていること
  • Cognitive Services の読み取り/作成権限を持つアクティブな Azure サブスクリプション
  • Azure AI Foundry プロジェクトのリソース ID (PROJECT_RESOURCE_ID 環境変数または対話形式で提供)
    • 形式: /subscriptions/{sub-id}/resourceGroups/{rg}/providers/Microsoft.CognitiveServices/accounts/{account}/projects/{project}
    • 検索場所: Azure AI Foundry ポータル → プロジェクト → 概要 → リソース ID

クイックワークフロー

高速パス (現在のリージョンにキャパシティがある場合)

1. 認証を確認 → 2. プロジェクトを取得 → 3. 現在のリージョンのキャパシティを確認
→ 4. すぐにデプロイ

代替リージョンパス (キャパシティがない場合)

1. 認証を確認 → 2. プロジェクトを取得 → 3. 現在のリージョンを確認 (キャパシティなし)
→ 4. すべてのリージョンをクエリ → 5. 代替案を表示 → 6. リージョン + プロジェクトを選択
→ 7. デプロイ

デプロイフェーズ

フェーズ アクション 主要コマンド
1. 認証の確認 Azure CLI のログインとサブスクリプションを確認 az account show, az login
2. プロジェクトの取得 PROJECT_RESOURCE_ID ARM ID を解析し、存在を確認 az cognitiveservices account show
3. モデルの取得 利用可能なモデルを一覧表示し、ユーザーがモデル + バージョンを選択 az cognitiveservices account list-models
4. 現在のリージョンの確認 GlobalStandard SKU を使用してキャパシティをクエリ az rest --method GET .../modelCapacities
5. マルチリージョンクエリ ローカルキャパシティがない場合、すべてのリージョンをクエリ ロケーションフィルターなしの同じキャパシティ API
6. リージョン + プロジェクトの選択 ユーザーがリージョンを選択。プロジェクトを検索または作成 az cognitiveservices account list, az cognitiveservices account create
7. デプロイ 一意の名前を生成し、キャパシティを計算 (50% 利用可能、最小 50 TPM)、デプロイを作成 az cognitiveservices account deployment create

詳細な手順については、ワークフローリファレンスをご覧ください。


エラー処理

エラー 症状 解決策
認証失敗 az account show がエラーを返す az login を実行し、az account set --subscription <id> を実行します
クォータなし すべてのリージョンでキャパシティが 0 と表示される 増加リクエストとトラブルシューティングについては、クォータスキルを参照してください。既存のデプロイを確認し、代替モデルを試してください
モデルが見つからない 空のキャパシティリスト az cognitiveservices account list-models でモデル名を確認し、大文字と小文字の区別を確認してください
名前競合 "deployment already exists" デプロイ名にサフィックスを追加します (generate_deployment_name スクリプトによって自動的に処理されます)
リージョンが利用不可 リージョンがモデルをサポートしていない 利用可能なリストから別のリージョンを選択してください
アクセス許可拒否 "Forbidden" または "Unauthorized" Cognitive Services Contributor ロールを確認します: az role assignment list --assignee <user>

高度な使用法

# Custom capacity
az cognitiveservices account deployment create ... --sku-capacity <value>

# Check deployment status
az cognitiveservices account deployment show --name <acct> --resource-group <rg> --deployment-name <name> --query "{Status:properties.provisioningState}"

# Delete deployment
az cognitiveservices account deployment delete --name <acct> --resource-group <rg> --deployment-name <name>

注意事項

  • SKU: GlobalStandard のみ — API バージョン: 2024-10-01 (GA stable)

関連スキル

  • microsoft-foundry - Azure AI Foundry 操作の親スキル
  • quota — クォータの表示、増加リクエスト、クォータエラーのトラブルシューティングについては、このスキルを参照してください
  • azure-quick-review - コンプライアンスのために Azure リソースをレビューします
  • azure-cost-estimation - Azure デプロイのコストを見積もります
  • azure-validate - デプロイ前に Azure インフラストラクチャを検証します
📜 原文 SKILL.md(Claudeが読む英語/中国語)を展開

Deploy Model to Optimal Region

Automates intelligent Azure OpenAI model deployment by checking capacity across regions and deploying to the best available option.

What This Skill Does

  1. Verifies Azure authentication and project scope
  2. Checks capacity in current project's region
  3. If no capacity: analyzes all regions and shows available alternatives
  4. Filters projects by selected region
  5. Supports creating new projects if needed
  6. Deploys model with GlobalStandard SKU
  7. Monitors deployment progress

Prerequisites

  • Azure CLI installed and configured
  • Active Azure subscription with Cognitive Services read/create permissions
  • Azure AI Foundry project resource ID (PROJECT_RESOURCE_ID env var or provided interactively)
    • Format: /subscriptions/{sub-id}/resourceGroups/{rg}/providers/Microsoft.CognitiveServices/accounts/{account}/projects/{project}
    • Found in: Azure AI Foundry portal → Project → Overview → Resource ID

Quick Workflow

Fast Path (Current Region Has Capacity)

1. Check authentication → 2. Get project → 3. Check current region capacity
→ 4. Deploy immediately

Alternative Region Path (No Capacity)

1. Check authentication → 2. Get project → 3. Check current region (no capacity)
→ 4. Query all regions → 5. Show alternatives → 6. Select region + project
→ 7. Deploy

Deployment Phases

Phase Action Key Commands
1. Verify Auth Check Azure CLI login and subscription az account show, az login
2. Get Project Parse PROJECT_RESOURCE_ID ARM ID, verify exists az cognitiveservices account show
3. Get Model List available models, user selects model + version az cognitiveservices account list-models
4. Check Current Region Query capacity using GlobalStandard SKU az rest --method GET .../modelCapacities
5. Multi-Region Query If no local capacity, query all regions Same capacity API without location filter
6. Select Region + Project User picks region; find or create project az cognitiveservices account list, az cognitiveservices account create
7. Deploy Generate unique name, calculate capacity (50% available, min 50 TPM), create deployment az cognitiveservices account deployment create

For detailed step-by-step instructions, see workflow reference.


Error Handling

Error Symptom Resolution
Auth failure az account show returns error Run az login then az account set --subscription <id>
No quota All regions show 0 capacity Defer to the quota skill for increase requests and troubleshooting; check existing deployments; try alternative models
Model not found Empty capacity list Verify model name with az cognitiveservices account list-models; check case sensitivity
Name conflict "deployment already exists" Append suffix to deployment name (handled automatically by generate_deployment_name script)
Region unavailable Region doesn't support model Select a different region from the available list
Permission denied "Forbidden" or "Unauthorized" Verify Cognitive Services Contributor role: az role assignment list --assignee <user>

Advanced Usage

# Custom capacity
az cognitiveservices account deployment create ... --sku-capacity <value>

# Check deployment status
az cognitiveservices account deployment show --name <acct> --resource-group <rg> --deployment-name <name> --query "{Status:properties.provisioningState}"

# Delete deployment
az cognitiveservices account deployment delete --name <acct> --resource-group <rg> --deployment-name <name>

Notes

  • SKU: GlobalStandard only — API Version: 2024-10-01 (GA stable)

Related Skills

  • microsoft-foundry - Parent skill for Azure AI Foundry operations
  • quota — For quota viewing, increase requests, and troubleshooting quota errors, defer to this skill
  • azure-quick-review - Review Azure resources for compliance
  • azure-cost-estimation - Estimate costs for Azure deployments
  • azure-validate - Validate Azure infrastructure before deployment

同梱ファイル

※ ZIPに含まれるファイル一覧。`SKILL.md` 本体に加え、参考資料・サンプル・スクリプトが入っている場合があります。