Deploy Python (Flask/Django/FastAPI) code to Azure App Service Linux. WHEN: "Flask App Service", "Django App Service", "FastAPI App Service", "deploy Python to App Service". DO NOT USE FOR: Container Apps, Functions, non-Python, Terraform/Bicep/IaC, full infra — use azure-prepare.
Written by Microsoft and published in microsoft/azure-skills under the MIT license. Treq shows it unchanged except for heading levels and links to files on GitHub.
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).
Prerequisite: Verify the latest stable Azure CLI; update with approval and recheck if needed.
<app>-rg), Plan (<app>-plan), region (current az default or eastus2), subscription are derived. create-app.md §1.azure.yaml host: appservice → deploy-azd.md; else deploy-azcli.md.P0v3 --is-linux) → Web App (--runtime "PYTHON:3.14") exist. Before creating a plan, invoke azure-quotas to check quota availability. On transient ARM errors, follow transient-retry.md. create-app.md.python -m uvicorn main:app --host 0.0.0.0. Other: warn. startup-commands.md.SCM_DO_BUILD_DURING_DEPLOYMENT=true.azd deploy or az webapp deploy --type zip --track-status false --enriched-errors true.STATIC_ROOT and successful system/collectstatic checks before packaging.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.--runtime always use "PYTHON:3.14" (colon). Never "PYTHON|3.14" (pipe is a shell operator).az webapp up — deprecated. Use Step 7 commands.https://... URLs.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.
Claude Code and Codex keep each installed skill's name and description in context. When a request matches the description, the agent loads the full SKILL.md. You can also run it yourself: type /python-appservice-deploy in Claude Code or $python-appservice-deploy in Codex.
The description says when to use it:
WHEN: "Flask App Service", "Django App Service", "FastAPI App Service", "deploy Python to App Service".
Copy the python-appservice-deploy folder into .claude/skills/ in your project. To use it in every project, copy it into ~/.claude/skills/ instead.
git clone --depth 1 https://github.com/microsoft/azure-skills.git /tmp/microsoft-azure-skills
mkdir -p .claude/skills
cp -r /tmp/microsoft-azure-skills/skills/python-appservice-deploy .claude/skills/
Codex reads skills from .agents/skills/ in your repository, and from ~/.agents/skills/ for every repository. It detects new skills on its own. Restart Codex if python-appservice-deploy does not appear.
git clone --depth 1 https://github.com/microsoft/azure-skills.git /tmp/microsoft-azure-skills
mkdir -p .agents/skills
cp -r /tmp/microsoft-azure-skills/skills/python-appservice-deploy .agents/skills/
Open Settings and select the Skills tab. The tab appears when Skills installation is on under Settings → Feature Preview. Search for python-appservice-deploy and choose Install….
Install for repository writes the skill under .treq/skills/ in the current repository. Install for application makes it available to every repository on this machine. Each new workspace gets a copy in .claude/skills/ and .agents/skills/, so Claude Code and Codex both find it. See Installing Skills from the Library.
python-appservice-deploy ships 13 files, 45.5 KB in total. Select a file to load it from GitHub.