Skip to content

Fix EA department scope failing on pricesheet export#1935

Merged
flanakin merged 1 commit into
devfrom
fix/1870-ea-department-scope
Jan 13, 2026
Merged

Fix EA department scope failing on pricesheet export#1935
flanakin merged 1 commit into
devfrom
fix/1870-ea-department-scope

Conversation

@flanakin

Copy link
Copy Markdown
Collaborator

Summary

Fixes #1870

  • Price sheet, reservation details, reservation transactions, and reservation recommendations exports are only supported at the EA billing account level, not at department scope
  • Added a new ea-department scope type detection that distinguishes department scopes from billing account scopes
  • The ea-department case only creates cost details exports (daily and monthly FocusCost) which are the only exports supported at the department level

Changes

  • Updated scope type detection expression to identify /departments/ in the scope path
  • Added new ea-department switch case with only the supported export activities

Test plan

  • Deploy FinOps hub with an EA department scope (e.g., /providers/Microsoft.Billing/billingAccounts/1234567/departments/56789)
  • Verify config_ConfigureExports pipeline runs without errors
  • Verify daily and monthly cost details exports are created successfully
  • Verify no pricesheet or reservation exports are attempted for department scopes

🤖 Generated with Claude Code

Price sheet, reservation details, reservation transactions, and
reservation recommendations exports are only supported at the EA
billing account level, not at department scope. This change adds
a new `ea-department` scope type that only creates the cost details
exports that are supported at the department level.

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

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@flanakin

Copy link
Copy Markdown
Collaborator Author

@microsoft-github-policy-service agree

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 fixes issue #1870 where EA department scopes were failing during pricesheet export configuration. The root cause was that pricesheet, reservation details, reservation transactions, and reservation recommendations exports are only supported at EA billing account level, not at department scope.

Changes:

  • Added ea-department scope type detection in the scope type identification logic to distinguish EA department scopes from billing account scopes
  • Created a new switch case for EA department scopes that only configures the two supported export types (daily and monthly cost details)

@flanakin flanakin added this to the v13 milestone Jan 13, 2026
@flanakin flanakin merged commit af60ebf into dev Jan 13, 2026
10 checks passed
@flanakin flanakin deleted the fix/1870-ea-department-scope branch January 13, 2026 11:14
flanakin added a commit that referenced this pull request Jan 31, 2026
Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
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: Deployment Resource deployment automation via bicep or terraform Tool: FinOps hubs Data pipeline solution

Projects

None yet

Development

Successfully merging this pull request may close these issues.

config_ConfigureExports Data Factory Pipeline Error with Switch Export Type Activity

8 participants