Launch price: every exam for $29.99 a year, for the first 300 buyers. See the price

CertStreak
Menu

Manage custom roles, including Azure roles and Microsoft Entra roles

A worked example

Multiple answers

Contoso has a management group named MG1 that contains two subscriptions, Sub1 and Sub2. Admin1 holds the Owner role at MG1.

Admin1 is creating a custom Azure role for the SecOps group. The role definition includes the action Microsoft.Compute/virtualMachines/restart/action. The role definition includes the data action Microsoft.KeyVault/vaults/secrets/getSecret/action.

Requirements:

  • Use a single custom role definition.
  • The role definition must pass validation when it is created.
  • SecOps must hold the role in both Sub1 and Sub2.

Which two configurations meet all the requirements? Select two. Each correct answer presents a complete solution.

Choose 2 answers.
Why

Because the role contains a data action, it cannot be assigned at a management group scope. It can still list one management group in AssignableScopes and be assigned at the subscriptions inside it. Alternatively, listing both subscriptions in AssignableScopes makes one definition assignable at each subscription. The root scope is not allowed in AssignableScopes, and a role can be assigned only at scopes that its AssignableScopes covers.

Source

Practise this topic until it's automatic.

Ten questions a day, every answer explained, and misses that come back until you beat them.

Start free