Automation Policies#
Automations run lifecycle actions on your resources on a schedule — stop them after business hours, start them in the morning, clean up unused disks. They target the groups you define in Allocate.
Open Automation:
Policy Catalog — the available policies.
Active Automations — the automations created in your tenant.
Available policies#
Policy |
Action |
|---|---|
Start Policy |
Starts resources |
Stop Policy |
Stops or deallocates resources |
Unused volumes |
Deletes unattached disks — see Unused Volumes |
Filter the catalog by Kind and Category, or search by name.
Create an automation#
In Policy Catalog, select Use on a policy. The Create Automation wizard opens:
Name & Groups — a recognisable name (it cannot be changed later) and the target groups, environments or projects.
Version — the policy version range, for example
*(always latest) or~1.0.0.Schedule — when it runs, with the visual cron builder. The schedule is shown in plain English, with your UTC offset.
Configuration — options of the policy, and Require approval before executing actions.
Select Create.
Common schedule |
Cron |
|---|---|
Stop weekdays at 19:00 |
|
Start weekdays at 07:00 |
|
Every day at midnight |
|
Fridays at 18:00 |
|
Tip
Pair a Stop and a Start on your Dev environments (stop 19:00, start 07:00 on weekdays): about 12 idle hours a day, roughly half the compute cost.
Start and Stop options#
Option |
Effect |
|---|---|
Include only resource types |
Limit the action to the selected types; empty = every supported type |
Exclude resource names |
Skip names matching patterns, case-insensitive, with |
Supported resources (Start / Stop)#
Provider |
Resources |
|---|---|
Azure |
Virtual Machines, VM Scale Sets, Application Gateways, MySQL and PostgreSQL flexible servers, AKS clusters, App Service plans (Premium v4) |
AWS |
EC2 instances, RDS databases, Redshift clusters |
GCP |
Compute Engine instances, managed instance groups, Cloud SQL instances, GKE Standard clusters |
Stopping an App Service plan stops all its apps and slots and pauses its compute billing. GKE Autopilot clusters cannot be stopped.
The cloud connection must be ReadWrite with permission to perform the action.
Run, approve and review#
Open an automation from Active Automations:
Details — scope, version range, schedule and eligible resources.
Trigger now (play button) — run it immediately. Dry Run (on by default) shows what would happen without changing anything. The automation must be active.
Approvals — if approval is required, review each batch of candidate resources and Approve batch or Reject.
Job History — every run with who triggered it and its log. Runs are marked Applied or Dry Run.
Run status |
Meaning |
|---|---|
Pending / Running |
Queued or in progress |
Completed |
Finished; the log shows processed and skipped resources |
Failed |
Usually missing permissions on the cloud connection |
Cancelled |
Stopped before completion |
Resources already in the target state, or excluded by name, are skipped.
Important
Automations target groups from Allocate. Renaming, moving or deleting a group immediately changes what its automations act on.
Limits#
The number of automations is limited by the tenant quota.