nerdexam
Microsoft

AZ-140 · Question #160

You have an Azure Virtual Desktop deployment that contains the resources shown in the following table. You plan to enable Start VM on connect for Pool1. You create a custom Azure role named Role1 that

The correct answer is B. Azure Virtual Desktop. The 'Start VM on Connect' feature works by having the Azure Virtual Desktop service itself power on a deallocated session host when a user initiates a connection. To do this, the AVD service must have permission to start VMs in the subscription. Role1 (with VM start permissions)

Submitted by emma.c· Apr 18, 2026Plan and implement an Azure Virtual Desktop infrastructure

Question

You have an Azure Virtual Desktop deployment that contains the resources shown in the following table. You plan to enable Start VM on connect for Pool1. You create a custom Azure role named Role1 that has sufficient permissions to start virtual machines on demand. You need to ensure that the session hosts in Pool1 can start on demand. To which service principal should you assign Role1?

Exhibit

AZ-140 question #160 exhibit

Options

  • AManaged1
  • BAzure Virtual Desktop
  • CAzure Automation
  • DHost1
  • EAzure Compute

How the community answered

(22 responses)
  • A
    5% (1)
  • B
    77% (17)
  • C
    5% (1)
  • E
    14% (3)

Explanation

The 'Start VM on Connect' feature works by having the Azure Virtual Desktop service itself power on a deallocated session host when a user initiates a connection. To do this, the AVD service must have permission to start VMs in the subscription. Role1 (with VM start permissions) must therefore be assigned to the 'Azure Virtual Desktop' service principal (B) - the first-party application registered by Microsoft that acts on behalf of AVD. Assigning it to a managed identity (Managed1), Azure Automation, a specific host (Host1), or Azure Compute would not grant the AVD service the permissions it needs to trigger the on-demand start action.

Topics

#Azure Virtual Desktop#Start VM on connect#Role-Based Access Control (RBAC)#Service Principal

Community Discussion

No community discussion yet for this question.

Full AZ-140 Practice