Conversation
Setting minimum version for Graph Auth/Teams to 2.35.1 Adding Clear-ZtRequiredModules for cleanup
There was a problem hiding this comment.
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-ZtAssessmentdefault-ServicefromGraphtoAll. - Add
Clear-ZtRequiredModulesand export it from the module manifest. - Update Graph dependency minimum versions used by
Initialize-Dependencies.ps1to2.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.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
|
Added the implementation of |
For now the Clear-ZtRequiredModule shows this message:

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...