Configure Start VM on Connect for Azure Virtual Desktop (2024)

  • Article

Important

Start VM on Connect for Azure Stack HCI with Azure Virtual Desktop is currently in PREVIEW. See the Supplemental Terms of Use for Microsoft Azure Previews for legal terms that apply to Azure features that are in beta, preview, or otherwise not yet released into general availability.

Start VM on Connect lets you reduce costs by enabling end users to power on the virtual machines (VMs) used as session hosts only when they're needed. You can then power off VMs when they're not needed.

For personal host pools, Start VM on Connect only powers on an existing session host VM that is already assigned or can be assigned to a user. For pooled host pools, Start VM on Connect only powers on a session host VM when none are turned on and more VMs are only be turned on when the first VM reaches the session limit.

The time it takes for a user to connect to a remote session on a session host that is powered off (deallocated) increases because the VM needs time to power on again, much like turning on a physical computer. When a user uses Windows App and the Remote Desktop app to connect to Azure Virtual Desktop, they're told a VM is being powered on while they're connecting.

You can enable Start VM on Connect for session hosts on Azure and Azure Stack HCI in personal or pooled host pools using the Azure portal, Azure PowerShell, or Azure CLI. Start VM on Connect is configured per host pool.

Prerequisites

Before you can use Start VM on Connect, you need:

  • An existing host pool that's associated with an application group and workspace. You can only configure Start VM on Connect on existing host pools. You can't enable it at the same time you create a new host pool.

  • The Azure account you use to configure Start VM on Connect must have the Desktop Virtualization Host Pool Contributor role-based access control (RBAC) role assigned.

  • Windows App or the Remote Desktop app installed on a local device with a user account assigned to a desktop or application in the application group you can test with.

  • Make sure that the name of the host pool, session hosts in that host pool, and the resource group only have ANSI characters.

  • If you want to use Azure PowerShell or Azure CLI locally, see Use Azure PowerShell and Azure CLI with Azure Virtual Desktop to make sure you have the Az.DesktopVirtualization PowerShell module or the desktopvirtualization Azure CLI extension installed. Alternatively, use the Azure Cloud Shell.

Assign the Desktop Virtualization Power On Contributor role with the Azure portal

To configure Start VM on Connect, you need to assign the Desktop Virtualization Power On Contributor role-based access control (RBAC) role to the Azure Virtual Desktop service principal with your Azure subscription as the assignable scope. If you assign this role at any level lower than a subscription, such as the resource group, host pool, or VM, prevents Start VM on Connect from working properly.

You need to add each Azure subscription that contains host pools and session host VMs you want to use with Start VM on Connect as an assignable scope. This role assignment allows Azure Virtual Desktop to power on VMs, check their status, and report diagnostic information for those subscriptions.

To learn how to assign the Desktop Virtualization Power On Contributor role to the Azure Virtual Desktop service principal, see Assign RBAC roles to the Azure Virtual Desktop service principal.

Enable or disable Start VM on Connect

Once you assign the Desktop Virtualization Power On Contributor role to the service principal on relevant subscriptions, you can configure Start VM on Connect using the Azure portal, Azure PowerShell, or Azure CLI.

  • Azure portal
  • Azure PowerShell
  • Azure CLI

To configure Start VM on Connect using the Azure portal:

  1. Sign in to the Azure portal.

  2. In the search bar, enter Azure Virtual Desktop and select the matching service entry.

  3. Select Host pools, then select the name of the host pool where you want to enable the setting.

  4. Select Properties.

  5. In the configuration section, set Start VM on connect to Yes to enable it, or No to disable it.

  6. Select Save to apply the settings.

Note

For pooled host pools, Start VM on Connect will start a VM every five minutes at most. If other users try to sign in during this five-minute period and there still aren't any available resources, Start VM on Connect won't start a new VM. Instead, the users trying to sign in will receive an error message that says, No resources available. They should wait a few minutes and try to connect again.

Troubleshooting

If the session host VM doesn't power on, you need to check the health of the VM you tried to power on as a first step. You can also view Azure Virtual Desktop logs in Log Analytics to check for problems. If you receive an error message, make sure to pay close attention to the message content and make a note of the error name for reference. You can also use Azure Virtual Desktop Insights to get suggestions for how to resolve issues.

Note

Connecting to a session host outside of the Azure Virtual Desktop service that is powered off, such as by directly connecting to a VM by IP address or name, the VM isn't started.

Related content

For more information about Start VM on Connect, see our Start VM on Connect FAQ.

Configure Start VM on Connect for Azure Virtual Desktop (2024)
Top Articles
iSHARES CORE SP 500 IDX ETF CAD dividends
Compare Azure Data Explorer vs SQL Server
Joliet Patch Arrests Today
Metra Union Pacific West Schedule
Time in Baltimore, Maryland, United States now
Housing near Juneau, WI - craigslist
Weeminuche Smoke Signal
Terrorist Usually Avoid Tourist Locations
Junk Cars For Sale Craigslist
Affidea ExpressCare - Affidea Ireland
Obituary (Binghamton Press & Sun-Bulletin): Tully Area Historical Society
Noaa Swell Forecast
Legacy First National Bank
Mlifeinsider Okta
Scentsy Dashboard Log In
Keurig Refillable Pods Walmart
4156303136
سریال رویای شیرین جوانی قسمت 338
Shannon Dacombe
Ups Access Point Lockers
Classic | Cyclone RakeAmerica's #1 Lawn and Leaf Vacuum
Abby's Caribbean Cafe
Jang Urdu Today
Nhl Tankathon Mock Draft
Gentle Dental Northpointe
Walmart Car Department Phone Number
Quadcitiesdaily
A Person That Creates Movie Basis Figgerits
BJ 이름 찾는다 꼭 도와줘라 | 짤방 | 일베저장소
Meridian Owners Forum
Harrison County Wv Arrests This Week
Horses For Sale In Tn Craigslist
Netspend Ssi Deposit Dates For 2022 November
Past Weather by Zip Code - Data Table
Google Flights To Orlando
Pnc Bank Routing Number Cincinnati
JD Power's top airlines in 2024, ranked - The Points Guy
Ixl Lausd Northwest
Western Gold Gateway
Eleceed Mangaowl
Are you ready for some football? Zag Alum Justin Lange Forges Career in NFL
Cox Outage in Bentonville, Arkansas
Plead Irksomely Crossword
Captain Billy's Whiz Bang, Vol 1, No. 11, August, 1920
America's Magazine of Wit, Humor and Filosophy
1v1.LOL Game [Unblocked] | Play Online
Makes A Successful Catch Maybe Crossword Clue
15 Best Places to Visit in the Northeast During Summer
Booknet.com Contract Marriage 2
About us | DELTA Fiber
Roller Znen ZN50QT-E
Competitive Comparison
Varsity Competition Results 2022
Latest Posts
Article information

Author: Tuan Roob DDS

Last Updated:

Views: 5820

Rating: 4.1 / 5 (42 voted)

Reviews: 81% of readers found this page helpful

Author information

Name: Tuan Roob DDS

Birthday: 1999-11-20

Address: Suite 592 642 Pfannerstill Island, South Keila, LA 74970-3076

Phone: +9617721773649

Job: Marketing Producer

Hobby: Skydiving, Flag Football, Knitting, Running, Lego building, Hunting, Juggling

Introduction: My name is Tuan Roob DDS, I am a friendly, good, energetic, faithful, fantastic, gentle, enchanting person who loves writing and wants to share my knowledge and understanding with you.