azure-role-selector

Identify minimal Azure RBAC roles and generate CLI commands and Bicep templates.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/lzc0901/vibe_coding_template --skill azure-role-selector-lzc0901
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: azure-role-selector
Source: https://github.com/lzc0901/vibe_coding_template/tree/main/skills/azure-cloud/azure-role-selector
Command: npx skills add https://github.com/lzc0901/vibe_coding_template --skill azure-role-selector-lzc0901

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill helps determine the least-privilege Azure RBAC role that satisfies a user’s required permissions, reducing risk and simplifying access management.

Core Features & Use Cases

  • Role discovery: Finds built-in Azure roles that match the requested permissions.
  • Least-privilege guidance: Recommends the minimal role and scope to meet the needs.
  • Operational guidance: Outputs CLI commands to assign the role and a Bicep snippet for deployment, plus best practices.

Quick Start

Use the azure-role-selector to identify the best-fit role for a given set of permissions and apply it to an identity using the generated CLI commands and Bicep snippet.

Frequently Asked Questions about azure-role-selector

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 specific set of permissions?

This skill identifies the minimal Azure RBAC role by matching your required permissions against built-in role definitions. It recommends the least-privilege role and scope to reduce access risk while satisfying your operational needs.

How do I assign an Azure RBAC role using CLI and Bicep templates?

You can assign an Azure RBAC role using CLI and Bicep by utilizing the operational guidance generated by this skill. It outputs ready-to-use CLI commands and Bicep snippets to automate the role assignment workflow following Azure best practices.

What is the best way to implement least-privilege access control in Azure IAM?

The best way to implement least-privilege access control in Azure IAM is to discover built-in roles that precisely match your needs. This skill provides least-privilege guidance by recommending the minimal role and scope required for your identity management tasks.

Can I automate Azure role assignments using Bicep templates?

Yes, you can automate Azure role assignments by deploying the Bicep snippet generated by this skill. It provides Bicep templates alongside CLI commands to fully automate the role assignment workflow while adhering to Azure best practices.

Does this approach work for discovering built-in Azure roles only?

Yes, this approach works specifically for discovering built-in Azure roles that satisfy your permissions. It applies to Azure IAM tasks including built-in role discovery and least-privilege role design, but does not create custom role definitions.