Azure AVD Scaling Plan - "excludeFromScaling" Tag Not Working

Himanshu Garg 0 Reputation points
2025-04-03T19:52:09.75+00:00

I have an AVD Scaling Plan configured to shut down VMs after 15 minutes user log off. My setup includes four host pools, each containing 10 VMs.

To ensure that VM7 in Hostpool02 runs 24/7, I applied the ExcludeFromScaling tag as per Microsoft documentation (https://learn.microsoft.com/en-us/azure/virtual-desktop/autoscale-create-assign-scaling-plan?tabs=portal%2Cintune&pivots=power-management) -

Key: ExcludeFromScaling

Value: true

Key: excludeFromScaling

Value:

Despite this, the AVD Scaling Plan still stops VM7 after the idle timeout. Steps I have already taken:

  1. Verified the tag is correctly applied in Azure VM settings.

2.. Checked Azure Logs, but VM7 still follows the scaling schedule.

3.Tested on multiple VMs, and the issue persists.

Please assist in troubleshooting this issue and confirm if there are any known limitations or workarounds.

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

1 answer

Sort by: Most helpful
  1. Sudheer Reddy 2,055 Reputation points Microsoft External Staff Moderator
    2025-04-03T22:30:54.2133333+00:00

    Hi Himanshu Garg,

    Hope you've set "excludeFromScaling" as the tag name field on the respective VMs in the host pool to overcome Auto scale operations.

    Add the Exclusion tag in the scaling plan settings under properties configuring in the Azure Virtual Desktop (AVD) scaling plan where specific tags applied to virtual machines (VMs). This ensures that VMs with these tags are excluded from scaling operations.

    Navigate to Azure Virtual Desktop > Select Scaling Plans and then choose the relevant scaling plan > Under Properties, locate the field for "Exclusion Tags" > Enter the tag name that matches the tags applied to VMs you want excluded > Save and Apply.

    User's image

    If the information is helpful, please click on "upvote"

    If you have any queries, please do let us know, we will help you.

    1 person found this answer helpful.
    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.