• About Us
  • Contact Us
  • Advertise
  • Privacy Policy
  • Guest Post
No Result
View All Result
Digital Phablet
  • Home
  • NewsLatest
  • Technology
    • Education Tech
    • Home Tech
    • Office Tech
    • Fintech
    • Digital Marketing
  • Social Media
  • Gaming
  • Smartphones
  • AI
  • Reviews
  • Interesting
  • How To
  • Home
  • NewsLatest
  • Technology
    • Education Tech
    • Home Tech
    • Office Tech
    • Fintech
    • Digital Marketing
  • Social Media
  • Gaming
  • Smartphones
  • AI
  • Reviews
  • Interesting
  • How To
No Result
View All Result
Digital Phablet
No Result
View All Result

Home » How to Shutdown Idle Azure VDI Virtual Machines

How to Shutdown Idle Azure VDI Virtual Machines

DP Staff by DP Staff
November 26, 2025
in How To
Reading Time: 2 mins read
A A
How to Fix Azure Student Subscription Region Error
ADVERTISEMENT

Select Language:

If you’re looking for a way to automatically manage your Azure Virtual Desktop environment, Microsoft offers a helpful scaling automation tool. This tool makes it easier to add or remove virtual machines based on how many users are signed in at different times of the day.

ADVERTISEMENT

The system works by connecting several components: an Azure Automation account, a PowerShell script known as a runbook, a webhook, and a Logic App. When the system runs, the Logic App activates the webhook, which then starts the runbook. The runbook creates jobs that manage the session hosts.

You should define peak and off-peak hours for your environment. Peak hours are when you expect the most users connected, and off-peak hours are when user activity is at its lowest.

During busy periods, the job checks how many users are currently signed in and how many virtual machines (VMs) are available to host those sessions. Based on this data and your settings—specifically the SessionThresholdPerCPU parameter—it determines whether more session hosts are needed. If existing hosts can’t handle the user load, the system will automatically spin up additional VMs.

ADVERTISEMENT

In contrast, during low activity times, the job assesses whether some session hosts can be shut down to save resources. The MinimumNumberOfRDSH parameter helps decide the minimum number of session hosts to keep active. If you set the LimitSecondsToForceLogOffUser parameter to a positive number, the system will place the host VMs into a draining mode. This prevents new connections, prompts current users to save their work, waits for a set period, and then forces users to log off. Once all users are signed out, the system shuts down the VM and resets the host to accept new sessions normally.

You can find more details and step-by-step instructions on setting up this automation in Microsoft’s detailed guide here: Set up scaling script for Azure Virtual Desktop. Implementing this automation can help streamline your environment, reduce costs, and ensure smooth user experiences during peak and off-peak hours.

ChatGPT ChatGPT Perplexity AI Perplexity Gemini AI Logo Gemini AI Grok AI Logo Grok AI
Google Banner
ADVERTISEMENT
DP Staff

DP Staff

Related Posts

Most Valuable Companies in the US 

1.  Nvidia - $4.2 Trillion
2.  Apple - $4.1
Infotainment

Top Most Valuable Companies in the US with Nvidia and Apple Leading

March 3, 2026
PS5 Celebrates 2025 Success, Switch’s Exclusive RPG Arrives May 2026
Gaming

PS5 Celebrates 2025 Success, Switch’s Exclusive RPG Arrives May 2026

March 3, 2026
Did Cristiano Ronaldo Depart Saudi Arabia After Iran Attacks?
Entertainment

Did Cristiano Ronaldo Depart Saudi Arabia After Iran Attacks?

March 3, 2026
AI Careers & Salary Boost at Shanghai’s 2026 Grad Jobs Fair
Business

AI Careers & Salary Boost at Shanghai’s 2026 Grad Jobs Fair

March 3, 2026
Next Post
World Life Quality Compared to USA 2025

Top World Life Quality Rankings Compared to USA in 2025

  • About Us
  • Contact Us
  • Advertise
  • Privacy Policy
  • Guest Post

© 2026 Digital Phablet

No Result
View All Result
  • Home
  • News
  • Technology
    • Education Tech
    • Home Tech
    • Office Tech
    • Fintech
    • Digital Marketing
  • Social Media
  • Gaming
  • Smartphones

© 2026 Digital Phablet