azure-rbac

Find minimal Azure RBAC role definitions and generate CLI and Bicep assignment artifacts.

Updated Dec 20, 2023
One-click install
npx skills add https://github.com/Thiago-Cruz-eng/Hibrygame --skill azure-rbac-thiago-cruz-eng
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: azure-rbac
Source: https://github.com/Thiago-Cruz-eng/Hibrygame/tree/main/.claude/skills/azure-rbac
Command: npx skills add https://github.com/Thiago-Cruz-eng/Hibrygame --skill azure-rbac-thiago-cruz-eng

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

It helps you avoid over-permissioning by identifying the least-privilege Azure RBAC role for an identity and generating the exact commands and infrastructure code needed to assign it.

Core Features & Use Cases

  • Role matching for least privilege: Finds the minimal built-in role definition that covers the permissions an identity needs.
  • Custom RBAC role generation: Creates a custom role definition when no built-in role matches the required permissions.
  • Deployment-ready outputs: Generates CLI commands and Bicep code for assigning the chosen role to a user-assigned identity, managed identity, or other principal.

Example use case: you need a managed identity to read a specific Azure resource (for example, blob data) and want only the permissions required to do that assignment and access—no more.

Quick Start

Use the azure-rbac skill to determine the least-privilege role for your identity and produce CLI and Bicep for the RBAC role assignment.

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 managed identity?▼

To assign least-privilege Azure RBAC, this skill analyzes the required permissions for an identity and matches them to the minimal built-in role definition available. It ensures your managed identity gets only the permissions required and no more.

How do I generate Bicep code for an Azure RBAC role assignment?▼

Generating Bicep code for an Azure RBAC role assignment involves selecting the correct role definition and principal. This skill produces deployment-ready Bicep snippets alongside Azure CLI commands to securely assign the chosen role.

How do I create a custom Azure RBAC role when no built-in role fits?▼

Creating a custom Azure RBAC role is necessary when no built-in role matches your exact permission requirements. This skill generates a custom role definition tailored to your identity's specific needs while maintaining least privilege.

Do I need roleAssignments write permissions to use Azure CLI for RBAC setup?▼

Yes, configuring Azure RBAC assignments requires roleAssignments write permissions on the target scope. This skill accounts for this prerequisite during the least-privilege discovery and deployment artifact generation process.

What is the best way to avoid over-permissioning an Azure managed identity?▼

The best way to avoid over-permissioning an Azure managed identity is to apply least-privilege discovery. This skill identifies the minimal role definition needed for your specific resource access and generates the exact assignment artifacts.