Ensure that your Microsoft Azure virtual machines (VMs) are configured to use Auto-Shutdown feature in order to minimize waste and control VM costs. For example, Azure VM Auto-Shutdown can be successfully used to stop all virtual machines across your Dev/Test cloud environments when you leave work in the evening, and start them in the morning when you are back in the office.
This rule resolution is part of the Conformity Security & Compliance tool for Azure.
optimisation
The Auto-Shutdown feature represents an efficient, automated solution for Azure cloud users who want to optimize their virtual machine service costs.
Audit
To determine if your Microsoft Azure virtual machines are configured to use Auto-Shutdown, perform the following actions:
Remediation / Resolution
Auto-Shutdown can help you optimize your Azure VM service costs by stopping non-critical virtual machines during off-hours. To enable this feature for your virtual machines, perform the following actions:
Note: Enabling Auto-Shutdown feature for Azure virtual machines using Microsoft Azure CLI and/or Azure PowerShell is not currently supported.References
- Azure Official Documentation
- Announcing auto-shutdown for VMs using Azure Resource Manager
- Azure PowerShell Documentation
- Get-AzureRmVM
- Get-AzureRmResource