Add TERRL external recipient estimator - #2571
Open
Nickul-MSFT wants to merge 2 commits into
Open
Conversation
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 696f0887-21ac-4be0-859a-b999b0e9f838
|
Azure Pipelines: There may be pipelines that require an authorized user to comment /azp run to run. |
Contributor
There was a problem hiding this comment.
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 aGet-MessageTraceV2continuation-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. |
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Notes
The estimate is intentionally identified as approximate; Get-LimitsEnforcementStatus remains the live enforcement source of truth.