azure-rbac

Generate minimal Azure RBAC role assignments with az CLI and Bicep snippets.

Updated Apr 12, 2026
One-click install
npx skills add https://github.com/davidrrowley/CortexYouV3 --skill azure-rbac-davidrrowley
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: azure-rbac
Source: https://github.com/davidrrowley/CortexYouV3/tree/main/.agents/skills/azure-rbac
Command: npx skills add https://github.com/davidrrowley/CortexYouV3 --skill azure-rbac-davidrrowley

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps cloud engineers and administrators determine the minimal Azure RBAC role or custom role definition needed to grant an identity only the permissions it requires, and then generates the corresponding az CLI commands and Bicep roleAssignment snippets to apply that access safely.

Core Features & Use Cases

  • Role Discovery: Map requested permissions to the closest built-in Azure RBAC role using authoritative documentation.
  • Custom Role Creation: Generate a custom role definition when no built-in role provides the exact, least-privilege set of actions.
  • Automation Output: Produce az CLI commands for role assignment and Bicep code snippets for infrastructure-as-code deployment.
  • Use Case: Determine the role required for a managed identity to read blobs in a storage account, then output a custom role if needed and provide CLI and Bicep assignment examples.

Quick Start

Ask the skill to find the least-privilege role to allow a managed identity to read blobs in storage account 'myStorage' and provide the az CLI commands and a Bicep roleAssignment snippet.

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

You can find the least-privilege Azure RBAC role by mapping requested permissions to Azure actions and matching them to the closest built-in role using authoritative documentation, or generating a custom role definition if no exact match exists.

Can I generate Bicep roleAssignment snippets for Azure RBAC?

Yes, you can generate Bicep roleAssignment snippets for Azure RBAC. This process produces valid Bicep resource definitions for infrastructure-as-code deployment to apply least-privilege access safely.

What is the best way to assign a custom Azure role using az CLI?

The best way to assign a custom Azure role using az CLI is to generate valid az CLI commands directly from the defined custom role actions, creating and applying the assignment safely to the target identity.

When do I need a custom Azure role definition instead of a built-in role?

You need a custom Azure role definition when no built-in Azure RBAC role provides the exact least-privilege set of actions required. This ensures the identity receives only the specific permissions requested.

Does this approach work for generating az CLI commands for storage account blob access?

Yes, this approach works for generating az CLI commands for storage account blob access. It determines the minimal role required for a managed identity to read blobs and outputs the corresponding az CLI commands.