Azure Automation account for scheduled infrastructure operations. Runs PowerShell runbooks to manage infrastructure resources, such as starting PostgreSQL and AKS at the beginning of business hours to reduce costs.
[!NOTE] Part of the Deployment Guide. Return there for navigation and deployment order.
cd infrastructure/terraform && terraform apply)environment, resource_prefix, location)cd infrastructure/terraform/automation
# Configure schedule and resources
# Edit terraform.tfvars with your schedule
terraform init && terraform apply
Example terraform.tfvars:
environment = "dev"
location = "westus3"
resource_prefix = "rob"
instance = "001"
should_start_postgresql = true
schedule_config = {
start_time = "13:00"
week_days = ["Monday", "Tuesday", "Wednesday", "Thursday", "Friday"]
timezone = "UTC"
}
🤖 Crafted with precision by ✨Copilot following brilliant human instruction, then carefully refined by our team of discerning human reviewers.