An administrator needs to configure access for a team of developers who must manage virtual machines. The virtual machines are located in an Azure resource group named Dev-RG, which is inside an Azure subscription named Sub1.
Which two of the following statements about managing access and governance in this scenario are correct?
- Assigning the Contributor role to the developers at the Sub1 subscription level will allow them to manage the virtual machines in Dev-RG.Answer
- Assigning the Reader role to the developers at the Dev-RG level will allow them to view the virtual machine configurations without making changes.Answer
- CCreating an Azure Policy at the Sub1 level is required to grant the developers permission to delete virtual machines in Dev-RG.
- DApplying a ReadOnly resource lock to Dev-RG is the standard method for granting the developers read-only permissions to the virtual machines.
Answer
Assigning the Contributor role to the developers at the Sub1 subscription level will allow them to manage the virtual machines in Dev-RG, and assigning the Reader role to the developers at the Dev-RG level will allow them to view the virtual machine configurations without making changes.
Azure Role-Based Access Control (RBAC) uses inheritance, meaning permissions granted at a subscription level flow down to containing resource groups and resources. Assigning the Contributor role at the subscription level allows the developers to manage resources in the resource group. Additionally, the Reader role is designed specifically to allow viewing of resources without permission to modify them.
Step-by-Step Solution
Key Concept
Azure RBAC scope, built-in roles, and inheritance