Has the MgGraph module 2.28 broken your Teams scripts too?

0
7
Asked By CuriousCat88 On

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

Answered By PowerShellNinja On

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.

Answered By TechWizard07 On

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.

Answered By ScriptGuru42 On

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

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.