Skip to main content

Command Palette

Search for a command to run...

Managing Subscriptions and RBAC in Azure

Updated
3 min read

This is just a summary. Find the complete lab instructions on GitHub!

Scenario

Simplify Azure resource management by:

  1. Creating a management group for your subscriptions.

  2. Granting Help Desk the ability to submit support requests, limited to:

    • Creating and managing virtual machines

    • Creating support request tickets (excluding adding Azure providers)

Interactive Simulations

Optional simulations to reinforce your understanding:

  • Manage access with RBAC: Assign roles and monitor activity logs.

  • Manage subscriptions and RBAC: Implement a management group and create/assign roles.

  • Open a support request: Review options, create and monitor requests.

Architecture Diagram

Diagram of lab tasks.

Task 1: Implement Management Groups

  1. Sign in to the Azure portal: https://portal.azure.com

  2. Navigate to: Microsoft Entra ID > Properties > Management groups > + Create

  3. Create a management group:

    Management group ID az104-mg148607161 (must be unique)

    Management group display name az104-mg148607161 |

Task 2: Assign Built-in Role

  1. Select the az104-mg148607161 management group.

  2. Navigate to: Access control (IAM) > Roles > + Add > Add role assignment

  3. Select "Virtual Machine Contributor" role.

  4. Assign the role to the helpdesk group.

Task 3: Create Custom RBAC Role

  1. Navigate to: Access control (IAM) > + Add > Add custom role

  2. Configure the custom role:

    Custom role name Custom Support Request48607161

    Description A custom contributor role for support requests.

    Baseline permissions Clone "Support Request Contributor"

    Screenshot clone a role.

  3. Exclude the "Registers Support Resource Provider" permission.

  4. Ensure your management group is listed in "Assignable scopes".

  5. Review the JSON and create the role.

Task 4: Monitor Role Assignments

  1. For the az104-mg148607161 resource, select "Activity log".

  2. Review the role assignment activities.

Screenshot of the Activity log page with configured filter.

Cleanup

Delete the lab resources to avoid unnecessary costs.

  • Azure portal: Delete the resource group.

  • PowerShell: Remove-AzResourceGroup -Name resourceGroupName

  • CLI: az group delete --name resourceGroupName


MIT License Copyright (c) 2019 Sidney Andrews Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
19 views

More from this blog

A

An Azure Cloud Lab Journey...

45 posts