Powershell Script to shutdown Virtual Machine for users

Joseph az 0 Reputation points
2024-03-29T16:25:13.37+00:00

Is there any script that help to shutdown the VM in azure for users.

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
7,870 questions
{count} votes

1 answer

Sort by: Most helpful
  1. v-vvellanki-MSFT 4,920 Reputation points Microsoft Vendor
    2024-03-29T19:02:35.71+00:00

    Hi @Joseph az,

    Thanks for contacting Microsoft Q&A platform.

    Do you need it for normal virtual machines or for AVD session hosts?

    For normal vm's you can use the auto shutdown feature. https://learn.microsoft.com/en-us/azure/devtest-labs/devtest-lab-auto-shutdown

    Otherwise you can use scaling plans for AVD: https://learn.microsoft.com/en-us/azure/virtual-desktop/autoscale-scaling-plan?tabs=pooled-autoscale
    Hope this helps you.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.