azure-role-selector

Identify least-privilege Azure RBAC roles and generate CLI or ARM snippets.

267|40|Updated Apr 2, 2026
One-click install
npx skills add https://github.com/Azure/git-ape --skill azure-role-selector-azure
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: azure-role-selector
Source: https://github.com/Azure/git-ape/tree/main/.github/skills/azure-role-selector
Command: npx skills add https://github.com/Azure/git-ape --skill azure-role-selector-azure

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Recommends least-privilege Azure RBAC roles for deployed resources, reducing over-privilege risk and simplifying access management.

Core Features & Use Cases

  • Identify built-in roles that match required permissions for a resource, minimizing excess access.
  • Generate role assignment commands for common principals (service principals, managed identities) and provide paths for custom role definitions when needed.
  • Align with security governance during resource onboarding, CI/CD pipelines, and ongoing security analyses.

Quick Start

Describe the permissions you need and the skill will propose the appropriate roles and ready-to-use assignment commands.

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 least-privilege Azure RBAC roles for my deployed resources?▼

To find least-privilege Azure RBAC roles, describe the required permissions for your resources. The skill identifies matching built-in roles to minimize excess access and outputs ready-to-use Azure CLI or ARM template snippets for assignment.

Can I generate Azure CLI commands for assigning RBAC roles to managed identities?▼

Yes, you can generate Azure CLI commands for assigning RBAC roles to managed identities and service principals. Provide the required permissions, and the skill produces ready-to-use assignment commands tailored for common principals.

What is least-privilege RBAC and how does it reduce over-privilege risk in Azure?▼

Least-privilege RBAC restricts access by assigning only the permissions necessary for a task. It reduces over-privilege risk by matching required resource permissions to specific built-in roles, avoiding excessive access during security analysis.

When should I define a custom Azure role definition instead of using a built-in role?▼

You should define a custom Azure role definition when no built-in role matches your exact required permissions. The skill suggests custom role paths during security analysis to maintain least-privilege when built-in roles provide excess access.

How do I integrate Azure RBAC role selection into my CI/CD pipeline configuration?▼

To integrate Azure RBAC role selection into CI/CD pipeline configuration, apply the skill during deployment to validate required permissions. It outputs ready-to-use Azure CLI or ARM template snippets to enforce security governance automatically.