You manage a pooled host pool named HP2. Start VM on Connect is enabled on HP2. The Desktop Virtualization Power On Contributor role is assigned to the Azure Virtual Desktop service principal at the subscription scope.
Users who connect with Windows App report that deallocated session hosts start as expected.
An administrator on the corporate network uses Remote Desktop Connection (mstsc.exe) to connect directly to the private IP address of a deallocated session host named SH3. The connection fails and SH3 stays deallocated. No other connection attempts were made to HP2 during the previous hour.
What is the most likely reason that SH3 was not powered on?
Start VM on Connect is triggered when users connect through the Azure Virtual Desktop service, for example with Windows App. Connecting directly to a session host by IP address or name bypasses the service and does not trigger Start VM on Connect. The role assignment and pooled host pool support are already working, because Windows App users see deallocated VMs start. The five-minute pooled limit does not apply, because there were no recent connection attempts.
- Not correct: The Desktop Virtualization Power On Contributor role must also be assigned at the scope of SH3. The role is already assigned at the subscription scope, which contains SH3. The assignment scope only needs to contain the target session host VMs, so no extra assignment on SH3 is needed.
- Correct: Start VM on Connect does not start a VM for connections made outside the Azure Virtual Desktop service. The administrator connected directly to the VM's IP address, bypassing the Azure Virtual Desktop service. The direct connection therefore did not trigger Start VM on Connect.
- Not correct: Start VM on Connect starts at most one VM every five minutes in a pooled host pool. The five-minute limit applies only when another VM was started within that period. No connection attempts were made in the previous hour, so the limit cannot explain the failure.
- Not correct: Start VM on Connect requires all session hosts in a pooled host pool to be deallocated before it can start a VM. Start VM on Connect can also start another VM in a pooled host pool when the running VM reaches its session limit.