Microsoft365DSC icon indicating copy to clipboard operation
Microsoft365DSC copied to clipboard

1.22.119.2 Doesn't install dependent components

Open hmank opened this issue 4 years ago • 3 comments

Details of the scenario you tried and the problem that is occurring

I'm trying to install the latest version of the DSC module on a new machine, it only installs the DSC module it doesn't install any of the required dependancies.

I tried running export-m365dscconfiguration and then it began installing the dependant components

PS C:\WINDOWS\system32> Export-M365DSCConfiguration You cannot call a method on a null-valued expression. At C:\Program Files\WindowsPowerShell\Modules\microsoft365dsc\1.22.119.2\modules\M365DSCUtil.psm1:951 char:9

  •     $tenant = $Credential.UserName.Split('@')[1]
    
  •     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : InvalidOperation: (:) [], RuntimeException
    • FullyQualifiedErrorId : InvokeMethodOnNull

Updating dependency {DSCParser} to version {1.3.0.2}...✅ Updating dependency {ExchangeOnlineManagement} to version {2.0.5}...✅ Updating dependency {Microsoft.Graph.Applications} to version {1.9.1}...✅ Updating dependency {Microsoft.Graph.Authentication} to version {1.9.1}...✅ Updating dependency {Microsoft.Graph.DeviceManagement} to version {1.9.1}...✅ Updating dependency {Microsoft.Graph.DeviceManagement.Administration} to version {1.9.1}...✅ Updating dependency {Microsoft.Graph.DeviceManagement.Enrolment} to version {1.9.1}...✅ Updating dependency {Microsoft.Graph.Devices.CorporateManagement} to version {1.9.1}...✅ Updating dependency {Microsoft.Graph.Groups} to version {1.9.1}...✅ Updating dependency {Microsoft.Graph.Identity.DirectoryManagement} to version {1.9.1}...

Verbose logs showing the problem

Suggested solution to the issue

The DSC configuration that is used to reproduce the issue (as detailed as possible)

# insert configuration here

The operating system the target node is running

Version of the DSC module that was used ('dev' if using current dev branch)

Install-Module Microsoft365DSC -Force

hmank avatar Jan 25 '22 16:01 hmank

For performance reason (and to prevent future issues) we no longer force the dependencies in the Module's manifest. The error you are reporting above will be fixed in an upcoming PR. Thanks!

NikCharlebois avatar Jan 25 '22 18:01 NikCharlebois

Thanks Nik, do you have the recommendations on how to install the dependencies before hand?

hmank avatar Jan 25 '22 19:01 hmank

Update-M365DSCDependencies is the way to go here.

NikCharlebois avatar Jan 25 '22 19:01 NikCharlebois