preflight

A checklist command for Azure, Microsoft's cloud platform, that checks deployment tools, login status, quotas, and other prerequisites before deployment.

In plain words
What is it for?
Use it before deploying applications, containers, or Azure Functions to confirm that the required tools and account access are ready.
Why use it?
It catches missing software, expired authentication, and configuration problems before they interrupt a deployment.

Command

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add commands/charris-msft/azure-plugin/preflight
Clone the repo
git clone --depth 1 https://github.com/charris-msft/azure-plugin
Per session 24 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,230 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00024 $0.01230
Opus 5 $0.00012 $0.00615
Sonnet 5 $0.00005 $0.00246
Haiku 4.5 $0.00002 $0.00123

Measured yesterday against content hash 3e11e357fe6b, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade B, and why

preflight scanned grade B with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured yesterday.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Asks for rootmediumPrivilege escalation

A mod that escalates privileges can change anything on the machine, not only the project.

# Linux: sudo systemctl start docker
commands/preflight.md · 162 lines

How it starts

The opening of the file, as written. The whole thing — 162 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Azure Pre-flight Checks

Run these checks BEFORE any Azure deployment to avoid mid-deployment failures.

Check Sequence

Execute these checks in order and report all issues before proceeding:

1. Tool Installation Check

# Check Azure CLI
az version 2>/dev/null || echo "MISSING: Azure CLI (az)"

# Check Azure Developer CLI
azd version 2>/dev/null || echo "MISSING: Azure Developer CLI (azd)"

# Check Docker (if container deployment)
docker version 2>/dev/null || echo "MISSING: Docker"

# Check func (if Functions deployment)
func --version 2>/dev/null || echo "MISSING: Azure Functions Core Tools"

If any tool is missing:

  • Use azure__extension_cli_install MCP tool to get installation instructions
  • Or offer to run installation commands directly:
    • Windows: winget install Microsoft.AzureCLI, winget install Microsoft.Azd
    • macOS: brew install azure-cli, brew tap azure/azd && brew install azd

2. Authentication Check

# Check Azure CLI login
az account show --query "{Name:name, State:state, IsDefault:isDefault}" -o table 2>/dev/null || echo "NOT AUTHENTICATED: Run 'az login'"

# Check current subscription
az account show --query "id" -o tsv

# Check azd auth (uses az credentials)
azd auth login --check-status 2>/dev/null || echo "AZD: Will use Azure CLI credentials"

If not authenticated:

  • Offer device code auth for remote/headless: az login --use-device-code
  • Set longer timeout if auth fails: recommend user run az login in separate terminal

3. Subscription Quota Check

# Get subscription ID
SUBSCRIPTION=$(az account show --query id -o tsv)

# Check compute quotas (for Container Apps, AKS, VMs)
az quota usage list --scope "/subscriptions/$SUBSCRIPTION/providers/Microsoft.ContainerInstance/locations/eastus" 2>/dev/null || echo "Cannot check quotas - may need to verify manually"

# List current resource usage
az resource list --query "length(@)" -o tsv

Use MCP tools for detailed quota check:

Use azure__quota tools to check:
- Container instance limits
- App Service plan limits
- Storage account limits
- Cosmos DB account limits

Read the full file on GitHub · 162 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. yesterday First seen · 162 lines · 24 tokens per session scan B 3e11e357fe6b

Subscribe to this mod's changes

preflight is a command published in the GitHub repository charris-msft/azure-plugin (2 stars, last pushed 7mo ago), licensed MIT. It adds 24 tokens to every session and 1,230 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it B with 1 finding (asks for root). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.