azure-role-selector

Generate Azure role assignments with CLI commands and Bicep snippets.

1|Updated Feb 23, 2026
One-click install
npx skills add https://github.com/Gabeujin/workspace-init-mcp --skill azure-role-selector-gabeujin
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: azure-role-selector
Source: https://github.com/Gabeujin/workspace-init-mcp/tree/main/awesome/skills/azure-role-selector
Command: npx skills add https://github.com/Gabeujin/workspace-init-mcp --skill azure-role-selector-gabeujin

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill helps users identify the most appropriate Azure role for an identity based on required permissions, ensuring the principle of least privilege is applied.

Core Features & Use Cases

  • Role Identification: Determines the built-in Azure role that best matches specified permissions.
  • Custom Role Generation: Creates a custom role definition if no suitable built-in role exists.
  • Assignment Guidance: Provides CLI commands for role assignment and Bicep code snippets for infrastructure as code.
  • Use Case: A security administrator needs to grant a new service principal read-only access to a specific storage account. This Skill will identify the 'Storage Blob Data Reader' role or generate a custom role if necessary, and provide the Azure CLI command to assign it.

Quick Start

Use the azure-role-selector skill to find the minimal role for read access to a storage account.

Frequently Asked Questions about azure-role-selector

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I assign least-privilege Azure RBAC roles to a service principal?

To assign least-privilege Azure RBAC roles, this Skill identifies the minimal built-in role matching your specified permissions or generates a custom role definition, providing the exact Azure CLI assignment commands needed.

What is the best way to create a custom Azure role for specific permissions?

Creating a custom Azure role for specific permissions is handled by generating a custom role definition when no suitable built-in role exists, ensuring strict identity management and least privilege compliance.

Can I generate Bicep code snippets for Azure role assignments?

Yes, you can generate Bicep code snippets for Azure role assignments. The Skill outputs infrastructure as code snippets alongside CLI commands to fully automate your identity access management deployments.

Do I need Azure MCP tools to find built-in roles for identity access management?

Yes, you need Azure MCP tools for documentation lookup, role generation, and best practice retrieval to successfully identify and generate Azure roles for identity access management.

When should I use a custom Azure role instead of a built-in role?

You should use a custom Azure role instead of a built-in role when no existing built-in role matches your required permissions, allowing you to maintain least privilege by defining exact access boundaries.