Chris H

Results 105 comments of Chris H

@FabienTschanz Fantastic! Looking through other PowerShell docs it looks like the official way to do this is to define [RequiredModules](https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_module_manifests?view=powershell-5.1#requiredmodules) in the module manifest. I think this would also allow...

That figures. Another downside of RequiredModules that I've found recently is that some modules (specifically Az.Accounts) have various .Net assemblies defined in the 'RequiredAssemblies' of their own module definitions, and...

@FabienTschanz Is there any mileage in playing with `$PSModuleAutoloadingPreference` then using `Import-Module` with pinned versions, before running each module?

@FabienTschanz Maybe I'm missing something, but can't we work out which modules are required per resource by checking which New-M365DSCConnection Workloads are called? (And in my imagination, can't we actually...

@FabienTschanz Ah, yes I'd completely forgotten that the Microsoft.Graph and Az modules come in many parts - I guess this is where lazy module loading really does make you lazy!...

@FabienTschanz @NikCharlebois Great that this is now imported? Did the pull request implement this in its entirety? (Can we have newer versions of the Graph module installed now, and do...

@FabienTschanz Great! Does the documentation for `Update-M365DSCModule` get auto-updated? https://microsoft365dsc.com/user-guide/cmdlets/Update-M365DSCModule/

Will need some work with https://pnp.github.io/powershell/cmdlets/Get-PnPTenantInstance.html