Skip to content

Setting default Service to All#924

Closed
gaelcolas wants to merge 8 commits intomainfrom
f/clearZtModules
Closed

Setting default Service to All#924
gaelcolas wants to merge 8 commits intomainfrom
f/clearZtModules

Conversation

@gaelcolas
Copy link
Collaborator

@gaelcolas gaelcolas commented Feb 19, 2026

  • Setting minimum version for Graph Auth/Teams to 2.35.1
  • Adding Clear-ZtRequiredModule for cleanup
  • Setting default Service to All

For now the Clear-ZtRequiredModule shows this message:
image

And when executed in a clean session, and all the sessions where ZTA module is loaded are closed, executing this:
&'C:\src\zerotrustassessment\src\powershell\public\Clear-ZtRequiredModule.ps1' does the job...

Setting minimum version for Graph Auth/Teams to 2.35.1
Adding Clear-ZtRequiredModules for cleanup
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

This PR updates the PowerShell module’s default connection behavior to connect to all supported services by default, bumps Microsoft Graph module minimum versions used during dependency initialization, and adds a new maintenance command for clearing the module’s cached dependency folder.

Changes:

  • Change Connect-ZtAssessment default -Service from Graph to All.
  • Add Clear-ZtRequiredModules and export it from the module manifest.
  • Update Graph dependency minimum versions used by Initialize-Dependencies.ps1 to 2.35.1.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 10 comments.

File Description
src/powershell/public/Connect-ZtAssessment.ps1 Updates default -Service to All (but help text + version constants need alignment).
src/powershell/public/Clear-ZtRequiredModules.ps1 Adds new cleanup command (but current implementation has import-time side effects and usability issues).
src/powershell/ZeroTrustAssessment.psd1 Exports Clear-ZtRequiredModules (but dependency versions in PrivateData are now inconsistent).
src/powershell/Initialize-Dependencies.ps1 Bumps Graph module versions to 2.35.1 (but duplicates version declarations from other files).

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

gaelcolas and others added 2 commits February 19, 2026 17:19
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings February 19, 2026 16:21
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

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


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

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

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


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@gaelcolas
Copy link
Collaborator Author

Added the implementation of Find-PSResource to install the latest available version in the specified range, instead of the lowest compatible.

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