Jan 02 2021 05:49 AM
Hi All,
I would like to know why Azure Dev Test lab subscription is required to enable auto shutdown feature for Azure VMs ?
Jan 03 2021 10:33 AM - edited Jan 05 2021 10:35 AM
Hi what is the reference for this ?
Because in a regular subscription ( Not only Azure Dev Test Lab ) you have the feature on the blade of each virtual machine . Also you can leverage Azure Resource Tags, Azure log Analytics and Azure Automation to start and stop VM on schedule if autoshutdown is not suitable for your need .
More information here : Azure Policy - Auto shutdown your virtual machines - DEV Community
https://docs.microsoft.com/en-us/azure/automation/automation-solution-vm-management
Jan 03 2021 11:47 PM
SolutionHi @Sagar_Lad ,
This is not entirely correct. You don't need to create a DevTest lab resource to enable auto-shutdown for Azure VMs, but you need to provision a 'microsoft.devtestlab/schedules' resource that will enable this functionality.
As you can see, the schedule is coming from devtestlabs RP, so the only "dependency" is that this RP must be registered in your subscription and this service must be available in the region, where you deploy your VMs in Azure. You can then for instance extend your ARM template, like it is described in many places, for example here.
Jan 05 2021 09:13 AM
@Sagar_Lad This is not applicable for Dev Test Lab subscription, you can setup an automation Auto stop/Start policy for any subscription to save computing cost.
Jan 03 2021 11:47 PM
SolutionHi @Sagar_Lad ,
This is not entirely correct. You don't need to create a DevTest lab resource to enable auto-shutdown for Azure VMs, but you need to provision a 'microsoft.devtestlab/schedules' resource that will enable this functionality.
As you can see, the schedule is coming from devtestlabs RP, so the only "dependency" is that this RP must be registered in your subscription and this service must be available in the region, where you deploy your VMs in Azure. You can then for instance extend your ARM template, like it is described in many places, for example here.