ホーム/AI CI/CD・デプロイ/python-appservice-deploy
P

python-appservice-deploy

by @microsoftv
4.8(120)

この Skill は、Python (Flask/Django/FastAPI) アプリケーションを Azure App Service Linux にデプロイします。必要なリソースグループ、App Service プラン、Web アプリの作成を自動化し、ランタイム環境を設定することで、Azure 上での Python アプリケーションのデプロイプロセスを簡素化し、迅速な公開と安定した運用を保証します。

pythonazureapp-servicedeploymentweb-appGitHub
インストール方法
npx skills add https://github.com/microsoft/azure-skills --skill python-appservice-deploy
compare_arrows

Before / After 効果比較

1 组
使用前

この Skill がない場合、ユーザーはリソースグループ、App Service プラン、Web アプリの作成、Python ランタイムと依存関係の設定など、Azure リソースを手動で構成する必要があり、このプロセスは時間がかかり、エラーが発生しやすかった。

使用後

この Skill は、Azure リソースの作成と Python アプリケーションのデプロイプロセスを自動化します。ユーザーは最小限の情報を提供するだけでデプロイを迅速に完了でき、手動操作と潜在的なエラーを大幅に削減し、開発効率を向上させます。

SKILL.md

Python on Azure App Service — Code Deploy

Deploys Python (Flask, Django, FastAPI, generic) code to Azure App Service Linux (P0v3, Python 3.14). Creates RG + Plan + Web App if missing. Hand off to azure-prepare for VNet, Key Vault, databases, or IaC.

MCP tools used: mcp_azure_mcp_subscription_list, mcp_azure_mcp_group_list, mcp_azure_mcp_appservice, mcp_azure_mcp_azd (when azure.yaml is present).

Workflow

  1. Resolve context — smart defaults, minimal prompts. Only the app name is interactive; RG (<app>-rg), Plan (<app>-plan), region (current az default or eastus2), subscription are derived. create-app.md §1.
  2. Detect framework (advisory, never blocks). detect.md.
  3. Choose path — azure.yaml host: appservice → deploy-azd.md; else deploy-azcli.md.
  4. Ensure RG → Plan (P0v3 --is-linux) → Web App (--runtime "PYTHON:3.14") exist. On transient ARM errors, follow transient-retry.md. create-app.md.
  5. Set startup — Flask/Django: none (Oryx auto-detects). FastAPI: always python -m uvicorn main:app --host 0.0.0.0. Other: warn. startup-commands.md.
  6. Set SCM_DO_BUILD_DURING_DEPLOYMENT=true.
  7. Deploy — azd deploy or az webapp deploy --type zip --track-status false.
  8. STOP. Print the post-deploy message (post-deploy-message.md) and end the turn.

Hard rules

  • ⛔ NO POST-DEPLOY VERIFICATION — after deploy returns, do not run az webapp log tail, curl, Invoke-WebRequest, or any health probe. App Service needs 2–3 min to warm; a quiet log or early 5xx is not failure.
  • ⛔ SHELL SAFETY — for --runtime always use "PYTHON:3.14" (colon). Never "PYTHON|3.14" (pipe is a shell operator).
  • ⛔ NEVER az webapp up — deprecated. Use Step 7 commands.
  • ✅ URL FORMAT — present endpoints as https://... URLs.

Error Handling

See errors.md for the full symptom → cause → fix matrix. Quick triage: missing plan/app → re-run Step 4; container ping timeout on 8000 → fix startup (Step 5); ModuleNotFoundError after deploy → ensure Step 6 ran, redeploy.

ユーザーレビュー (0)

レビューを書く

効果
使いやすさ
ドキュメント
互換性

レビューなし

統計データ

インストール数226.1K
評価4.8 / 5.0
バージョン
更新日2026年10月23日
比較事例1 件

ユーザー評価

4.8(120)
5
37%
4
43%
3
13%
2
5%
1
2%

この Skill を評価

0.0

対応プラットフォーム

🤖claude-code

タイムライン

作成2026年6月25日
最終更新2026年10月23日
🎁 Agent 知識カード
アンケート