azure-rbac

Select minimal Azure RBAC roles and generate CLI commands and Bicep snippets.

Updated Mar 27, 2026
One-click install
npx skills add https://github.com/crytlig/azure-agentic-infraops --skill azure-rbac-crytlig
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: azure-rbac
Source: https://github.com/crytlig/azure-agentic-infraops/tree/main/.github/skills/azure-rbac
Command: npx skills add https://github.com/crytlig/azure-agentic-infraops --skill azure-rbac-crytlig

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill helps users identify the least-privilege RBAC roles required for their Azure resources, simplifying role assignment and enhancing security.

Core Features & Use Cases

  • Role Identification: Finds the smallest suitable built-in or custom RBAC role based on desired permissions.
  • Command Generation: Produces CLI commands and Bicep snippets to automate role assignment.
  • Guidance: Provides instructions on permissions needed to grant roles securely.
  • Use Case: For example, when assigning read access to a storage account, this Skill suggests the appropriate role and generates the necessary commands and code snippets for deployment.

Quick Start

Ask the skill to help assign the correct RBAC role to a new user or service principal with minimal privilege requirements.

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 minimal Azure RBAC role for specific permissions?

The Skill identifies the least-privilege built-in or custom Azure RBAC role matching your desired permissions, ensuring secure access control without over-granting rights to your resources.

How do I generate Azure CLI commands and Bicep snippets for role assignment?

You can generate Azure CLI commands and Bicep snippets by specifying the required role and target identity, which produces deployment configurations to automate secure role assignment.

What permissions do I need to securely assign Azure RBAC roles?

Securely assigning Azure RBAC roles requires specific administrative permissions that allow role grants, ensuring the granting identity has the necessary rights to manage access controls.

Can I use Bicep to automate Azure role assignments for a service principal?

Yes, you can use Bicep to automate Azure role assignments by generating deployment snippets that define the minimal necessary RBAC role for a service principal, streamlining secure access provisioning.

What is the best way to assign read access to an Azure storage account securely?

The best way to assign read access securely is to select the smallest suitable RBAC role for the storage account and generate the corresponding CLI commands and Bicep snippets for deployment.