azure-rbac

Identify least privilege Azure RBAC roles and generate CLI commands and Bicep code.

10|2|Updated Mar 8, 2026
One-click install
npx skills add https://github.com/mahmoud20138/Claude-Skills-Collection --skill azure-rbac-mahmoud20138
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: azure-rbac
Source: https://github.com/mahmoud20138/Claude-Skills-Collection/tree/main/02-Azure-Skills/skills/azure-rbac
Command: npx skills add https://github.com/mahmoud20138/Claude-Skills-Collection --skill azure-rbac-mahmoud20138

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill helps users identify the most appropriate Azure Role-Based Access Control (RBAC) role for an identity, ensuring least privilege access and generating the necessary CLI commands and Bicep code for assignment.

Core Features & Use Cases

  • Least Privilege Role Identification: Determines the minimal RBAC role required for specific permissions.
  • Command Generation: Creates Azure CLI commands for role assignment.
  • Bicep Code Generation: Provides Bicep snippets for role assignment.
  • Permission Guidance: Offers information on the permissions needed to grant roles.
  • Use Case: A user needs to grant a managed identity read access to Azure Blob Storage. This skill will identify the "Storage Blob Data Reader" role, generate the CLI command to assign it, and provide Bicep code for infrastructure-as-code deployment.

Quick Start

Find the least privilege role for an identity to read Azure Storage Blobs and generate the CLI command to assign it.

Frequently Asked Questions about azure-rbac

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

FAQPage Schema
What is the least privilege Azure RBAC role to read storage blobs?

The least privilege Azure RBAC role to read storage blobs is the Storage Blob Data Reader role. It allows an identity to read blob data without granting broader management permissions, adhering strictly to least privilege principles.

How do I assign an Azure RBAC role using the CLI?

To assign an Azure RBAC role using the CLI, you generate the specific Azure CLI command targeting the identity and scope. This process identifies the minimal role required and outputs the exact command syntax for immediate execution.

Can I generate Bicep code for Azure role assignments?

Yes, you can generate Bicep code for Azure role assignments. The process outputs Bicep snippets that define the role assignment infrastructure as code, allowing you to deploy least privilege access configurations declaratively.

What permissions do I need to grant Azure RBAC roles to identities?

Granting Azure RBAC roles requires specific permissions at the target scope. The process provides explicit guidance on the necessary permissions, ensuring the assigning identity has the authority to delegate the selected least privilege roles.

How do I find the correct Azure RBAC role for a specific identity?

Finding the correct Azure RBAC role involves evaluating the identity's required permissions against available Azure roles. The process identifies the minimal role matching the specific access requirements, such as reading blobs, to maintain least privilege.