microsoftgraph / microsoftgraph/msgraph-sdk-powershell

Microsoft.Graph.DeviceManagement.Actions Module Requirements Incompatible with Latest SDK Versions

Open
#3,182 6 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Needs: Attention :wave: type:bug
Dominant language
C#
Stars
898
Forks
230
Avg merge
2d 5h
Merged PRs (30d)
31

Description

Describe the bug

The RequiredModules for the Microsoft.Graph.DeviceManagement.Actions .psd1 file is still requiring version 2.25.0 for Microsoft.Graph.Authentication after the latest release of version 2.26.0 and beyond. Furthermore, there are no updates to version 2.26.0+ for the Microsoft.Graph.DeviceManagement.Actions module, unlike other adjacent modules for DeviceManagement.

Expected behavior

The Microsoft.Graph.DeviceManagement.Actions module should be compatible with the latest versions of the Microsoft.Graph.Authentication module (2.26.0+) instead of requiring an older version (2.25.0).

How to reproduce
  1. Install the latest Microsoft.Graph.Authentication and Microsoft.Graph.DeviceManagement.Actions modules
  2. Remove any previous module versions
  3. Run Import-Module -Name "Microsoft.Graph.DeviceManagement.Actions"
SDK Version

2.26.0 and higher

Latest version known to work for scenario above?

2.25.0

Known Workarounds

Keep older versions of the Authentication module

Debug output
Click to expand log
Import-Module : The required module 'Microsoft.Graph.Authentication' is not loaded. Load the module or remove the module from 'RequiredModules' in the file 'C:\Program Files\WindowsPowerShell\Modules\Microsoft.Graph.DeviceManagement.Actions\2.25.0\Microsoft.Graph.DeviceManagement.Actions.psd1'.
At line:1 char:1
Import-Module -Name "Microsoft.Graph.DeviceManagement.Actions"
CategoryInfo          : ResourceUnavailable: (C:\Program File...nt.Actions.psd1:String) [Import-Module], Missing MemberException
FullyQualifiedErrorId : Modules_InvalidManifest,Microsoft.PowerShell.Commands.ImportModuleCommand

Configuration
  • OS: Windows 11, 24H2
  • Architecture: 64-bit
  • PowerShell Version: 5.1.26100.2200
Other information

No response

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the Microsoft.Graph.DeviceManagement.Actions 2.25.0 .psd1 file named in the error, then compare its RequiredModules entry with adjacent DeviceManagement module manifests. Verify the module imports successfully when Microsoft.Graph.Authentication 2.26.0 or later is installed, without retaining the older authentication version.

Written by the indexing model from the issue text.

Assessment

Tech stack
powershell
Domain
tooling
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.