Which AVD Features Need Service-Principal RBAC?

AZ-140 By islever Editorial Last updated

Short answer

BD Autoscale and app attach both need Azure RBAC roles assigned to the Azure Virtual Desktop service principal to manage VMs and read package storage.

Question

You have an Azure subscription.
You deploy Azure Virtual Desktop.
Which two Azure Virtual Desktop features require you to assign Azure role-based access control (Azure RBAC) roles to the Azure Virtual Desktop service principal? Each correct answer presents a complete solution.
NOTE: Each correct selection is worth one point.
  1. Universal Print
  2. autoscale Correct Answer
  3. Azure Virtual Desktop Insights
  4. app attach Correct Answer
  5. device redirection

Key Takeaways

The question tests which operations run under the Microsoft-managed AVD service principal rather than under your user account or a different service principal; the trap is assuming monitoring or redirection needs service-principal RBAC.

In Azure Virtual Desktop, autoscale and app attach are the two features that require assigning Azure RBAC roles to the AVD service principal, so it can start/stop session host VMs and read MSIX package blobs from storage.

Common mistake: Choosing C (Azure Virtual Desktop Insights) — Insights reads telemetry through diagnostic settings and Azure Monitor roles assigned to your admin account, not to the AVD service principal, so it does not require a service-principal RBAC assignment.

Expert Analysis

Tracing the Autoscale path. Autoscale is not a per-user client action; it is an Azure Resource Manager operation performed by the Azure service itself. When you enable autoscale in a host pool, the Azure Virtual Desktop service principal (the Microsoft managed service principal used by the service) must be able to start, stop and deallocate session host VMs in the host pool's resource group. You grant that by assigning the Desktop Virtual Machine Contributor role (or an equivalent custom role with Microsoft.Compute/virtualMachines/write) to the AVD service principal on the host pool resource group or subscription. Without that RBAC assignment, autoscale schedules silently fail to start or stop VMs, so option B is a correct answer.

Tracing the App Attach path. App attach packages (MSIX/OneDrive-hosted) are registered to the service by assigning an Application Group to users, but the package resources themselves live in storage (Azure Files/StorageV2). The AVD service principal needs to read those package blobs at session host sign-in so it can mount the package into the user session. That read access is granted by assigning an Azure RBAC role such as Storage Blob Data Reader on the storage account or container to the AVD service principal. This is exactly the step where App attach needs a service-principal RBAC assignment, so option D is also correct.

Why the other options fail. Universal Print (A) uses the Universal Print service principal and Microsoft Graph, not the AVD service principal — you grant the print connector permissions separately. Azure Virtual Desktop Insights (C) is a monitoring feature that reads telemetry; it relies on diagnostic settings and Azure Monitor reader permissions assigned to your user/admin, not to the AVD service principal. Device redirection (E) is a client-side setting controlled by Group Policy, Intune, or the AVD client settings in the portal; it is enforced by the session host agent and involves no Azure RBAC assignment to any service principal.

Verdict. The two features that require Azure RBAC roles assigned to the Azure Virtual Desktop service principal are B. autoscale and D. app attach.

Exam Strategy

When a question asks which feature needs permissions for a service principal rather than a user, ask who performs the operation: if the Azure service itself acts on resources (starting VMs, reading blobs), it needs a service-principal role. Rule out features driven by client settings or by a different service's principal. On multi-select, pick exactly two and verify each involves an Azure RBAC assignment on an Azure resource.

Frequently Asked Questions

Why does autoscale need a role for the AVD service principal?

Autoscale runs as an Azure Resource Manager operation performed by the Azure Virtual Desktop service itself. The service principal must hold Desktop Virtual Machine Contributor (or equivalent VM write permissions) on the host pool resource group to start, stop and deallocate session host VMs on schedule.

What RBAC role does app attach require for the service principal?

App attach packages are stored as blobs in Azure Files or StorageV2. The AVD service principal needs a data-plane read role such as Storage Blob Data Reader on the storage account or container so session hosts can mount the MSIX package at sign-in.

Does Azure Virtual Desktop Insights need service-principal RBAC?

No. Insights reads host pool telemetry collected through Azure Monitor diagnostic settings, and any reader role is assigned to your administrator account, not to the AVD service principal, so it is not one of the two correct answers.

Community Votes

B
50%
D
50%

50% of anonymous learners picked answer B. Votes are pick records left by other test-takers — they are not the verified answer.

Discussion 1 contributions

Compiled from public community threads and reader submissions, lightly edited for clarity. Handles and vote tallies are shown as recorded, and comments reflect the views of individual contributors.

From public community threads 1

  1. GarrethM 👍 1
    B. Autoscale Azure Virtual Desktop autoscale uses the Azure Virtual Desktop service principal to manage session host virtual machines, including starting and stopping VMs. It requires appropriate Azure RBAC permissions. D. App attach App attach requires the Azure Virtual Desktop service principal to have the necessary permissions to access and manage application package resources.

Reader comments & corrections

No reader corrections yet — spotted an error or have a note? Share it below.

Log in to comment, report an error, or add a note about this question.

Practice All AZ-140 Questions

Access 64 questions with complete answers and detailed explanations.

View Full AZ-140 Practice Test →

← Back to AZ-140 Study Guide