Automation
Reply CMP Automation lets you schedule routine operations and enforce standards at scale. Policies target groups of resources and run on a schedule or on demand.
Note
Automation acts on resources you scope via Groups (defined in FinOps → Allocate). Membership is dynamic—if a resource enters a group, it is included automatically in future runs.
Quick start
Open Automation → New Policy.
Name the policy and set Status = Active.
Choose a Type (Start VM, Stop VM, or Enforce Tags).
Select one or more Groups to target.
Set the Schedule (cron expression).
Save. You can also Run now to execute immediately.
Tip
Use separate policies for prod and non‑prod to keep scopes simple and audit trails clear.
How it works
A policy defines:
Name and Status (Active/Disabled)
Type: the action to perform
Schedule: when to run (cron)
Scope: Groups whose resources are affected
Execution flow:
On schedule or manual trigger, the policy resolves the targeted resources from the selected Groups.
The action runs provider‑side using the identity attached to the connection.
Results are recorded with per‑resource outcomes (processed, failed, skipped) and an overall status.
Policy types and supported resources
Start/Stop Resources
Start or stop compute and selected managed services.
Azure:
Virtual Machines, VM Scale Sets, Application Gateways, MySQL, PostgreSQL, AKS clusters
AWS:
EC2 Instances, RDS Databases, Redshift Clusters
GCP:
Compute Engine Instances
Managed Instance Groups (stop scales target size to 0; start restores the previous target size)
Cloud SQL Instances
GKE Clusters (Autopilot clusters cannot be stopped)
Warning
Managed Instance Groups are controlled at the group level. Individual instances in a MIG are excluded to avoid conflicts.
Scheduling
Policies use cron syntax. Examples:
Every day at 18:00 →
0 18 * * *
Weekdays at 08:00 →
0 8 * * 1-5
Every 30 minutes →
*/30 * * * *
Tip
Use the policy preview (“Next run”) to validate expressions before activating. Stagger high‑impact jobs to avoid peaks.
Groups and scope
Select one or more Groups to define the scope. Groups come from FinOps → Allocate (organization tree) and can represent BU, product, or team. Pair with Environments (dev/qa/prod) and Projects via allocation rules to target exactly the right set.
Example: Stop Dev after hours
A common policy saves costs by stopping non‑prod workloads outside business hours.
Prerequisites:
Define Groups and Environments in FinOps → Allocate so dev resources are scoped correctly.
Steps:
Open Automation → New Policy.
Name: “Stop Dev after hours”; set Status = Active.
Type: Stop Resources.
Scope: Select your BU/Product Groups and Environment = dev.
Schedule: Weekdays at 19:00 →
0 19 * * 1-5
.Save. Use Run now to test on a small subset first.
Tip
Create a companion “Start Dev in the morning” policy (08:00 → 0 8 * * 1-5
) to restore capacity at the start of the workday.
Monitoring the result:
Open the policy, check the last run status, and review per‑resource outcomes.
Investigate failures (for example, service doesn’t support stop) and adjust scope or resource types.
Execution and monitoring
Run automatically on schedule or trigger Run now.
View execution history with status (Success, Failed, In Progress).
Inspect per‑resource results: processed, failed (with error), skipped (with reason).
See who initiated the run and total duration.
Export logs if you need to share results externally.
Warning
Always test new policies on a small non‑prod group first.
Customization on demand
Note
Need a new action, different resource type, or extra policy conditions? Contact your CMP administrator or your Reply CMP contact point. We can extend supported resources or add custom policy types upon request.
Troubleshooting
Nothing was processed: The selected Groups may be empty at execution time. Verify allocation rules in FinOps and try again.
Unauthorized errors: Ensure the connection identity has the rights to start/stop or tag the resource.
Cron didn’t trigger: Check policy Status = Active and verify the next run preview; adjust the expression if needed.
Partial failures: Review per‑resource errors (for example, service doesn’t support stop/start, tag is immutable) and adjust scope or policy type.
FAQ
Can multiple policies target the same resources?
Yes. Coordinate schedules to avoid conflicting actions (for example, start and stop at the same time).
Do policies evaluate tags at run time or at creation time?
At run time. Group membership is resolved when the policy executes.
Can I pause a policy without deleting it?
Yes. Set Status = Disabled; the schedule will not run until reactivated.
Where can I see what changed?
Use the execution details for per‑resource outcomes. For configuration history, refer to Discovery (resource History) and FinOps for any cost effects.
Glossary
Policy: A scheduled action with a scope and execution plan.
Group: An organizational scope defined in FinOps (organization tree).
Run: A single policy execution instance with logs and results.
Scope: The set of resources resolved from selected Groups at run time.