🛡️ Azure Storage Account has no transactions or stored data🟢
- Contextual name: 🛡️ Storage Account has no transactions or stored data🟢
- ID:
/ce/ca/azure/storage/account-has-no-transactions-or-stored-data - Tags:
- Policy Type:
BEST_PRACTICE - Policy Categories:
COST
Stats
not available
Logic
Description
Description
Review Azure Storage Accounts that have not processed transactions and have not stored data during the last 30 days. The policy evaluates the 30-day sum of the
Transactionsmetric and the 30-day average of theUsed Capacitymetric.Rationale
An unused storage account can still create management overhead and may incur charges for account-level features, such as private endpoints, diagnostic settings, or retained service data. Reviewing accounts with no observed activity or capacity helps identify resources that can be retired after their business and technical dependencies have been verified.
Impact
Storage accounts identified by this policy are candidates for decommissioning. Removing confirmed unused accounts reduces management overhead and costs associated with attached services.
Before deletion, follow the normal change-management process to confirm ownership, application dependencies, and retention or disaster-recovery requirements. Deleting a storage account permanently removes its data and can interrupt dependent workloads.
... see more
Remediation
Remediation
Before Deleting the Storage Account
Confirm that the account is no longer required before deleting it:
- Verify that the
TransactionsandUsed Capacitymetrics have both remained at zero for the last 30 days.- Identify the account owner and confirm that no application, infrastructure template, private endpoint, diagnostic setting, backup, disaster-recovery process, or data-retention requirement depends on the account.
- Check for legal holds, immutability policies, and organizational retention requirements.
- Export or back up any information that must be retained.
From Azure Portal
- In the Azure portal, open the storage account.
- Select
Overview.- Select
Delete.- Enter the storage account name to confirm the deletion, then select
Delete.From Azure CLI
Replace the information within
{{}}with the appropriate values:az storage account delete \
--name {{storage-account-name}} \
--resource-group {{resource-group-name}} \
--yes
policy.yaml
Linked Framework Sections
| Section | Sub Sections | Internal Rules | Policies | Flags | Compliance |
|---|---|---|---|---|---|
| 💼 Cloudaware Framework → 💼 Waste Reduction | 30 | no data |