feat: add storage quota visibility (Get-StorageQuota.ps1) - #25
Merged
Conversation
Read-only collector for the per-subscription, per-region storage-account count quota (the data behind az storage account show-usage, default 250) with used/limit/available/PctUsed and OK/NearLimit/AtLimit flags. Optionally (-IncludeDiskCapacityInventory) adds an informational managed-disk capacity inventory - total provisioned GiB by region and disk SKU from Resource Graph - explicitly flagged IsQuota=False/ Informational with a blank limit, because Azure exposes no general per-subscription managed-disk capacity quota usage API. Supports -Location, -AllLocations and the standard subscription selectors. Reader-only. Resolves #14. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Closed
3 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Implements #14 — Storage quota coverage following the design posted on the issue.
Adds read-only
scripts/Get-StorageQuota.ps1:az storage account show-usage, default limit 250) →StorageAccountsrows withUsed / Limit / Available / PctUsedand anOK/NearLimit/AtLimitflag.-IncludeDiskCapacityInventory) → total provisioned GiB by region and disk SKU, summed from Resource Graph.Honesty rules baked in
IsQuota=False, blankLimit/Available/PctUsedandFlag=Informational— never a compliance signal.Parameters
-Location(defaultnorwayeast),-AllLocations,-SubscriptionIds,-SubscriptionCsv,-NearLimitPct(default 80),-IncludeDiskCapacityInventory,-OutPath.Validation
StorageAccountsquota returns correctly (e.g.12/250,OK); the disk-inventory path against a subscription with disks returns provisioned-GiB rows grouped by SKU (Standard_LRS,Premium_LRS,StandardSSD_LRS,StandardSSD_ZRS), all correctly flaggedIsQuota=False/Informationalwith blank limit.Docs
README services matrix + Learn link (storage account limits),
docs/commands.mdscenario row,docs/concepts.mdnew "Storage quota" section,docs/getting-started.md+AGENTS.mdaccess tables,CHANGELOG.md[Unreleased].Resolves #14.