Skip to content

Azure Docs: Azure Role Assignment#590

Merged
remotesynth merged 2 commits into
mainfrom
docs/azure-role-assignment
May 11, 2026
Merged

Azure Docs: Azure Role Assignment#590
remotesynth merged 2 commits into
mainfrom
docs/azure-role-assignment

Conversation

@paolosalvatori
Copy link
Copy Markdown
Contributor

This pull request adds an article on Azure Role Assignment to the Azure emulator documentation.

Fixes DOC-184

@cloudflare-workers-and-pages
Copy link
Copy Markdown

cloudflare-workers-and-pages Bot commented Apr 22, 2026

Deploying localstack-docs with  Cloudflare Pages  Cloudflare Pages

Latest commit: 039baa8
Status: ✅  Deploy successful!
Preview URL: https://fa64de91.localstack-docs.pages.dev
Branch Preview URL: https://docs-azure-role-assignment.localstack-docs.pages.dev

View logs

1. **Role assignment `id` in sample JSON**
   For assignments at a resource group or storage account scope, Azure’s ARM resource ID is the assignment scope **plus** `/providers/Microsoft.Authorization/roleAssignments/{guid}`, not `/subscriptions/{sub}/providers/Microsoft.Authorization/roleAssignments/...` ([resource provider patterns](https://learn.microsoft.com/en-us/azure/templates/microsoft.authorization/roleassignments)). Sample outputs were updated so `id` aligns with `scope` (RG-scoped and storage-account-scoped paths).

2. **`az role assignment delete` scope**
   The delete example now uses `/subscriptions/$SUBSCRIPTION_ID/resourceGroups/rg-rbac-demo`, matching how subscription ID is obtained earlier—consistent with Azure CLI examples that build scopes from the active subscription.
Copilot AI review requested due to automatic review settings May 11, 2026 11:27
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review is ineligible. To be eligible to request a review, you need a paid Copilot license, or your organization must enable Copilot code review.

@remotesynth
Copy link
Copy Markdown
Collaborator

Minor accuracy updates:

  1. Role assignment id in sample JSON
    For assignments at a resource group or storage account scope, Azure’s ARM resource ID is the assignment scope plus /providers/Microsoft.Authorization/roleAssignments/{guid}, not /subscriptions/{sub}/providers/Microsoft.Authorization/roleAssignments/... (resource provider patterns). Sample outputs were updated so id aligns with scope (RG-scoped and storage-account-scoped paths).

  2. az role assignment delete scope
    The delete example now uses /subscriptions/$SUBSCRIPTION_ID/resourceGroups/rg-rbac-demo, matching how subscription ID is obtained earlier—consistent with Azure CLI examples that build scopes from the active subscription.

@remotesynth remotesynth merged commit 7e496a9 into main May 11, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants