locked
Azure Windows VM auto shutdown stopped working for 2 VMs RRS feed

Answers

All replies

  • Add a sequencestart and a sequencestop tag with a positive integer value to VMs that are targeted in External_Start_ResourceGroupNames and External_Stop_ResourceGroupNames variables. The start and stop actions are performed in ascending order. To learn how to tag a VM, see Tag a Windows Virtual Desktop Machine in Azure and Tag a Linux Virtual Machine in Azure.

    Modify the schedules Sequenced-StartVM and Sequenced-StopVM to the date and time that meet your requirements and enable the schedule.

    Run the SequencedStartStop_Parent runbook with ACTION set to start and WHATIF set to True to preview your changes.

    Preview the action and make any necessary changes before implementing against production VMs. When ready, manually execute the runbook with the parameter set to False, or let the Automation schedule Sequenced-StartVM and Sequenced-StopVM run automatically following your prescribed schedule.

    Target the start and stop action by VM list

    Add a sequencestart and a sequencestop tag with a positive integer value to VMs you plan to add to the VMList parameter.

    Run the SequencedStartStop_Parent runbook with ACTION set to start, add a comma-separated list of VMs in the VMList parameter field, and then set WHATIF to True. Preview your changes.

    Configure the External_ExcludeVMNames variable with a comma-separated list of VMs (VM1, VM2, VM3).

    This scenario does not honor the External_Start_ResourceGroupNames and External_Stop_ResourceGroupnames variables. For this scenario, you need to create your own Automation schedule. For details, see Scheduling a runbook in Azure Automation.

    Preview the action and make any necessary changes before implementing against production VMs. When ready, manually execute the monitoring-and-diagnostics/monitoring-action-groupsrunbook with the parameter set to False. Alternatively, let the Automation schedule Sequenced-StartVM and Sequenced-StopVM run automatically following your prescribed schedule.
    Thursday, May 21, 2020 6:03 PM
  • Hello,

    Any update on the issue?

    If the suggested response helped you resolve your issue, do click on "Mark as Answer" and "Up-Vote" for the answer that helped you for benefit of the community.

    Thanks.
    Tuesday, May 26, 2020 5:04 AM
  • Just started working again on its own. Thanks
    Tuesday, May 26, 2020 7:41 AM
  • Glad to hear that issue is resolved.
    Thursday, June 4, 2020 5:02 PM