AZ-500 · Question #363
Hotspot Question You have an Azure subscription named Subscription1 that contains the resources shown in the following table. You create a custom RBAC role in Subscription1 by using the following…
The correct answer is User1 can add VM1 to VNET1. = No; User1 can start and stop App1. = Yes; User1 can start and stop cont1. = No. Role1 is assigned to User1 on RG1 only, and based on the JSON definition, the role includes Microsoft.Compute/virtualMachines/start/action and Microsoft.Compute/virtualMachines/restart/action (or stop) permissions, which apply to virtual machines - allowing User1 to start and…
Question
Exhibits
Answer Area
- User1 can add VM1 to VNET1.No
- User1 can start and stop App1.Yes
- User1 can start and stop cont1.No
Explanation
Role1 is assigned to User1 on RG1 only, and based on the JSON definition, the role includes Microsoft.Compute/virtualMachines/start/action and Microsoft.Compute/virtualMachines/restart/action (or stop) permissions, which apply to virtual machines - allowing User1 to start and stop App1 (a Virtual Machine in RG1). Adding VM1 to VNET1 requires Microsoft.Network/virtualNetworks/join/action or write permissions on the network, which are not included in Role1's allowed actions. Cont1 is a container instance (Microsoft.ContainerInstance), and Role1 only grants permissions scoped to Microsoft.Compute resources, so container operations are not permitted.
Topics
Community Discussion
No community discussion yet for this question.

