DevOps & CloudOfficial · microsoft

Python Appservice Deploy skill for Claude

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

When Claude uses it

USE FOR: Container Apps, Functions, non-Python, Terraform/Bicep/IaC, full infra — use azure-prepare.

Python Appservice Deploy SKILL.md

The full skill file from microsoft/skills (MIT).

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

Prerequisite: Verify the latest stable Azure CLI; update with approval and recheck if needed.

  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. Before creating a plan, invoke azure-quotas to check quota availability. 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 --enriched-errors true.
  8. STOP. Print the post-deploy message (post-deploy-message.md) and end the turn.

Hard rules

  • LINUX SCRIPTS — normalize selected shell/startup files to LF, then verify no CR bytes remain. Stop on normalization, validation or packaging failure; deploy only a fresh package.
  • DJANGO REMOTE BUILDS — require STATIC_ROOT and successful system/collectstatic checks before packaging.
  • ⛔ 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.

How to install Python Appservice Deploy

Claude Code

Copy the skill into your personal skills folder (or into .claude/skills/ inside a project):

npx degit microsoft/skills/.github/plugins/azure-skills/skills/python-appservice-deploy#main ~/.claude/skills/python-appservice-deploy

Codex

npx degit microsoft/skills/.github/plugins/azure-skills/skills/python-appservice-deploy#main ~/.codex/skills/python-appservice-deploy

Claude.ai and Claude Desktop

Download the skill folder from GitHub, zip it, and upload it under Settings → Capabilities → Skills.

Frequently asked questions

+What does the Python Appservice Deploy skill do?

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.

+How do I install Python Appservice Deploy in Claude Code?

Copy the skill folder into ~/.claude/skills/python-appservice-deploy, for example with "npx degit microsoft/skills/.github/plugins/azure-skills/skills/python-appservice-deploy#main ~/.claude/skills/python-appservice-deploy". Claude Code loads it automatically and uses it when a task matches.

+Does Python Appservice Deploy work with ChatGPT or Codex?

Yes. Python Appservice Deploy uses the open SKILL.md format. In Codex, put the folder in ~/.codex/skills/python-appservice-deploy. In Claude.ai, zip the folder and upload it under Settings → Capabilities → Skills.

+Is Python Appservice Deploy free?

Python Appservice Deploy is published on GitHub by microsoft under the MIT license, which allows free use.

Related devops & cloud skills

  1. Supabase

    Official

    Use when doing ANY task involving Supabase. Triggers: Supabase products (Database, Auth, Edge Functions, Realtime, Storage, Vectors, Cron,…

    supabase/agent-skills★ 3.1k
  2. Senior Architect

    System architecture decisions with a written rationale: monolith vs microservices, database choice, scaling limits, ADRs, Mermaid diagrams.

    alirezarezvani/claude-skills★ 30k
  3. Vercel Deploy

    Official

    Deploy applications and websites to Vercel. Use when the user requests deployment actions like "deploy my app", "deploy and give me the…

    openai/skills★ 29k
  4. Slack To Teams

    Official

    Sub-skill of microsoft-365-agents-toolkit. Routed expert system with 100+ micro-expert files for migrating Slack bots to Teams,…

    microsoft/skills★ 3.2k
  5. Troubleshoot Observability

    Official

    Coordinate Azure observability troubleshooting for application or agent health, runtime failures, operational latency, telemetry,…

    microsoft/skills★ 3.2k
  6. Verify Observability Fix

    Official

    Verify operational incident recovery for Azure web/API or Foundry agents after an actual approved change, using supplied…

    microsoft/skills★ 3.2k
  7. Wiki Ado Convert

    Official

    Converts VitePress/GFM wiki markdown to Azure DevOps Wiki-compatible format.

    microsoft/skills★ 3.2k
  8. Browse Local Sentry

    Official

    Connects an agent's browser to a local Sentry dev server (dev-ui on *.dev.getsentry.net or the full devserver).

    getsentry/skills★ 1.2k
  9. Mongodb Natural Language Querying

    Official

    Generate read-only MongoDB queries (find) or aggregation pipelines using natural language, with collection schema context and sample…

    mongodb/agent-skills★ 206

See all devops & cloud skills →

More skills from microsoft

  1. React Flow Node Ts

    Official

    Create React Flow node components with TypeScript types, handles, and Zustand integration.

    microsoft/skills★ 3.2k
  2. Skill Creator

    Official

    Guide for creating effective skills for AI coding agents working with Azure SDKs and Microsoft Foundry services.

    microsoft/skills★ 3.2k

All skills by microsoft →

Give your whole team an AI agent with skills

Cody runs managed AI agents your team can message in Slack, Teams, WhatsApp and the web, with 50+ business integrations, scheduled tasks and memory. No terminal required.