nerdexam
Microsoft

AZ-500 · Question #209

Hotspot Question You have an Azure subscription named Subscription1 that contains the resources shown in the following table. You create an Azure role by using the following JSON file. You assign…

The correct answer is User1 can create a new virtual machine in RG1. = Yes; User can modify the properties of storage1. = No; User1 can attach the network interface of VM1 to VNET1. = No. Role1 is a custom Azure role with 'Microsoft.Compute/virtualMachines/' and 'Microsoft.Network/virtualNetworks/' actions granted, scoped to RG1. User1 can create a new VM in RG1 because the wildcard on Microsoft.Compute/virtualMachines/ allows all compute operations including…

Submitted by suresh_in· Mar 6, 2026Manage identity and access - specifically managing Azure role-based access control (RBAC), custom role definitions, and understanding the effect of role assignments scoped to resource groups (AZ-104 Domain: Manage Azure identities and governance)

Question

Hotspot Question You have an Azure subscription named Subscription1 that contains the resources shown in the following table. You create an Azure role by using the following JSON file. You assign Role1 to User1 for RG1. For each of the following statements, select Yes if the statement is true. Otherwise, select No. NOTE: Each correct selection is worth one point. Answer:

Exhibits

AZ-500 question #209 exhibit 1
AZ-500 question #209 exhibit 2

Answer Area

  • User1 can create a new virtual machine in RG1.Yes
  • User can modify the properties of storage1.No
  • User1 can attach the network interface of VM1 to VNET1.No

Explanation

Role1 is a custom Azure role with 'Microsoft.Compute/virtualMachines/' and 'Microsoft.Network/virtualNetworks/' actions granted, scoped to RG1. User1 can create a new VM in RG1 because the wildcard on Microsoft.Compute/virtualMachines/* allows all compute operations including create. User1 cannot modify storage1 because the role grants no storage permissions (Microsoft.Storage/* is not included), and storage1 may also be outside RG1's scope. User1 cannot attach a network interface of VM1 to VNET1 because while the role includes virtualNetworks/, attaching a NIC to a VM requires 'Microsoft.Compute/virtualMachines/write' AND 'Microsoft.Network/networkInterfaces/' permissions - the latter is not explicitly granted, and VNET1 may reside in a different resource group (VNETs are often in separate RGs), placing it outside the Role1 assignment scope of RG1.

Topics

#Azure RBAC#Custom Roles#Role Assignment Scope#Azure Resource Permissions

Community Discussion

No community discussion yet for this question.

Full AZ-500 Practice