I've updated from version 2.21.1 to 2.28.0 of the MgGraph module, and now I'm having trouble with several Teams-related graph commands. For example, when I try to use Get-MgTeamChannelMember, it gives me a 'Forbidden' error, even though my app authentication is correct. This command worked perfectly fine yesterday. Additionally, both Get-MgTeamChannelMember and Update-MgTeamChannelMember are throwing 'Invalid parameter set' errors, despite my syntax being aligned with Microsoft's documentation. Is anyone else experiencing similar issues?
3 Answers
Yeah, I've seen some breakages with MS Graph and Az PowerShell since after 2.25. I've been using 2.25 until they work out the issues. Also, remember to check your PowerShell version; you need 7.4 or higher to use versions 2.26 and above effectively. This can cause problems, especially with Azure runbooks.
Updating the Graph module can definitely be a bit risky, especially with the Entra module. I've found that once I have a version that works, I usually avoid updating on production systems. Often it feels like they introduce more bugs than they fix, so I can relate to your frustration.
You might want to stick with version 2.21.1 or even try version 2.25.x. I've heard that both 2.26.1 and earlier versions had their issues, but 2.27.x seems to be fine for me. It's a good practice to use version pinning in your scripts to ensure you can test and validate before updating modules.
Related Questions
Online Hash Generator - String to Hash Converter
Convert CSV To HTML Table
Convert Json To Xml
Bitrate Converter
JavaScript Multi-line String Builder
GUID Generator