Custom role definitions
📖 Scenario: You are managing access control in an Azure subscription. You want to create a custom role that allows users to read virtual machines and start them, but not delete or modify other resources.
🎯 Goal: Create a custom role definition JSON that grants read and start permissions on virtual machines only.
📋 What You'll Learn
Create a JSON object named
customRole with the required properties for a custom role definition.Include
Name, Description, Actions, NotActions, AssignableScopes properties.Grant read and start permissions on virtual machines using the correct Azure resource provider actions.
Assign the role to the scope of the subscription
/subscriptions/12345678-1234-1234-1234-123456789abc.💡 Why This Matters
🌍 Real World
Custom roles allow precise control over who can do what in your Azure environment, improving security and compliance.
💼 Career
Cloud administrators and security engineers often create and manage custom roles to enforce least privilege access.
Progress0 / 4 steps