azure-rbac

Generate Azure CLI commands and Bicep code for RBAC role assignments.

1|Updated Mar 4, 2026
One-click install
npx skills add https://github.com/azaslonov/apic-tools-demos --skill azure-rbac-azaslonov
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: azure-rbac
Source: https://github.com/azaslonov/apic-tools-demos/tree/main/plugins/azure/skills/azure-rbac
Command: npx skills add https://github.com/azaslonov/apic-tools-demos --skill azure-rbac-azaslonov

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill helps users identify the appropriate Azure RBAC roles for their needs and generate the necessary commands and code snippets for role assignment, streamlining access management.

Core Features & Use Cases

  • Role Identification: Find the minimal built-in role matching desired permissions or create custom roles when needed.
  • Command Generation: Produce CLI commands for role assignment based on specific requirements.
  • Code Snippet Provision: Provide Bicep templates for secure and efficient role configuration.
  • Use Case: An administrator wants to assign a least-privilege role to a managed identity for blob storage access and generates the required CLI commands and Bicep code effortlessly.

Quick Start

Use the azure-rbac skill to identify the correct role and generate role assignment commands for a new managed identity.

Frequently Asked Questions about azure-rbac

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

FAQPage Schema
How do I generate Azure RBAC role assignment commands for a managed identity?

To generate Azure RBAC role assignment commands, specify the target managed identity and desired permissions. The skill identifies the correct built-in role and outputs the exact CLI commands needed for least-privilege access control setup.

What is the best way to find the least-privilege built-in Azure role for blob storage access?

Finding the least-privilege built-in Azure role involves matching your desired permissions against available roles. This skill identifies the minimal built-in role matching your requirements or suggests creating a custom role when needed.

Can I create Bicep templates for Azure RBAC role assignments?

Yes, you can create Bicep templates for Azure RBAC role assignments. This skill provides Bicep code snippets that configure secure role assignments, streamlining access management and security compliance within your infrastructure code.

How do I assign a custom Azure RBAC role using CLI commands?

To assign a custom Azure RBAC role using CLI commands, define the specific permissions required. This skill generates the necessary CLI commands for role assignment when a built-in role does not match your desired access control needs.

Does this tool support generating role assignments for both CLI and Bicep?

Yes, this tool supports generating role assignments for both CLI and Bicep. It produces CLI commands for direct assignment and Bicep templates for infrastructure deployment, ensuring secure and efficient role configuration across different workflows.