Forum Discussion
AB21805
Jun 08, 2023Bronze Contributor
How do I set a automation to stop a VM on weekends & evenings
Hi All, I want to stop a VM during non working hours which are evenings and weekends, can this been done?
eliekarkafy
Jun 08, 2023MVP
AB21805 yes you can use the auto-shutdown from the virtual machine blade
or you can create a runbook to stop and start VMs based on a schedule
Please click Mark as Best Response & Like if my post helped you to solve your issue. This will help others to find the correct solution easily.
AB21805
Jun 08, 2023Bronze Contributor
Hi Thanks for the reply
Start/Stop VMs during off hours - V2 is the only option now which has different options
Any ideas on what to put for them
- eliekarkafyJun 08, 2023MVPThe StartStop V2 will create its own resources so you need to define the name of your resources in each
Azure function App Name:
The name of the Azure Function App that will perform the action on the VM(s)
Application Insight Name: The name of the Application Insights instance that will hold the analytics for Start/Stop.- AB21805Jun 08, 2023Bronze ContributorIs the
Azure function app name / insight name just something unique I want to give it not something I have to create prior to the Start/Stop v2?
Does Start/Stop v2 cost?- eliekarkafyJun 08, 2023MVPCorrect, the Start/Stop v2 will create their own resources and for sure it cost. if you have a cost concern than you need to use the auto-shutdown from each virtual machine blade or runbooks from the azure automation account which cheaper for sure