Robertjam954/multimodal_rag_application / .claude/skills/python-appservice-deploy
python-appservice-deploy
VerifiedDeploy 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.
| File | Kind | Size |
|---|---|---|
| SKILL.md | skill md | 2.7 KB |
| references/create-app.md | markdown | 6.1 KB |
| references/deploy-azcli.md | markdown | 4.7 KB |
| references/deploy-azd.md | markdown | 2.3 KB |
| references/detect.md | markdown | 3.6 KB |
| references/errors.md | markdown | 3.8 KB |
| references/post-deploy-message.md | markdown | 4.4 KB |
| references/startup-commands.md | markdown | 4.3 KB |
| references/transient-retry.md | markdown | 2.3 KB |
| scripts/generate-app-name.ps1 | script | 1.7 KB |
| scripts/generate-app-name.shexecutable | script | 1.8 KB |
| scripts/retry-az-create.ps1 | script | 2.1 KB |
| scripts/retry-az-create.shexecutable | script | 1.9 KB |
scripts/retry-az-create.ps1
View on GitHub<#
.SYNOPSIS
Wraps an idempotent `az ... show || az ... create` pair with silent
retries against transient ARM frontend errors.
.DESCRIPTION
Mirrors retry-az-create.sh. Runs the show command first (short-circuits
a partially-succeeded prior attempt and avoids false NameAlreadyExists
errors). If show fails, runs create. On transient failure (connection
resets, 429/502/503/504, timeouts) retries up to 2 times with 5s then
15s backoff. Non-transient failures surface the original error and
exit 1.
.PARAMETER ShowCommand
The full `az ... show ...` command line as a single string.
.PARAMETER CreateCommand
The full `az ... create ...` command line as a single string.
.EXAMPLE
.\retry-az-create.ps1 `
-ShowCommand "az group show -n my-rg --only-show-errors" `
-CreateCommand "az group create -n my-rg -l eastus2"
.EXAMPLE
.\retry-az-create.ps1 `
-ShowCommand "az appservice plan show -n my-plan -g my-rg --only-show-errors" `
-CreateCommand "az appservice plan create -n my-plan -g my-rg --is-linux --sku P0v3 -l eastus2"
#>
param(
[Parameter(Mandatory)][string]$ShowCommand,
[Parameter(Mandatory)][string]$CreateCommand
)
$ErrorActionPreference = "Continue"
$transient = 'Connection reset|Connection aborted|ConnectionError|Read timed out|BadGatewayConnection|ServiceUnavailable|Max retries exceeded|TooManyRequests|\b429\b|\b50[234]\b'
$backoff = @(5, 15)
for ($attempt = 1; $attempt -le 3; $attempt++) {
# Try `show` silently first; if it fails, try `create`. Capture both
# stdout and stderr into $err so we can inspect for transient patterns.
$err = & {
$script = "$ShowCommand -o none 2>`$null; if (`$LASTEXITCODE -ne 0) { $CreateCommand -o none }"
& powershell -NoProfile -Command $script 2>&1
} | Out-String
if ($LASTEXITCODE -eq 0) {
exit 0
}
if ($err -notmatch $transient) {
Write-Error $err
exit 1
}
if ($attempt -eq 3) {
Write-Error $err
Write-Error "ARM frontend is returning transient errors — please retry in a few minutes."
exit 1
}
Start-Sleep -Seconds $backoff[$attempt - 1]
}
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| writing-skillsobra/superpowersUse when creating new skills, editing existing skills, or verifying skills work before deployment | Stars: 319k | Updated | Claude CodeCodex | Verified | Install |
| xlsxanthropics/skillsUse this skill any time a spreadsheet file is the primary input or output. This means any task where the user wants to: open, read, edit, or fix an existing .xlsx, .xlsm, .xltx, .csv, or .tsv file (e.g., adding columns, computing formulas, formatting, charting, cleaning messy data); create a new spreadsheet from scratch or from other data sources; or convert between tabular file formats. Trigger especially when the user references a spreadsheet file by name or path — even casually (like "the xlsx in my downloads") — and wants something done to it or produced from it. Also trigger for cleaning or restructuring messy tabular data files (malformed rows, misplaced headers, junk data) into proper spreadsheets. The deliverable must be a spreadsheet file. Do NOT trigger when the primary deliverable is a Word document, HTML report, standalone Python script, database pipeline, or Google Sheets API integration, even if tabular data is involved. | Stars: 196k | Updated | Claude CodeCodex | Verified | Install |
| shipping-and-launchaddyosmani/agent-skillsPrepares production launches. Use when preparing to deploy to production, or when asking what needs to be in place before shipping. Use when you need a pre-launch checklist, when setting up monitoring, when planning a staged rollout, or when you need a rollback strategy. | Stars: 118k | Updated | Claude CodeCodex | Verified | Install |
| childhoodthedotmack/claude-memBabysit a shipped release after merge, publication, or deployment. Verify published packages, production behavior, installed plugins, and late CI or user reports until the observation window is clean; use babysit for PR readiness before release. | Stars: 117k | Updated | Claude CodeCodex | Verified | Install |