Skip to content

Add TERRL external recipient estimator - #2571

Open
Nickul-MSFT wants to merge 2 commits into
mainfrom
nickul/add-terrl-external-recipient-estimate
Open

Add TERRL external recipient estimator#2571
Nickul-MSFT wants to merge 2 commits into
mainfrom
nickul/add-terrl-external-recipient-estimate

Conversation

@Nickul-MSFT

Copy link
Copy Markdown
Contributor

Summary

  • add a Transport script that estimates TERRL external-recipient usage from Get-MessageTraceV2 data
  • add offline classification and pagination tests
  • add the documentation landing page and Transport navigation entry

Notes

The estimate is intentionally identified as approximate; Get-LimitsEnforcementStatus remains the live enforcement source of truth.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Copilot-Session: 696f0887-21ac-4be0-859a-b999b0e9f838
@Nickul-MSFT
Nickul-MSFT requested a review from a team as a code owner August 5, 2026 20:44
Copilot AI lite review requested due to automatic review settings August 5, 2026 20:44
@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
There may be pipelines that require an authorized user to comment /azp run to run.

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

Adds a new Transport utility to estimate tenant TERRL external-recipient usage based on Get-MessageTraceV2, along with supporting Pester tests and MkDocs documentation so the script is discoverable and documented.

Changes:

  • Introduces Get-TerrlExternalRecipientEstimate.ps1, including classification logic and a Get-MessageTraceV2 continuation-based fetcher with request pacing.
  • Adds Pester coverage for offline classification rules and pagination/continuation behavior.
  • Adds a new docs landing page and links it into the MkDocs Transport navigation.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.

File Description
Transport/Tests/Get-TerrlExternalRecipientEstimate.Tests.ps1 Adds unit tests for classification and trace pagination/continuation behavior.
Transport/Get-TerrlExternalRecipientEstimate.ps1 New script implementing TERRL estimate logic, trace retrieval, aggregation, and reporting.
mkdocs.yml Adds the new Transport doc page to the site navigation.
docs/Transport/Get-TerrlExternalRecipientEstimate.md Documents usage, limitations, parameters, and examples for the new script.

Comment thread docs/Transport/Get-TerrlExternalRecipientEstimate.md Outdated
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
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