azure-rbac

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

1|Updated Apr 4, 2026
One-click install
npx skills add https://github.com/p-potvin/vaultwares-pipelines --skill azure-rbac-p-potvin
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: azure-rbac
Source: https://github.com/p-potvin/vaultwares-pipelines/tree/main/.github/agents/agents/azure-rbac
Command: npx skills add https://github.com/p-potvin/vaultwares-pipelines --skill azure-rbac-p-potvin

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Helps teams quickly identify the least-privilege Azure RBAC role for an identity and generate the necessary CLI commands and Bicep code to assign it, reducing risk and manual effort.

Core Features & Use Cases

  • Least-privilege role discovery: Determines the minimal built-in or custom role that satisfies the requested permissions.
  • Automated command generation: Produces Azure CLI commands to perform the assignment, with guidance on scope and scope-related considerations.
  • Infrastructure as code integration: Generates a Bicep snippet for reproducible role assignments in deployments.
  • Prerequisites guidance: Documents required permissions and best practices for secure role grants.

Quick Start

Identify the minimal Azure RBAC role for a given identity and generate the CLI commands and Bicep code to assign it.

Frequently Asked Questions about azure-rbac

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 identity?

Azure role assignments can be automated using Azure CLI commands for imperative script execution or Bicep snippets for declarative infrastructure as code. This Skill generates both formats to provide deterministic deployment guidance for scripts and pipelines.

What is the best way to assign an Azure RBAC role using Bicep?

Assigning Azure RBAC roles requires the identity performing the assignment to have the necessary permissions, such as Microsoft.Authorization/roleAssignments/write. The Skill documents these required permissions and best practices for secure role grants.

Can I generate Azure CLI commands for managed identity role assignments?

Azure RBAC role assignment is needed whenever an identity requires access to Azure resources like blob storage or other managed services. The Skill helps determine the minimal built-in or custom role required to satisfy those specific access permissions securely.

Does this approach support creating custom Azure RBAC roles?

Yes, this approach supports custom Azure RBAC roles by determining the minimal custom role that satisfies your requested permissions when a built-in role is insufficient. It generates the corresponding CLI commands and Bicep code to perform the custom role assignment.