π Azure Cosmos DB Account has zero Total Request Units π’
- Contextual name: π Account has zero Total Request Units π’
- ID:
/ce/ca/azure/cosmos-db/idle-cosmosdb-account
- Located in: π Azure Cosmos DB
Flagsβ
- π’ Policy with categories
- π’ Policy with type
- π’ Production policy
Our Metadataβ
- Policy Type:
COMPLIANCE_POLICY
- Policy Category:
COST
Logicβ
- π§ prod.logic.yaml π’
Descriptionβ
Descriptionβ
This policy identifies Azure Cosmos DB accounts that have recorded zero Total Request Units (RU) over the past 30 days.
A Request Unit is a performance metric that abstracts system resource consumption (CPU, IOPS, memory, etc.) required for executing database operations within Azure Cosmos DB.
Rationaleβ
Monitoring Total Request Units is essential for detecting idle or underutilized Cosmos DB accounts. By identifying accounts with zero recent activity, you can assess their relevance and potential for deallocation, optimizing cloud resource management and cost efficiency.
You're billed on an hourly basis for the number of RUs per second provisioned.
Impactβ
Idle Cosmos DB accounts incur ongoing charges for provisioned throughput, contributing to unnecessary cloud spend and resource waste.
Auditβ
This policy flags an Azure Cosmos DB Account as
INCOMPLIANT
if theTotal Request Units Sum
for the past 30 days equals 0.A Cosmos DB Account will be marked as
INAPPLICABLE
if the account type is serverless, as determined by theCapabilities
field with the value EnableServerless.
Remediationβ
Remediationβ
If the Account is No Longer Neededβ
Delete the account using the following commands:
Azure CLIβ
az cosmosdb delete --name {{cosmosdb-account-name}} --resource-group {{resource-group-name}}
PowerShellsβ
Remove-AzCosmosDBAccount -ResourceGroupName "{{resource-group-name}}" -Name "{{cosmosdb-account-name}}"
If the Account is Needed But Idle Consider Serverless Tierβ
To get started with using the serverless model, you must create a new serverless account. Migrating an existing account to or from the serverless model currently isn't supported.
policy.yamlβ
Linked Framework Sectionsβ
Section | Sub Sections | Internal Rules | Policies | Flags |
---|---|---|---|---|
πΌ Cloudaware Framework β πΌ Waste Reduction | 9 |