An organization wants to delegate custom permissions to a development team. The team needs the ability to restart and manage virtual machines across all subscriptions nested under the 'R&D' management group. You must design a custom role that permits virtual machine management operations but explicitly prevents virtual network configuration modifications. The custom role must be scope-constrained so it can only be assigned to subscriptions under the 'R&D' management group. You need to create this custom role and assign it to the development team's Microsoft Entra ID group. Which sequence of actions should you perform?
- 1Retrieve the resource ID of the 'R&D' management group.
- 2Create a JSON definition file containing the custom role's permissions and specify the management group's resource ID in the AssignableScopes list.
- 3Register the custom role in the tenant by importing the JSON definition file using the Azure CLI or Azure PowerShell.
- 4Assign the registered custom role to the development team's Microsoft Entra ID group at the 'R&D' management group scope.
Answer
Retrieve the resource ID of the 'R&D' management group, create a JSON definition file containing the custom role's permissions and specifying the management group's resource ID in the AssignableScopes list, register the custom role in the tenant by importing the JSON definition file using the Azure CLI or Azure PowerShell, and finally assign the registered custom role to the development team's Microsoft Entra ID group at the 'R&D' management group scope.
The correct sequence begins with identifying the resource ID of the 'R&D' management group. This ID must be included in the AssignableScopes property of the custom role JSON definition. Once the JSON file is fully configured, the custom role is registered in the Azure Active Directory (Microsoft Entra ID) tenant. Only after the custom role is successfully registered can it be assigned to the target security group at the management group scope.
Step-by-Step Solution
Key Concept
Azure Custom RBAC Role Lifecycle and Scope Inheritance