AVD Exclusion tags

JMN-2253 636 Reputation points
2023-12-22T14:22:05.33+00:00

Hi There,

In this article: https://learn.microsoft.com/en-us/azure/virtual-desktop/autoscale-scaling-plan?tabs=pooled-autoscale

It is mentioned: In Exclusion tags, enter a tag name for VMs you don't want to include in scaling operations. For example, you might want to tag VMs that are set to drain mode so that autoscale doesn't override drain mode during maintenance using the exclusion tag "excludeFromScaling". If you've set "excludeFromScaling" as the tag name field on any of the VMs in the host pool, autoscale won't start, stop, or change the drain mode of those particular VMs.

I added "excludeFromScaling" to one host 3 days ago:

User's image

The host goes offline based on the schedule, and then the next morning it comes back online. The important note: I have other hosts in the plan without this tag, and they scale based on the demand in the mid of the day! while they at least this host should scale at last or never based on this tag.

So,

Does this tag work?

Should the tag get a value that is not mentioned in the documentation?

Azure Virtual Desktop
Azure Virtual Desktop
A Microsoft desktop and app virtualization service that runs on Azure. Previously known as Windows Virtual Desktop.
1,823 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Prrudram-MSFT 28,196 Reputation points Moderator
    2023-12-26T06:44:48.28+00:00

    Hi @JMN-2253

    The "excludeFromScaling" tag should work as described in the documentation. When you apply this tag to a VM in your host pool, Autoscale should not start, stop, or change the drain mode of that particular VM.

    It's possible that there is an issue with the way that the tag has been applied to the VM, or with the way that Autoscale is configured. Here are some things to check:

    Make sure that the tag has been applied correctly to the VM. You can check this by going to the VM in the Azure portal and looking at the tags that are applied to it.

    Make sure that Autoscale is configured correctly. Check the scaling plan and make sure that the "excludeFromScaling" tag is specified in the Exclusion tags field.

    Check the Autoscale logs to see if there are any errors or warnings related to the "excludeFromScaling" tag.

    If you have other hosts in the plan without this tag, and they are scaling based on demand, then it's possible that there is an issue with the way that Autoscale is configured for this host. You may need to adjust the scaling plan or the tag settings to ensure that the host is excluded from scaling operations as expected.

    In general, the "excludeFromScaling" tag should work as described in the documentation. If you continue to experience issues, you may want to contact Microsoft support for further assistance.

    Please Accept Answer and hit Yes for "was this answer helpful" if this helps

    1 person found this answer helpful.
    0 comments No comments

  2. JMN-2253 636 Reputation points
    2024-02-27T14:53:34.88+00:00

    The solution was to add the Exclusion tag in the scaling plan - Settings under properties.

    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.