Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update-M365DSCDependencies broken on Powershell core #5601

Open
Nutaboy opened this issue Dec 30, 2024 · 0 comments
Open

Update-M365DSCDependencies broken on Powershell core #5601

Nutaboy opened this issue Dec 30, 2024 · 0 comments

Comments

@Nutaboy
Copy link

Nutaboy commented Dec 30, 2024

Description of the issue

If I install all the dependencies from the manifest manual:
Install-Module ReverseDSC -Force
Install-Module PnP.PowerShell
Install-Module Az
Install-Module DSCParser
Install-Module ExchangeOnlineManagement
Install-Module PnP.PowerShell -AllowPrerelease -Force
Install-Module Microsoft.PowerApps.Administration.PowerShell
Install-Module MicrosoftTeams
Install-Module PSDesiredStateConfiguration
Install-Module MSCloudLoginAssistant
Import-Module ReverseDSC
Import-Module PnP.PowerShell
Import-Module Az
Import-Module DSCParser
Import-Module ExchangeOnlineManagement
Import-Module PnP.PowerShell
Import-Module Microsoft.PowerApps.Administration.PowerShell
Import-Module MicrosoftTeams
Import-Module PSDesiredStateConfiguration
Import-Module MSCloudLoginAssistant

I can start an export however later it throws an error ->
Extracting [AADAccessReviewDefinition] using {Credentials}...Exception: The following dependencies need updating: * Az.Accounts * Az.ResourceGraph * Az.Resources * ExchangeOnlineManagement * Microsoft.Graph.Beta.Applications *
Microsoft.Graph.Beta.DeviceManagement * Microsoft.Graph.Beta.Devices.CorporateManagement * Microsoft.Graph.Beta.DeviceManagement.Administration *
Microsoft.Graph.Beta.DeviceManagement.Enrollment * Microsoft.Graph.Beta.NetworkAccess * Microsoft.Graph.Beta.Identity.Governance * Microsoft.Graph.Beta.Identity.SignIns *
Microsoft.Graph.Beta.Reports * Microsoft.Graph.Beta.Search * Microsoft.Graph.Beta.Teams * Microsoft.Graph.Beta.DirectoryObjects * Microsoft.Graph.Beta.Groups * PnP.PowerShell

  • ReverseDSC Please run Update-M365DSCDependencies as Administrator. Please run Uninstall-M365DSCOutdatedDependencies.

Then when use the command to handle the dependencies the whole thing brakes:
Exporting Microsoft 365 configuration for Mode: Default

Authentication methods specified:

  • Credentials

Connecting to {ExchangeOnline}...Get-Item: Cannot find path '/Users/fabianbrunner/.local/share/powershell/Modules/ExchangeOnlineManagement/3.7.0/netCore/ExchangeOnlineManagement.psm1' because it does not exist.

Exception: /Users/fabianbrunner/.local/share/powershell/Modules/MSCloudLoginAssistant/1.1.31/Workloads/ExchangeOnline.ps1:75
Line |
75 | Remove-Module $loadedModule.Name -Force -Verbose:$false | Out …
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| Could not find a part of the path '/Users/fabianbrunner/.local/share/powershell/Modules/PnP.PowerShell/2.99.89/PnP.PowerShell.Format.ps1xml'.

Microsoft 365 DSC Version

V 2.99.89

Which workloads are affected

other

The DSC configuration

Verbose logs showing the problem

Environment Information + PowerShell Version

PSVersion                      7.4.6
PSEdition                      Core
GitCommitId                    7.4.6
OS                             Darwin 24.2.0 Darwin Kernel Version 24.2.0: Fri Dec  6 19:01:59 PST 2024; root:xnu-11215.61.5~2/RELEASE_ARM64_T6000
Platform                       Unix
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
WSManStackVersion              3.0
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

No branches or pull requests

1 participant