Azure Classroom notes 20/Dec/2023

Azure RBAC Custom Roles

Activity 1: Lets create a role in Azure for a user to view every thing and create virtual networks from portal

  • We want all read actions */read and Microsoft.Network/virtualNetworks/write
  • Creating a custom role in azure portal Refer Here
{
    "properties": {
        "roleName": "ltvnetcreator",
        "description": "this will have permission to read and create vnets",
        "assignableScopes": [],
        "permissions": [
            {
                "actions": ["*/read", "Microsoft.Network/virtualNetworks/write"],
                "notActions": [],
                "dataActions": [],
                "notDataActions": []
            }
        ]
    }
}

Preview
Preview

Activity 1: Lets create a role in Azure for a user to view every thing and create storage acconts from cli

{
    "Name": "activity2",
    "IsCustom": true,
    "Description": "Can read and create storage accounts",
    "Actions": [
      "*/read",
      "Microsoft.Storage/storageAccounts/write",
      "Microsoft.Resources/deployments/*"
    ],
    "NotActions": [

    ],
    "AssignableScopes": [
      "/subscriptions/{your-subscription-id}"
    ]
  }
  • Exercise:
    • Create a role for a user to have all read permissions and create network but not delete network
    • Create a role for a user to perform all actions but not delete actions.

Published
Categorized as Uncategorized Tagged

By continuous learner

devops & cloud enthusiastic learner

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Please turn AdBlock off
Animated Social Media Icons by Acurax Responsive Web Designing Company

Discover more from Direct DevOps from Quality Thought

Subscribe now to keep reading and get access to the full archive.

Continue reading

Visit Us On FacebookVisit Us On LinkedinVisit Us On Youtube