Robertjam954/multimodal_rag_application / .claude/skills/azure-quotas
azure-quotas
VerifiedCheck/manage Azure quotas and usage across providers. For deployment planning, capacity validation, region selection. WHEN: "check quotas", "service limits", "current usage", "request quota increase", "quota exceeded", "validate capacity", "regional availability", "provisioning limits", "vCPU limit", "how many vCPUs available in my subscription".
| File | Kind | Size |
|---|---|---|
| SKILL.md | skill md | 11.8 KB |
| references/advanced-commands.md | markdown | 1.8 KB |
| references/commands.md | markdown | 10.4 KB |
| scripts/check-quota.ps1 | script | 3.3 KB |
| scripts/check-quota.sh | script | 3.0 KB |
scripts/check-quota.sh
View on GitHub#!/usr/bin/env bash
# check-quota.sh
# Checks Azure quota limits and current usage for a resource provider.
# Returns a table with limit, usage, and available capacity for every quota
# (or a single quota when resource-name is provided).
#
# Usage:
# ./check-quota.sh <resource-provider> <region> [resource-name] [subscription-id]
#
# Examples:
# ./check-quota.sh Microsoft.Compute eastus # All compute quotas with usage
# ./check-quota.sh Microsoft.Compute eastus standardDSv3Family # Single quota with usage
set -euo pipefail
RESOURCE_PROVIDER="${1:?Usage: $0 <resource-provider> <region> [resource-name] [subscription-id]}"
REGION="${2:?Usage: $0 <resource-provider> <region> [resource-name] [subscription-id]}"
RESOURCE_NAME="${3:-}"
SUBSCRIPTION_ID="${4:-}"
# Ensure the quota extension is installed
if ! az extension list --query "[?name=='quota'].name" -o tsv 2>/dev/null | grep -q quota; then
echo "Installing quota extension..."
az extension add --name quota --yes 2>/dev/null
fi
# Resolve subscription
if [ -z "$SUBSCRIPTION_ID" ]; then
SUBSCRIPTION_ID=$(az account show --query id -o tsv)
fi
SCOPE="/subscriptions/$SUBSCRIPTION_ID/providers/$RESOURCE_PROVIDER/locations/$REGION"
echo "Checking quotas in scope $SCOPE"
if [ -n "$RESOURCE_NAME" ]; then
# Single-resource mode
echo "Quota for '$RESOURCE_NAME' ($RESOURCE_PROVIDER, $REGION):"
echo ""
LIMIT=$(az quota show \
--resource-name "$RESOURCE_NAME" \
--scope "$SCOPE" \
--query "properties.limit.value" -o tsv)
USAGE=$(az quota usage show \
--resource-name "$RESOURCE_NAME" \
--scope "$SCOPE" \
--query "properties.usages.value" -o tsv)
AVAILABLE=$((LIMIT - USAGE))
printf "%-30s %-10s %-10s %-10s %-10s\n" "Resource" "Region" "Limit" "Usage" "Available"
printf "%-30s %-10s %-10s %-10s %-10s\n" "--------" "------" "-----" "-----" "---------"
printf "%-30s %-10s %-10s %-10s %-10s\n" "$RESOURCE_NAME" "$REGION" "$LIMIT" "$USAGE" "$AVAILABLE"
else
# All-quotas mode: fetch limits and usage, join by name
echo "Quotas for $RESOURCE_PROVIDER in $REGION:"
echo ""
QUOTAS_JSON=$(az quota list --scope "$SCOPE" -o json 2>/dev/null)
USAGES_JSON=$(az quota usage list --scope "$SCOPE" -o json 2>/dev/null)
printf "%-40s %-10s %-10s %-10s %-10s\n" "Resource" "Region" "Limit" "Usage" "Available"
printf "%-40s %-10s %-10s %-10s %-10s\n" "--------" "------" "-----" "-----" "---------"
echo "$QUOTAS_JSON" | python3 -c "
import json, sys
quotas = json.load(sys.stdin)
usages = json.loads('''$USAGES_JSON''')
usage_lookup = {}
for u in usages:
usage_lookup[u['name']] = u.get('properties', {}).get('usages', {}).get('value', 0)
for q in quotas:
name = q['name']
limit = q.get('properties', {}).get('limit', {}).get('value', 0)
used = usage_lookup.get(name, 0)
avail = limit - used
print(f'{name:<40} $REGION{\"\":<4} {limit:<10} {used:<10} {avail:<10}')
"
fi
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: 322k | 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: 198k | 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: 119k | 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: 118k | Updated | Claude CodeCodex | Verified | Install |