Hello, @11215 !
When troubleshooting auto-shutdown in Azure DevTest Labs, you'll want to look at the configuration of the lab. Here, I've created a lab with auto-shutdown enabled:
- Go to your DevTest Labs resource
- Select Configuration and policies
- Under Schedules, select Auto-shutdown
- Set Enabled to On
- Enter a Scheduled shutdown time and confirm the Time zone
- Click Save
If the virtual machine is running during the scheduled shutdown time, it will now automatically shutdown. You can see from the screenshot above that I've set the auto-shutdown for 12:00am.
Here is a VM at 11:59pm. You can see that it's running:
Here is the same VM at 12:01am. You can see that it's in the process of shutting down:
Here is the same VM at 12:02am. You can see that the VM has shutdown and is no longer allocated:
What might interrupt this process?
- Users are able to opt out or set schedules: Go to your DevTest Labs resource > Configuration and policies > Schedules / Auto shutdown policy, and make sure that the user control matches what you intended.
- Check your lab configuration: Go to your DevTest Labs resource > Configuration and policies > Schedules / Auto-shutdown, and make sure that Enabled is set to On, the time is correct, and the time zone is correct.
- Check your VM configuration: Go to your DevTest Labs resource > My Lab / All resources > Click on the VM > Operations / Auto-shutdown, and make sure that Enabled is set to On, the time is correct, and the time zone is correct.
- Toggle auto-shutdown off and on: If there have been changes, this may help restore a broken relationship with the configuration.
- Check the state of the VM: Check the VM to see if there is anything that might be preventing it from turning off.
If you have tried everything above and are still running into issues getting auto-shutdown to work, let us know so we can troubleshoot this further.