Loading source
Pulling the file list, source metadata, and syntax-aware rendering for this listing.
Source from repo
Analyze and reduce Azure cloud costs by right-sizing resources, reservations, and spending policies
Files
Skill
Size
Entrypoint
Format
Open file
Syntax-highlighted preview of this file as included in the skill package.
cost-optimization/services/redis/azure-cache-for-redis.md
1## Azure Redis Cost Optimization23Reference guide for identifying cost savings opportunities in Azure Redis deployments through analysis and targeted scans.45## Subscription Input Options67Accept any of these identifiers to identify subscriptions for analysis:89| Input Type | Example | Use Case |10|------------|---------|----------|11| **Subscription ID** | `a1b2c3d4-...` | Analyze specific subscription |12| **Subscription Name** | `Production-Environment` | User-friendly identifier |13| **Subscription Prefix** | `CacheTeam -` | Analyze all team subscriptions |14| **Tenant ID** | `tenant-guid` | Analyze entire organization |15| **"All my subscriptions"** | (keyword) | Scan all accessible subscriptions |1617## Cost Optimization Rules1819When analyzing each cache, apply these prioritized rules:2021| Priority | Rule | Detection Logic | Recommendation | Avg Savings |22|----------|------|----------------|----------------|-------------|23| ๐ด Critical | Failed Cache | `provisioningState == 'Failed'` | Delete immediately | $50-300/mo |24| ๐ด Critical | Stuck Creating | `provisioningState == 'Creating'` AND age >4 hours | Delete/support ticket | $50-300/mo |25| ๐ High | Premium in Dev | `sku.name == 'Premium'` AND `tags.environment in ['dev','test','staging']` | Downgrade to Standard | $175/mo |26| ๐ High | Enterprise Unused | `sku.name startsWith 'Enterprise'` AND no modules/clustering | Downgrade to Premium/Standard | $300-1000/mo |27| ๐ High | Old Test Cache | `tags.purpose == 'test'` AND age >60 days | Delete or downgrade | $50-150/mo |28| ๐ก Medium | Large Dev Cache | `sku.capacity >3` AND `tags.environment == 'dev'` | Reduce size | $100-300/mo |29| ๐ก Medium | No Expiration Tag | Missing `expirationDate` or `ttl` tag | Add cleanup policy | N/A |30| ๐ข Low | Untagged Resource | Missing required tags (`environment`, `owner`) | Apply tags | N/A |31| ๐ข Low | Old Cache | Age >365 days | Review if still needed | Variable |3233## Report Templates3435### Subscription-Level Summary36Quick overview of costs and issues per subscription (use for multi-subscription scans). Include: subscription name/ID, total monthly cost, number of caches, cache count by SKU tier, and top issues found.3738### Detailed Cache Analysis39Individual cache breakdown with specific recommendations. Include: cache name, resource group, SKU tier, current cost, memory usage %, CPU usage %, connection count, and specific rightsizing recommendations.4041## Tools & Commands4243**MCP Tool:** `azure__redis` with command `redis_list` (parameter: `subscription`)4445**Azure CLI Equivalents:**46- `az account list` - List subscriptions47- `az redis list --subscription <id>` - List Redis caches48- `az redis show` - Get cache details49- `az redis delete` - Remove cache50