azure-rbac

Identify minimal Azure RBAC roles and generate CLI and Bicep assignment code.

Updated May 25, 2026
One-click install
npx skills add https://github.com/Chieji/my-skills --skill azure-rbac-chieji
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: azure-rbac
Source: https://github.com/Chieji/my-skills/tree/main/azure-rbac
Command: npx skills add https://github.com/Chieji/my-skills --skill azure-rbac-chieji

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Helps users identify the minimal Azure RBAC role for an identity, and provides a guided path to assign it via CLI and Bicep while detailing required permissions to grant roles.

Core Features & Use Cases

  • Role minimization: Finds the least-privilege built-in or custom role that matches the requested permissions.
  • Guided assignment: Generates CLI commands and Bicep code to apply the role to the target identity.
  • Permissions guidance: Describes prerequisites and best practices for granting role-assignment permissions.

Quick Start

Use the azure-rbac skill to identify the minimal Azure RBAC role for an identity and generate CLI commands and Bicep code to assign it.

Frequently Asked Questions about azure-rbac

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

FAQPage Schema
How do I find the least-privilege Azure RBAC role for a specific identity?

To find the least-privilege Azure RBAC role, you identify the minimal built-in or custom role that matches your requested permissions. This ensures the identity only receives the exact access required, maintaining strict security boundaries.

How do I assign an Azure RBAC role using CLI and Bicep?

You assign an Azure RBAC role using CLI and Bicep by generating and applying tailored commands and infrastructure code. This guided assignment automates applying the selected minimal role directly to the target identity across common scenarios.

What permissions are required to grant Azure RBAC role assignments?

Granting Azure RBAC role assignments requires Microsoft.Authorization/roleAssignments/write permissions. The selected role must include this specific permission to successfully apply role assignments to the target identity via CLI or Bicep.

Can I use Bicep to apply custom Azure RBAC roles instead of built-in ones?

Yes, you can use Bicep to apply custom Azure RBAC roles. The process identifies the minimal role whether it is built-in or custom, and generates the corresponding Bicep code to apply it to the identity.

Why does my Azure role assignment fail when using least-privilege roles?

Azure role assignment fails when the least-privilege role lacks Microsoft.Authorization/roleAssignments/write. You must ensure the selected role includes this permission to grant the necessary role assignment permissions across your scenarios.