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.ps1
View on GitHub<#
.SYNOPSIS
Checks Azure quota limits and current usage for a resource provider.
.DESCRIPTION
Installs the quota CLI extension if needed, then queries quota limits and
current usage in a single call. Returns a table with limit, usage, and
available capacity for every quota (or a single quota when ResourceName is provided).
.PARAMETER ResourceProvider
Azure resource provider namespace (e.g., "Microsoft.Compute", "Microsoft.Network").
.PARAMETER Region
Azure region to check (e.g., "eastus", "westus2").
.PARAMETER ResourceName
Quota resource name (e.g., "standardDSv3Family"). If omitted, returns all quotas.
.PARAMETER SubscriptionId
Azure subscription ID. Defaults to the current subscription.
.EXAMPLE
.\check-quota.ps1 -ResourceProvider Microsoft.Compute -Region eastus
# Shows limit, usage, and available capacity for ALL compute quotas in eastus
.EXAMPLE
.\check-quota.ps1 -ResourceProvider Microsoft.Compute -Region eastus -ResourceName standardDSv3Family
# Shows limit, usage, and available capacity for the DSv3 VM family only
#>
param(
[Parameter(Mandatory)][string]$ResourceProvider,
[Parameter(Mandatory)][string]$Region,
[string]$ResourceName,
[string]$SubscriptionId
)
$ErrorActionPreference = "Stop"
# Ensure the quota extension is installed
$ext = az extension list --query "[?name=='quota'].name" -o tsv 2>$null
if (-not $ext) {
Write-Host "Installing quota extension..."
az extension add --name quota --yes 2>$null
}
# Resolve subscription
if (-not $SubscriptionId) {
$SubscriptionId = az account show --query id -o tsv
}
$scope = "/subscriptions/$SubscriptionId/providers/$ResourceProvider/locations/$Region"
Write-Host "Checking quotas in scope $scope"
if ($ResourceName) {
# Single-resource mode
Write-Host "Quota for '$ResourceName' ($ResourceProvider, $Region):"
Write-Host ""
$limit = az quota show --resource-name $ResourceName --scope $scope -o json 2>$null | ConvertFrom-Json
$usage = az quota usage show --resource-name $ResourceName --scope $scope -o json 2>$null | ConvertFrom-Json
$limitValue = $limit.properties.limit.value
$usageValue = $usage.properties.usages.value
$available = $limitValue - $usageValue
[PSCustomObject]@{
Resource = $ResourceName
Region = $Region
Limit = $limitValue
Usage = $usageValue
Available = $available
} | Format-Table -AutoSize
} else {
# All-quotas mode: fetch limits and usage, join by name
Write-Host "Quotas for $ResourceProvider in ${Region}:"
Write-Host ""
$quotas = az quota list --scope $scope -o json 2>$null | ConvertFrom-Json
$usages = az quota usage list --scope $scope -o json 2>$null | ConvertFrom-Json
$usageLookup = @{}
foreach ($u in $usages) {
$usageLookup[$u.name] = $u.properties.usages.value
}
$results = foreach ($q in $quotas) {
$name = $q.name
$limitValue = $q.properties.limit.value
$usageValue = if ($usageLookup.ContainsKey($name)) { $usageLookup[$name] } else { 0 }
$available = $limitValue - $usageValue
[PSCustomObject]@{
Resource = $name
Region = $Region
Limit = $limitValue
Usage = $usageValue
Available = $available
}
}
$results | Format-Table -AutoSize
}
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 |