Azure Classroom Series – 16/Apr/2021

Scenario

  • Create a user and give him the full access to Virtual Machines
  • In Reality we might need users to have set of different access and assigning multiple role assignments for users at different levels might be difficult
  • One way of solving this problem is to use groups and give multiple role assignments to the group and add users to groups
  • Lets create two groups
    • developers: will have full access to Virtual Machines, Networking, Storage Accounts
    • testers: will have read only access to Virtual Machines, Networking, Storage Accounts
  • Add ram to developers and robert and rahim to testers group
  • Navigate to Azure Active Directory and select groups and create group
  • Now assign roles at subscription level to the groups
  • Now lets test access for testers (login as any user)

Creating Custom roles in Azure

  • Steps for Creating a custom role
    1. Determine the permissions you need
    2. Understand the syntax of role definition Refer Here
    3. Create the custom role
    4. Test the custom role
  • Custom Role 1: Create a Custom role (Virtual Machine Operator) which gives the user access to start, stop and restart virtual machines. view the virtual machines
    • Refer Here to understan the resource provider operations
    • Now add to role assignment
  • Ensure powershell or cli is installed on your machine Refer Here

Leave a ReplyCancel reply

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

Please turn AdBlock off
Social Media Icons Powered by Acurax Web Design Company

Discover more from Direct DevOps from Quality Thought

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

Continue reading

Exit mobile version
%%footer%%