π‘οΈ Azure DevTest Lab Virtual Machine auto-shutdown is disabledπ’
- Contextual name: π‘οΈ DevTest Lab VM auto-shutdown is disabledπ’
- ID:
/ce/ca/azure/devtest-labs/virtual-machine-auto-shutdown-disabled - Tags:
- π’ Policy with categories
- π’ Policy with type
- π’ Production policy
- Policy Type:
BEST_PRACTICE - Policy Categories:
COST
Statsβ
not available
Logicβ
- π§ prod.logic.yamlπ’
Descriptionβ
Descriptionβ
Enable auto-shutdown for Azure DevTest Lab virtual machines unless the workload has an approved operational exception. The applicable lab schedule controls the time at which DevTest Lab shuts down virtual machines that are no longer needed.
Rationaleβ
Development and test workloads commonly run only during defined hours. An enabled auto-shutdown schedule prevents unattended virtual machines from continuing to consume billable compute resources outside those hours.
Impactβ
Without auto-shutdown, inactive DevTest Lab virtual machines can continue to incur compute charges. Enabling a schedule can interrupt workloads that are legitimately needed after hours, so confirm the lab's maintenance window, time zone, and approved exceptions before changing it.
Auditβ
This policy marks an Azure DevTest Lab Virtual Machine as
INCOMPLIANTif its applicablelabVmsShutdownschedule:
- Is missing, or
- Has a
statusother thanEnabled.Default Valueβ
By default, lab auto-shutdown is disabled.
Referencesβ
... see more
Remediationβ
Remediationβ
Before enabling auto-shutdown, confirm the lab's operating hours, maintenance windows, time zone, notification recipients, and any approved exception for workloads that must remain available after hours.
Azure portalβ
- Open the affected Azure DevTest Lab.
- Select Configuration and policies, then Auto-shutdown.
- Set Enabled to On, then set a shutdown time and time zone that match the lab's approved operating schedule.
- Configure notifications as required and select Save.
- For a VM with an individual schedule, open the VM, select Operations, then Auto-shutdown, and set Enabled to On. Individual VM schedules can override the lab schedule when the lab's auto-shutdown policy permits them.
- Verify that each affected VM reports an applicable shutdown schedule with status
Enabledafter the next Cloudaware collection.Automationβ
For infrastructure-as-code or API-based remediation, create or update the
Microsoft.DevTestLab/labs/schedulesresource namedlabVmsShutdownwith... see more
policy.yamlβ
Linked Framework Sectionsβ
| Section | Sub Sections | Internal Rules | Policies | Flags | Compliance |
|---|---|---|---|---|---|
| πΌ Cloudaware Framework β πΌ Resource Optimization | 37 | no data |