Skip to main content
Infrastructure pricing tiers are configurable through Terraform variables, allowing optimal cost management across environments while maintaining appropriate performance levels.

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

In environments/{env}/terraform.tfvars:

Method 2: CLI override


Autoscaling requirements

Autoscaling requires Standard tier (S1+) or Premium tier. Basic tier does not support autoscaling.

Cost optimization

Development environments

Production environment

Strategies

  1. Environment isolation - Cheaper tiers for non-prod
  2. Scheduled scaling - Consider dev/test shutdown automation
  3. Right-sizing - Monitor usage and adjust SKUs
  4. 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

Files modified