azure-role-selector

Select least privilege Azure roles and generate CLI or Bicep assignment code.

Updated Jan 16, 2026
One-click install
npx skills add https://github.com/edjan11/SegundasVias --skill azure-role-selector-edjan11
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: azure-role-selector
Source: https://github.com/edjan11/SegundasVias/tree/main/docs/raw/.github/skills/azure-role-selector
Command: npx skills add https://github.com/edjan11/SegundasVias --skill azure-role-selector-edjan11

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps users select the most appropriate and least privileged Azure role for an identity based on their desired permissions, and provides guidance on how to apply it.

Core Features & Use Cases

  • Role Identification: Determines the minimal built-in or custom role that grants specified permissions.
  • Assignment Guidance: Generates CLI commands for assigning the selected role.
  • Bicep Snippet Generation: Provides Bicep code for role assignment.
  • Best Practices: Offers guidance on Azure role assignment best practices.
  • Use Case: A developer needs to grant an application service principal read-only access to a specific storage account. This Skill can identify the "Storage Blob Data Reader" role and provide the Bicep code to assign it.

Quick Start

Use the azure-role-selector skill to find the minimal role for read access to storage accounts and generate the Bicep code to assign it to the identity 'my-identity'.

Frequently Asked Questions about azure-role-selector

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

FAQPage Schema
How do I find the least privilege Azure role for specific permissions?

The least privilege Azure role for specific permissions is determined by identifying the minimal built-in or custom role that grants exactly the required access, ensuring secure and compliant role-based access control.

Can I generate Bicep code for Azure RBAC role assignments?

Yes, you can generate Bicep code for Azure RBAC role assignments. The process provides Bicep snippets that define role assignments for users, groups, or service principals to integrate access control directly into infrastructure as code.

What is the best way to assign read-only access to an Azure storage account for a service principal?

The best way to assign read-only access to an Azure storage account for a service principal is selecting the Storage Blob Data Reader role. This grants the minimal required permissions while adhering to least privilege best practices.

Does this approach provide CLI commands for applying Azure role assignments?

Yes, this approach provides CLI commands for applying Azure role assignments. It generates the necessary command-line instructions to assign the selected least privilege roles to specified identities within your Azure environment.

When do I need custom Azure roles instead of built-in RBAC roles?

You need custom Azure roles instead of built-in RBAC roles when no existing role matches your exact desired permissions. Identifying a custom role ensures you maintain least privilege access by avoiding broad built-in definitions.