Skip to content

feat: replace role name with GUID#660

Draft
Ayaz-Microsoft wants to merge 2 commits into
devfrom
feat/replace-guid
Draft

feat: replace role name with GUID#660
Ayaz-Microsoft wants to merge 2 commits into
devfrom
feat/replace-guid

Conversation

@Ayaz-Microsoft

Copy link
Copy Markdown
Contributor

Purpose

This PR replaces role name string with respective GUIDs.

Currently, the Bicep infrastructure templates use role names (strings) for Azure built-in role assignments. This approach can be unreliable due to:
Role name variations across regions
Potential future role name changes
Subscription-specific role name issues (especially with PSL subscriptions)
To ensure consistent and reliable deployments across all Azure subscriptions and regions, I replace role names with their corresponding GUIDs.

Does this introduce a breaking change?

  • Yes
  • No

Golden Path Validation

  • I have tested the primary workflows (the "golden path") to ensure they function correctly without errors.

Deployment Validation

  • I have validated the deployment process successfully and all services are running as expected with this change.

What to Check

Verify that the following are valid

  • ...

Other Information

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

This PR primarily hardens Azure RBAC role assignments in the infrastructure templates by replacing built-in role names with their corresponding role definition GUIDs, improving deployment reliability across regions/subscriptions. It also updates the quota-check defaults/documentation to use a newer OpenAI model and higher default capacity.

Changes:

  • Replace Azure built-in role names with role definition GUIDs in infra/main.bicep (and the generated infra/main.json).
  • Update quota-check documentation and the Bash quota-check script default model/capacity to gpt4.1-mini:150.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 2 comments.

File Description
infra/main.bicep Swaps RBAC role names for role GUIDs in role assignments (with inline comments preserving readability).
infra/main.json Regenerated ARM JSON reflecting the GUID-based role assignments (plus updated template hash).
docs/QuotaCheck.md Updates default model references/commands for quota validation.
Deployment/quota_check_params.sh Changes default model/capacity pair used for quota checks.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread docs/QuotaCheck.md
Comment thread Deployment/quota_check_params.sh
@Ayaz-Microsoft Ayaz-Microsoft changed the base branch from main to dev June 18, 2026 08:53
@Ayaz-Microsoft Ayaz-Microsoft requested a review from Copilot June 18, 2026 08:54

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 2 out of 2 changed files in this pull request and generated no new comments.

@Ayaz-Microsoft Ayaz-Microsoft marked this pull request as draft June 18, 2026 08:59
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.

2 participants