Conversation
…aching, and docs update Co-authored-by: blindzero <13959569+blindzero@users.noreply.github.com>
…equisites check Co-authored-by: blindzero <13959569+blindzero@users.noreply.github.com>
…(session presence guarantee) Co-authored-by: blindzero <13959569+blindzero@users.noreply.github.com>
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: b7a2531f03
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
There was a problem hiding this comment.
Pull request overview
This PR improves the Exchange Online provider’s usability by adding a fail-fast prerequisites check (with actionable guidance), caching the result per provider instance, and restructuring/updating the provider documentation to match the newer template direction (issue #232).
Changes:
- Adds
Test-IdleExchangeOnlinePrerequisiteswith layered checks (module installed, module imported, EXO session established) and actionable notes. - Caches prerequisites results on the provider instance and emits structured verbose diagnostics during provider initialization.
- Adds Pester unit tests for the prerequisites function and updates the provider reference documentation with clearer auth/troubleshooting guidance.
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| tests/Providers/ExchangeOnlineProvider.Tests.ps1 | Adds unit tests validating the new prerequisites check behavior and result shape. |
| src/IdLE.Provider.ExchangeOnline/Public/New-IdleExchangeOnlineProvider.ps1 | Runs prerequisites check at construction, emits verbose diagnostics, and uses a cached result for later operations. |
| src/IdLE.Provider.ExchangeOnline/Private/Test-IdleExchangeOnlinePrerequisites.ps1 | Implements the new structured prerequisites check (module + cmdlet/session availability). |
| docs/reference/providers/provider-exchangeonline.md | Restructures provider docs and expands authentication + troubleshooting guidance. |
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Code Coverage Report
|
… at construction) Co-authored-by: blindzero <13959569+blindzero@users.noreply.github.com>
@copilot our Docs Consistency Checker found an MDX issue: MDX risks (possible accidental MDX parsing)
|
…provider docs Co-authored-by: blindzero <13959569+blindzero@users.noreply.github.com>
Fixed in 4f74dd6 — moved the app-only auth code example out of the blockquote and into a standalone fenced code block, so the |
Test-IdleExchangeOnlinePrerequisites: 3-layer check (module installed, imported, session active)provider-exchangeonline.mddocs: summary table, token requirements, troubleshooting entriesGet-Mailboxas active session indicatorGet-Mailbox<thumbprint>etc.Original prompt
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.