microsoft / MSCloudLoginAssistant

PowerShell Module Handling Authentication to Cloud Services
https://www.powershellgallery.com/packages/MSCloudLoginAssistant/
MIT License
76 stars 50 forks source link

Add EXO command import handling #181

Open FabienTschanz opened 7 hours ago

FabienTschanz commented 7 hours ago

@NikCharlebois

This PR is an attempt at making the EXO command import smarter so that a user of the module can specify, which cmdlets of the EXO module to import. This results in a massively reduced memory consumption.

Three new values are added to the ExchangeOnline workload:

The approach is designed to increasingly load the new cmdlets (if specified), and if none are specified (by either omitting the new parameter ExchangeOnlineCmdlets or setting its value to @()), it will load all cmdlets in the entire module.

Please note: I was unable to test the functionality with the PSSession handling. This is a pure luck shot and needs testing by people who can reproduce that scenario.

With that functionality, we can most likely improve the situation of https://github.com/microsoft/Microsoft365DSC/issues/4982.


This change is Reviewable