Skip to content

Triage and document solutions for EA enrollment scope 403 errors (Issue #1754)#1846

Open
Copilot wants to merge 11 commits intodevfrom
copilot/fix-enrollment-scope-error
Open

Triage and document solutions for EA enrollment scope 403 errors (Issue #1754)#1846
Copilot wants to merge 11 commits intodevfrom
copilot/fix-enrollment-scope-error

Conversation

Copy link
Contributor

Copilot AI commented Oct 10, 2025

Summary

This PR adds concise troubleshooting guidance for Issue #1754, where users experience HTTP 403 (Forbidden) errors when assigning Enterprise Agreement enrollment reader permissions using the Add-FinOpsServicePrincipal PowerShell cmdlet.

Issue Status: ✅ RESOLVED by user

Classification: User configuration/documentation issue (NOT a code bug)

Changes

  • Added a "403" error entry to the existing common errors page with mitigation steps and links to authoritative Microsoft docs
  • Updated changelog under v14 "Implementing FinOps guide" section

Root Causes

The 403 error typically occurs due to:

  1. Incorrect Object ID — Using application object ID from "App Registrations" instead of service principal object ID from "Enterprise Applications"
  2. Insufficient Permissions — User lacks "Enrollment Writer" role required to assign "EnrollmentReader" role
  3. Incorrect Billing Account ID — Billing account ID doesn't match EA enrollment number

Solutions Provided

The error page documents:

Closes #1754

@microsoft-github-policy-service microsoft-github-policy-service bot added the Skill: DevOps GitHub setup and automation label Oct 10, 2025
@microsoft-github-policy-service microsoft-github-policy-service bot added Skill: Documentation Documentation updates Needs: Review 👀 PR that is ready to be reviewed Tool: FinOps guide Implementing FinOps guide labels Oct 10, 2025
Copilot AI changed the title [WIP] Fix multiple failures when configuring enrollment scope error 403 Triage and document solutions for EA enrollment scope 403 errors (Issue #1754) Oct 10, 2025
Copilot AI requested a review from MSBrett October 10, 2025 20:40
Copy link
Contributor

@MSBrett MSBrett left a comment

Choose a reason for hiding this comment

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

Lets document this correctly. Keep it concise. Ensure we have links to the authorative docs.

@microsoft-github-policy-service microsoft-github-policy-service bot added Needs: Attention 👋 Issue or PR needs to be reviewed by the author or it will be closed due to no activity Needs: Review 👀 PR that is ready to be reviewed and removed Needs: Review 👀 PR that is ready to be reviewed Needs: Attention 👋 Issue or PR needs to be reviewed by the author or it will be closed due to no activity labels Oct 11, 2025
@flanakin flanakin added this to the v14 milestone Jan 6, 2026
@flanakin flanakin modified the milestones: v14, v16, v15 Feb 23, 2026
Copilot AI and others added 4 commits March 2, 2026 13:19
Co-authored-by: MSBrett <24294904+MSBrett@users.noreply.github.com>
Add comprehensive troubleshooting documentation for HTTP 403 errors
when assigning Enterprise Agreement enrollment reader permissions.

Covers three main root causes:
- Incorrect object ID (Application ID vs Service Principal ID)
- Insufficient permissions (missing Enrollment Writer role)
- Authentication context issues (PowerShell version, account context)

Includes PowerShell examples, verification steps, and links to
authoritative Microsoft documentation.

Closes #1754
msbrett and others added 4 commits March 2, 2026 13:19
Document addition of Enterprise Agreement enrollment 403 errors
troubleshooting guide in FinOps hubs v13 changelog.

Related to #1754
Reverts the standalone troubleshooting doc and changelog entry in favor
of adding the error to the existing common errors page.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Adds a concise entry to the existing errors.md page for the HTTP 403
error when using Add-FinOpsServicePrincipal. Links to authoritative
Microsoft docs for EA role assignment and permissions.

Closes #1754

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@flanakin flanakin force-pushed the copilot/fix-enrollment-scope-error branch from bcc930d to 9d55c11 Compare March 2, 2026 21:25
flanakin and others added 2 commits March 2, 2026 13:28
Adds March 2026 release date and GitHub release/changelog links to v14
section, matching the format used in previous releases.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@flanakin flanakin marked this pull request as ready for review March 2, 2026 21:32
Copilot AI review requested due to automatic review settings March 2, 2026 21:32
@flanakin flanakin enabled auto-merge (squash) March 2, 2026 21:33
@flanakin flanakin disabled auto-merge March 2, 2026 21:33
@flanakin flanakin enabled auto-merge (squash) March 2, 2026 21:34
@flanakin
Copy link
Collaborator

flanakin commented Mar 2, 2026

@MSBrett This one's blocked on you

Copy link
Contributor

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.

Pull request overview

Adds troubleshooting guidance to the FinOps toolkit documentation to help users resolve EA enrollment scope HTTP 403 errors encountered when granting enrollment reader permissions via Add-FinOpsServicePrincipal.

Changes:

  • Added a new “403” troubleshooting section to the common errors page with mitigation steps and references.
  • Updated the changelog (v14) to include the new troubleshooting guidance and adjusted the “latest” anchor placement.

Reviewed changes

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

File Description
docs-mslearn/toolkit/help/errors.md Adds a dedicated 403 troubleshooting entry with mitigation steps for EA enrollment role assignment scenarios.
docs-mslearn/toolkit/changelog.md Adds a v14 changelog bullet referencing the new 403 guidance and updates the latest-release anchor/section formatting.

- Fix Add-FinOpsServicePrincipal link path (hubs→cost, capitalization)
- Fix changelog link to errors.md (remove unnecessary ../)
- Update PR description to reflect v14 changelog placement

🤖 Generated with [Claude Code](https://claude.ai/claude-code)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@flanakin
Copy link
Collaborator

flanakin commented Mar 3, 2026

🤖 [AI][Claude Code] PR Update Summary

Addressed: 3 thread(s)

  • ✅ Implemented: 3
  • 🤔 Needs discussion: 0
  • ❓ Questions: 0

Key changes:

  • Fixed Add-FinOpsServicePrincipal link path to point to correct location (powershell/cost/add-finopsserviceprincipal.md)
  • Fixed changelog link to errors.md (removed unnecessary ../)
  • Updated PR description to reflect v14 changelog placement

All Copilot bot feedback has been addressed in commit 6ac0898.

@flanakin flanakin modified the milestones: v15, v14 Mar 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Needs: Review 👀 PR that is ready to be reviewed Skill: DevOps GitHub setup and automation Skill: Documentation Documentation updates Tool: FinOps guide Implementing FinOps guide

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Multiple Failures when configuring Enrollment Scope Error 403

6 participants