Current configuration
App service plan options
Basic tier (B1, B2, B3)
Best for: Development and testing environments
Standard tier (S1, S2, S3)
Best for: Production workloads with moderate traffic
Premium tier (P1v3, P2v3, P3v3)
Best for: High-traffic production with advanced requirements
Database SKU options
Burstable tier (B_Standard_*)
- ✅ Cost-effective for light workloads
- ✅ CPU credits for burst performance
- ❌ Limited baseline performance
General purpose (GP_Standard_*)
- ✅ Consistent performance
- ✅ Higher IOPS
- ✅ Read replicas support
Memory optimized (MO_Standard_*)
- ✅ High memory-to-vCore ratio
- ✅ Best for analytics
- 💰 Highest cost
Configuration
Method 1: tfvars file
Inenvironments/{env}/terraform.tfvars:
Method 2: CLI override
Autoscaling requirements
Cost optimization
Development environments
Production environment
Strategies
- Environment isolation - Cheaper tiers for non-prod
- Scheduled scaling - Consider dev/test shutdown automation
- Right-sizing - Monitor usage and adjust SKUs
- Reserved capacity - Consider reservations for prod
Monitoring costs
Azure cost management
Track spending by resource group:- Navigate to Cost Management + Billing
- Filter by resource group (e.g.,
dev01-cus-*) - Set up budget alerts
Azure advisor
Get right-sizing recommendations:- Check Advisor → Cost recommendations
- Review underutilized resources