azure-rbac

Configure Azure role assignments, managed identities, and data plane permissions across scopes.

1|Updated Aug 10, 2026
One-click install
npx skills add https://github.com/TheViziusGroup/vibe-engineering-skills --skill azure-rbac-theviziusgroup
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: azure-rbac
Source: https://github.com/TheViziusGroup/vibe-engineering-skills/tree/main/plugins/azure-cloud-infra/skills/azure-rbac
Command: npx skills add https://github.com/TheViziusGroup/vibe-engineering-skills --skill azure-rbac-theviziusgroup

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Azure RBAC misconfiguration is a leading cause of production incidents: engineers grant Owner expecting blob access, omit principalType in Bicep causing intermittent failures, or hit the 4,000 assignment limit per subscription. This Skill provides the correct patterns for assigning roles, separating control plane from data plane access, and wiring up passwordless authentication. ## Core Features & Use Cases - Role Assignment Patterns: Built-in role catalog with GUIDs, scope hierarchy rules, and hard limits (4,000 per subscription, 5,000 custom roles per tenant). - Control Plane vs Data Plane Guidance: Explains why Owner cannot read blobs and which data plane roles (Storage Blob Data Contributor, Key Vault Secrets User, Cosmos DB built-in roles) to pair with management roles. - IaC Templates: Bicep and Terraform patterns for role assignments, custom role definitions, and reusable modules with deterministic GUID naming. - Zero-Credential Authentication: Managed identity setup, AKS Workload Identity, and GitHub Actions OIDC federation without stored secrets. - Use Case: A DevOps engineer needs a GitHub Actions workflow to deploy to AKS and read Key Vault secrets. The Skill provides the federated credential subject format, the exact role assignments (AcrPush, AKS Cluster User, Key Vault Secrets User), and the Bicep to provision them. ## Quick Start Ask how to grant a managed identity read access to blobs in a storage account using Bicep, including the correct data plane role and principalType setting.

Frequently Asked Questions about azure-rbac

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I assign an Azure role to a managed identity using Bicep?

Create a Microsoft.Authorization/roleAssignments resource at API version 2022-04-01 with a deterministic GUID name built from scope ID, principal ID, and role definition ID. Always set principalType to ServicePrincipal, since omitting it causes intermittent deployment failures.

Why can't an Azure Owner read blobs in a storage account?

Owner has Actions: ["*"] which covers only the control plane, not DataActions. Data plane access requires a separate role such as Storage Blob Data Contributor or Storage Blob Data Reader assigned alongside the control plane role.

How do I authenticate GitHub Actions to Azure without stored secrets?

Use OIDC federation: create an app registration with a federated credential trusting token.actions.githubusercontent.com, set the subject to your repo and branch or environment, then use azure/login@v2 with id-token: write permission. No client secret is stored.

What is the difference between Azure RBAC and Entra ID roles?

Azure RBAC controls access to Azure resources like VMs and storage through the Resource Manager API, while Entra ID roles control directory objects like users and app registrations through Microsoft Graph. They are completely separate authorization systems.

Why does my role assignment fail with AuthorizationFailed in a pipeline?

Creating role assignments requires Microsoft.Authorization/roleAssignments/write, which Contributor does not include. Use Owner or User Access Administrator, and allow up to 10 minutes for new assignments to propagate before dependent steps run.

What are the limits for Azure role assignments per subscription?

Azure supports 4,000 role assignments per subscription and 500 per management group, and these limits cannot be increased. PIM eligible assignments and management group scope assignments do not count toward the per-subscription limit.