An administrator needs to configure permissions and governance rules for an Azure resource group named RG1. The configuration must meet the following requirements:
- A user named Alex must be able to start, stop, and configure virtual machines in RG1, but must be prevented from granting access to other users.
- Only virtual machine resources can be deployed in RG1; all other resource types must be blocked, regardless of any user's permissions.
Which two actions should you perform to meet these requirements?
- Assign the Contributor role to Alex for RG1.Cevap
- BCreate a custom Azure RBAC role for Alex that explicitly denies the creation of non-virtual machine resources.
- Create and assign an Azure Policy to RG1 that restricts the allowed resource types to virtual machines.Cevap
- DApply a ReadOnly resource lock to RG1.
Cevap
Assign the Contributor role to the user for the resource group, and create and assign an Azure Policy definition to the resource group that restricts allowed resource types.
Assigning the Contributor role ensures the user has full rights to manage virtual machines but cannot delegate permissions to others. Assigning an Azure Policy ensures that only virtual machines can be deployed, enforcing compliance regardless of any user's access level.
Adım Adım Çözüm
Anahtar Kavram
Azure RBAC vs Azure Policy, Contributor Role, and Resource Locks
Tahmini Süre:2m 0s