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
Resolve context — smart defaults, minimal prompts.
Only the app name is interactive; RG (
-rg
), Plan (
-plan
), region (current
az
default or
eastus2
), subscription are derived.
create-app.md
§1.
Detect framework
(advisory, never blocks).
detect.md
.
Choose path
—
azure.yaml
host: appservice →
deploy-azd.md
; else
deploy-azcli.md
.
Ensure RG → Plan (
P0v3 --is-linux
) → Web App (
--runtime "PYTHON:3.14"
)
exist. On transient ARM errors, follow
transient-retry.md
.
create-app.md
.
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
.
Set
SCM_DO_BUILD_DURING_DEPLOYMENT=true
.
Deploy
—
azd deploy
or
az webapp deploy --type zip --track-status false
.
STOP. Print the post-deploy message
(
post-deploy-message.md
) and end the turn.
Hard rules
Show more
Installs
642
Repository
microsoft/azure-skills
GitHub Stars
1.2K
First Seen
Today
Security Audits
Gen Agent Trust Hub
Pass
Socket
Pass
Snyk
Pass