azure-rbac

Determine Azure RBAC roles and generate CLI and Bicep assignment code.

12|1|Updated Mar 15, 2026
One-click install
npx skills add https://github.com/jorgeasaurus/agent-skills --skill azure-rbac-jorgeasaurus
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: azure-rbac
Source: https://github.com/jorgeasaurus/agent-skills/tree/main/azure-rbac
Command: npx skills add https://github.com/jorgeasaurus/agent-skills --skill azure-rbac-jorgeasaurus

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires azure-cli, bicep, and includes scripts (resource) and references (resource) components.

What problem does it solve?

Finding and assigning the correct Azure RBAC role with least privilege access can be time-consuming and error-prone. This Skill streamlines the process.

Core Features & Use Cases

  • RBAC Role Identification: Determines the most appropriate RBAC role based on permissions required.
  • CLI and Bicep Code Generation: Generates CLI commands and Bicep code for role assignment.
  • Permissions Guidance: Provides information on permissions required to grant roles.
  • Use Case: A user needs to assign a role to an Azure identity with limited access to blobs but no other resources. This Skill will help find the appropriate role, generate the necessary CLI and Bicep commands, and offer guidance on permissions.

Quick Start

Use the 'azure-rbac skill to find and assign the appropriate role for a managed identity to read blobs.

Frequently Asked Questions about azure-rbac

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

FAQPage Schema
How do I assign an Azure RBAC role with least privilege access to a managed identity?

To assign an Azure RBAC role with least privilege access, you determine the appropriate role based on required permissions and generate CLI or Bicep code to execute the assignment. This targets identity management and defines specific role scopes.

What is the best way to generate Bicep code for an Azure role assignment?

Generating Bicep code for an Azure role assignment is best handled by determining the least privilege role needed and producing Bicep syntax that defines the role scope. This approach streamlines permissions assignment securely within Azure environments.

How does least privilege access work when assigning Azure RBAC roles?

Least privilege access works by identifying the minimum permissions an identity needs, such as read access to blobs without other resource permissions. The appropriate RBAC role is determined from these requirements before generating CLI and Bicep code for the assignment.

Do I need Azure CLI and Bicep to execute role assignments?

Yes, you need Azure CLI tools and Bicep to execute assignments and define role scopes. These dependencies are required to run the generated CLI commands and deploy the Bicep code for secure Azure RBAC role configuration.

Can I use this approach to limit a managed identity to only read blobs in Azure?

Yes, you can limit an identity to read blobs by determining the specific RBAC role that matches those permissions. The process generates the necessary CLI and Bicep commands to assign the role while excluding access to other resources.

What permissions are required to grant Azure RBAC roles to an identity?

Granting Azure RBAC roles requires specific permissions at the target scope. The process provides guidance on the permissions required to grant roles, ensuring the assigning identity has the necessary privileges to execute the CLI or Bicep deployment.