How to set up Azure Virtual Desktop scaling automatically – Guide

Scaling your virtual machines can help you save money on your Azure Virtual Desktop (VMs) deployment. This involves powering off the session host VMs and relocating them during off-peak hours, then powering them back on and relocating them during high usage hours. The sizing tool created using the Azure Automation account and Azure Logic App that automatically scales session host VMs in your Azure Virtual Desktop environment is described in this post. To learn how to use the dimensioning tool, you first need to advance to prerequisites.

How does creating a sizing plan work

  1. Make sure you have all the information you need to make a sound decision.
  2. Be realistic about what you can and cannot do.
  3. Be prepared for the consequences of your decisions.

You can assign a sizing plan to one or more host pools of the same host pool type. The escalation plan schedule will also apply to all assigned host pools. ..

You can only associate one sizing plan per host pool. If you assign a single sizing plan to multiple host pools, those host pools cannot be associated with another sizing plan. ..

An escalation plan can only be activated in its configured time zone. ..

A scale plan can have one or several schedules. For example, different times during the week and at the weekend. ..

The most popular times to work are from 9am to 5pm. However, this is not the only time you can work. You can also work at night or on the weekends. Schedule your work around the times that are most popular so that you can maximize your productivity. ..

Usage of a particular service or website typically ramps up in the early morning hours. This is due to people using the service for the first time, or returning to it after a break. ..

The peak hours for a city are typically the busiest times, when people are most active and spending their time in the city. This is also the time of day when businesses are busiest, and so it is a great time to visit or work in a city.

When you reduce the usage of your VMs, you may need to shut them down in order to save costs.

hours you want to use off-peak, and the app will automatically adjust the hours accordingly.

A VM can be active during that time if it is set to run as a user.

The activation of the sizing plan will take effect as soon as you input your information.

  1. Do not use personal pronouns such as “I” or “you” when talking about the speaker or other people in the story.
  2. Use only first-person singular pronouns when talking about yourself or other people in the story.
  3. Use definite articles (the, a, an) to refer to specific things in the story, such as “the book,” “the room,” and “the desk.”
  4. Use present tense when talking about things that are happening now, such as “I am writing this story.”

Do not use auto-sizing in combination with other Microsoft or third-party sizing tools. Be sure to disable those for the hosts to which you apply scale plans. ..

When upgrading VMs in a host pool, be sure to use exclusion tags to prevent the automatic scaling of the VMs. This will override the drain mode setting and prevent them from being automatically shut down. ..

Host pool settings are bypassed in favor of load balancing based on the schedule setting. ..

Create a scale plan

  1. Begin by sketching out a rough outline of the room.
  2. Next, consider the size of the space and what kind of layout you want.
  3. Finally, decide on the colors and materials you’ll use to create your scale plan.

Enter your name and password. You are now logged in to the Azure portal.

Enter your desired level of escalation for your Azure Virtual Desktop account. Select the desired amount of time you want to have to complete the escalation. Enter a description of the escalation.

To assign a sizing plan to a subscription, on the Basics tab, look under Project Details and select the name of the subscription to which you will assign the sizing plan. ..

If you want to create a new resource group, select Create new. If you want to use an existing resource group, select its name from the drop-down menu.

Name: Scale Plan

You can optionally add a “friendly” name that will be displayed to your users and a description for your plan. ..

Region selection is important when creating a scale plan. Object metadata will be stored in the geography associated with the region. To learn more about regions, see Data Locations. ..

For Time Zone, select the time zone you will use with your plan.

In Exclusion Tags, enter tags for VMs that you do not want to include in scaling operations. For example, you might want to mark VMs that are set to drain mode so that autoscaling does not override drain mode during maintenance.

Final note

Azure Virtual Desktop scaling automatically is a great way to keep your virtual desktops up and running. This guide will show you how to set it up so that Azure scales your virtual desktops automatically as needed. If you have any questions about this article, feel free to ask us in the comments below or on our social media channels. Finally, please share this article with your friends so they can get started too! ..