azure-rbac

Generate Azure RBAC assignments, custom roles, managed identities, and policies in Bicep, Terraform, and Azure CLI.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill simplifies the creation and management of Azure Role-Based Access Control (RBAC) assignments, custom roles, managed identities, and Azure Policies, ensuring secure and compliant cloud infrastructure.

Core Features & Use Cases

  • RBAC Assignments: Generate role assignments for built-in or custom roles at various scopes.
  • Custom Role Definitions: Create granular custom roles tailored to specific needs.
  • Managed Identities: Configure system-assigned and user-assigned managed identities, including federated credentials.
  • Azure Policy: Define and assign policies for governance, compliance, and security.
  • Use Case: You need to grant a new application service read-only access to a specific storage account. This Skill can generate the Bicep or Terraform code for the managed identity and the corresponding RBAC role assignment.

Quick Start

Use the azure-rbac skill to generate a role assignment for the 'Storage Blob Data Reader' role at the resource group scope for a given principal ID.

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 assignments using Terraform or Bicep?

Generate Azure RBAC role assignments by specifying the built-in or custom role, target scope, and principal ID in Bicep, Terraform, or Azure CLI to enforce secure access control and least privilege across resources.

How do I create custom Azure role definitions for least privilege access?

Create custom Azure role definitions by specifying granular permissions tailored to your application requirements using Bicep or Terraform templates, ensuring strict least privilege compliance across your Azure resources.

Can I configure user-assigned managed identities with federated credentials in Bicep?

Yes, you can configure system-assigned and user-assigned managed identities with federated credentials using Bicep, Terraform, and Azure CLI to securely grant application services access to specific storage accounts.

What is the best way to define Azure Policies for governance and compliance?

Define Azure Policies for governance and compliance by generating policy definitions and assignments using Bicep or Terraform, ensuring your cloud infrastructure meets security and regulatory requirements across all resource scopes.

Does this approach support assigning roles at different Azure scopes?

Yes, Azure RBAC role assignments can be generated at various scopes including management groups, subscriptions, resource groups, and individual resources using Bicep, Terraform, and Azure CLI.

Why use managed identities for Azure RBAC assignments instead of service principals?

Managed identities eliminate the need to manage credentials by providing an automatically managed identity in Azure Active Directory, allowing secure RBAC role assignments for applications accessing Azure resources.