Loading skill
Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Deploys Python Flask, Django, or FastAPI code to Azure App Service Linux, creating resource group, plan, and web app if missing.
32% 73%+41 ptsof test cases passed
Passed 16 of 22 test cases with the skill, and 7 of 22 without it.
This test ran on v1. v2 is the current version and hasn’t been tested on gemini-3.6-flash yet.
3 of 3 safety checks passed
Not used yet
#!/usr/bin/env bash
# retry-az-create.sh
# Wraps the idempotent `(az ... show ...) || (az ... create ...)` pair with
# silent retries against transient ARM frontend errors (connection resets,
# 429/502/503/504, timeouts).
#
# Usage:
# ./retry-az-create.sh "<show-command>" "<create-command>"
#
# Both commands are passed as single shell-quoted strings. The script:
# - runs `show` first (short-circuits any partially-succeeded prior attempt
# and avoids false NameAlreadyExists / Conflict errors);
# - if `show` fails, runs `create`;
# - on transient failure, retries up to 2 times (3 attempts total) with
# 5s then 15s backoff;
# - on non-transient failure, surfaces the original error and exits 1.
#
# Examples:
# ./retry-az-create.sh \
# "az group show -n my-rg --only-show-errors" \
# "az group create -n my-rg -l eastus2"
#
# ./retry-az-create.sh \
# "az appservice plan show -n my-plan -g my-rg --only-show-errors" \
# "az appservice plan create -n my-plan -g my-rg --is-linux --sku P0v3 -l eastus2"
set -uo pipefail
SHOW_CMD="${1:?Usage: $0 \"<show-command>\" \"<create-command>\"}"
CREATE_CMD="${2:?Usage: $0 \"<show-command>\" \"<create-command>\"}"
TRANSIENT='Connection reset|Connection aborted|ConnectionError|Read timed out|BadGatewayConnection|ServiceUnavailable|Max retries exceeded|TooManyRequests|\b429\b|\b50[234]\b'
for attempt in 1 2 3; do
# Run show silently; on failure, run create and capture stderr.
if err=$({ eval "$SHOW_CMD -o none 2>/dev/null" || eval "$CREATE_CMD -o none"; } 2>&1); then
exit 0
fi
if ! echo "$err" | grep -qE "$TRANSIENT"; thenNext to this one in the catalogue, plus more from the same author.