Assigning Scaling Plans Requires roleAssignments/write

AZ-140 By islever Editorial Last updated

Short answer

A Assigning Admin1 the User Access Administrator role adds the roleAssignments/write permission needed to grant the AVD service principal access to Scaling1 and Pool1.

Question

Note: This section contains one or more sets of questions with the same scenario and problem. Each question presents a unique solution to the problem. You must determine whether the solution meets the stated goals. More than one solution in the set might solve the problem. It is also possible that none of the solutions in the set solve the problem.
After you answer a question in this section, you will NOT be able to return. As a result, these questions do not appear on the Review Screen.
You have an Azure subscription named Sub1 that contains the resources shown in the following table.
Exhibit: Assigning Scaling Plans Requires roleAssignments/write
You have a user named Admin1 that is assigned the Desktop Virtualization Contributor role for Sub1.
You need to ensure that Admin1 can assign Scaling1 to Pool1.
Solution: You assign Admin1 the User Access Administrator role for Sub1.
Does this meet the goal?
  1. Yes Correct Answer
  2. No

Key Takeaways

The test is whether you know that scaling-plan assignment nests an RBAC write; Desktop Virtualization Contributor deliberately excludes Microsoft.Authorization, so User Access Administrator fills the gap.

Assigning a scaling plan to an AVD host pool requires writing a role assignment for the AVD service principal, which needs Microsoft.Authorization/roleAssignments/write. Admin1's existing Desktop Virtualization Contributor role lacks it, so adding User Access Administrator meets the goal (A).

Common mistake: Answering B because User Access Administrator "only manages RBAC, not AVD resources" — but Admin1 already has Desktop Virtualization Contributor for the AVD resources, so the missing piece is precisely the RBAC write that User Access Administrator provides.

Expert Analysis

What the operation actually does Assigning a scaling plan to a host pool is not just an AVD data-plane action. In the Azure portal the assignment writes two things: the scaling plan's hostPoolReferences relationship, and — because a scaling plan drives power management of session hosts — it must also grant the AVD service principal (Microsoft.DesktopVirtualization) the Desktop Virtualization Contributor-equivalent role on Pool1 and on the session host resource group. That second step is a role assignment write (Microsoft.Authorization/roleAssignments/write) at the scope of the subscription.

Where Admin1's current role falls short Admin1 already holds Desktop Virtualization Contributor for Sub1. That built-in role covers AVD resource actions (create/read/update/delete host pools, scaling plans, app groups, session hosts) but, by design, it deliberately excludes Microsoft.Authorization/* — so Admin1 cannot create the role assignment for the AVD service principal. The scaling-plan assignment therefore fails at the RBAC step, even though Admin1 can edit Scaling1 itself.

What the proposed solution adds User Access Administrator grants exactly the missing permission: Microsoft.Authorization/roleAssignments/write (along with roleAssignments/read/delete and permission-granting rights). With Desktop Virtualization Contributor still in place for the AVD objects and User Access Administrator added for the RBAC write, Admin1 can complete the entire assignment flow — this is why Microsoft's autoscale documentation explicitly states that assigning the scaling plan requires the AVD service principal role, which in turn needs Owner or User Access Administrator on the subscription. The two comments backing A cite precisely this requirement, and their reasoning matches the documented permission chain.

Why the dissenting comments are wrong The opposing comments argue that User Access Administrator "doesn't grant the actual resource permissions needed to assign a scaling plan." That is true in isolation but misses that Admin1 already has the resource permissions via Desktop Virtualization Contributor — the only blocker is the nested role assignment for the service principal. One of those comments even concludes "therefore the solution provided does not solve the goal" while describing a Contributor-on-host-pool requirement Admin1 already satisfies at subscription scope.

Verdict: the solution meets the goal — A.

Official Reference

Exam Strategy

For "does this solution meet the goal" AVD RBAC questions, list every permission the operation touches — resource action plus any nested role-assignment write — then check each role against that list. Never assume a role you already hold covers RBAC: built-in AVD roles exclude Microsoft.Authorization, so look for User Access Administrator or Owner whenever the flow grants a service principal access.

Frequently Asked Questions

Why does assigning a scaling plan require User Access Administrator or Owner?

Assigning a scaling plan also creates a role assignment for the AVD service principal on the host pool and session host group, which requires Microsoft.Authorization/roleAssignments/write. Only User Access Administrator and Owner include that permission.

Does Desktop Virtualization Contributor let me manage scaling plans?

Yes — it allows creating, updating, and deleting scaling plans and host pools, but it excludes Microsoft.Authorization permissions, so it cannot grant the AVD service principal the roles needed for autoscale power management.

What permission does the AVD service principal need for autoscale?

The service principal needs Desktop Virtualization Contributor (or equivalent) on the host pool and session host resource group so it can change session host power states on schedule.

Community Votes

A
50%
B
50%

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

Discussion 7 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 7

  1. sojorow324 👍 3 Answered A
    You must grant Azure Virtual Desktop access to manage the power state of your session hosts. You must have the Microsoft.Authorization/roleAssignments/write permission on your subscriptions in order to assign the role-based access control (RBAC) role for the Azure Virtual Desktop service principal on those subscriptions. This permission is part of User Access Administrator and Owner built in roles. https://learn.microsoft.com/en-us/azure/virtual-desktop/autoscale-create-assign-scaling-plan?tabs=portal%2Cintune&pivots=power-management#prerequisites
  2. jeff1988 👍 2 Answered B
    B. No Assigning Admin1 the User Access Administrator role for Sub1 does not meet the goal. The User Access Administrator role allows managing user access to Azure resources but does not grant the necessary permissions to assign scaling plans to host pools. To ensure Admin1 can assign Scaling1 to Pool1, they need permissions that allow managing Azure Virtual Desktop resources, which are already provided by the Desktop Virtualization Contributor role. If additional permissions are required, assigning the Owner role would be more appropriate.
  3. hwoccurrence 👍 2 Answered B
    Assigning User Access Administrator only grants someone the ability to manage RBAC permissions (i.e., who else has access), but it doesn’t grant the actual resource permissions needed to assign a scaling plan to a host pool. That operation typically requires Desktop Virtualization Contributor or Owner on the AVD resources.
  4. ClintC03 👍 1 Answered A
    This should be A. Admin1 will need either Owner or User Access Administrator to give the AVD Service Principal the correct RBAC role. https://learn.microsoft.com/en-us/azure/virtual-desktop/autoscale-create-assign-scaling-plan?tabs=portal%2Cintune&pivots=power-management
  5. SteveR73 👍 1 Answered A
    Admin1 needs to have the Contributor role for the host pool (Pool1) and the scaling plan (Scaling1) to assign the scaling plan to the host pool. Therefore, the solution provided does not solve the problem.
Show 2 more comments
  1. Ivanvazovv 👍 1
    Exactly RBAC permissions must be able to provide Admin 1.
  2. dan1111 👍 1 Answered B
    B. no should be right

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