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
Using your YubiKey - CivicActions Guidebook
How to Clean Wood Furniture to Make It Look New Again
Mickey Moniak Walk Up Song
Dunhams Treestands
Skylar Vox Bra Size
The UPS Store | Ship & Print Here > 400 West Broadway
Plaza Nails Clifton
Mate Me If You May Sapir Englard Pdf
COLA Takes Effect With Sept. 30 Benefit Payment
Recent Obituaries Patriot Ledger
Chalupp's Pizza Taos Menu
Cvs Devoted Catalog
Midway Antique Mall Consignor Access
Revitalising marine ecosystems: D-Shape’s innovative 3D-printed reef restoration solution - StartmeupHK
Erin Kate Dolan Twitter
Lima Crime Stoppers
Discover Westchester's Top Towns — And What Makes Them So Unique
Conscious Cloud Dispensary Photos
Mile Split Fl
Lancasterfire Live Incidents
Abortion Bans Have Delayed Emergency Medical Care. In Georgia, Experts Say This Mother’s Death Was Preventable.
Po Box 35691 Canton Oh
Inter-Tech IM-2 Expander/SAMA IM01 Pro
Busted Campbell County
Allybearloves
Morristown Daily Record Obituary
Clare Briggs Guzman
Kentuky Fried Chicken Near Me
Tuw Academic Calendar
Motorcycle Blue Book Value Honda
Tomb Of The Mask Unblocked Games World
Dl.high Stakes Sweeps Download
Downloahub
Bridgestone Tire Dealer Near Me
Advance Auto Parts Stock Price | AAP Stock Quote, News, and History | Markets Insider
Angela Muto Ronnie's Mom
Rogers Centre is getting a $300M reno. Here's what the Blue Jays ballpark will look like | CBC News
Www Craigslist Com Brooklyn
SF bay area cars & trucks "chevrolet 50" - craigslist
Jack In The Box Menu 2022
Improving curriculum alignment and achieving learning goals by making the curriculum visible | Semantic Scholar
Craigslist Odessa Midland Texas
What to Do at The 2024 Charlotte International Arts Festival | Queen City Nerve
Holzer Athena Portal
Frontier Internet Outage Davenport Fl
Learn4Good Job Posting
Enter The Gungeon Gunther
Gummy Bear Hoco Proposal
Powah: Automating the Energizing Orb - EnigmaticaModpacks/Enigmatica6 GitHub Wiki
Phumikhmer 2022
Saw X (2023) | Film, Trailer, Kritik
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.