-
Notifications
You must be signed in to change notification settings - Fork 173
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
Get-MGGroupOwner in 2.6 errors #2312
Comments
We're hitting the same issue - seems like the just released 2.6 version is broken Describe the bug To Reproduce
Fails with:
Expected behavior
Debug Output
Module Version
Environment Data
|
It is many Get-MG commands that have this issue and isn't limited to the ones mentioned here already |
Can confirm, seeing the issues appear with Get-Mg commands. (example: Get-MgGroup) |
I am also seeing the same issue running Get-Mg cmdlets in version 2.6.0. For instance, when running:
|
Same here when I want to get all users. |
2.5.0 works fine for me. So it's likely that it's still loading the assemblies from 2.6.0 and that causes the error or you haven't reverted completely. |
I was getting "Unable to find type [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]." using any MG-Graph command. I found this this module is broken: C:\Program Files\WindowsPowerShell\Modules\Microsoft.Graph.Files\2.6.0\exports\ProxyCmdletDefinitions.ps1 To fix it I removed this section starting from line 89490
|
Hmm, running another Graph command i got: Unable to find type [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]. So again I removed from line 545000 this section and now that command works:
It looks like the same command is used for every Mg-Graph command so a quick find and replace all commands now work. I think someone needs to fix this module / script "C:\Program Files\WindowsPowerShell\Modules\Microsoft.Graph.Files\2.6.0\exports\ProxyCmdletDefinitions.ps1" |
Got the same issue for Get-MGUser, New-MgUser, Get-MgSubscribedSku, Set-MgUserLicense, ... |
Can confirm the same issue with 2.6.0 since updating. I have had to pull the ability to update Microsoft.Graph from scripts for now. Surprised that no one from Microsoft is assigned this bug yet to look at. |
If anyone still have problem even after uninstalling 2.6.0 version like I had, I found out that module files still exist for some reason and I created small script to get rid of them one by one (this helped me, maybe someone else will find it useful). It is taking a lot of time though. $allgraphmodules = (Get-InstalledModule -Name "Microsoft.Graph.*").Name |
a dependency was introduced here inside of autorest that is for Azure SDK but we don't have. We are going to roll versions of autorest back and push out a 2.6.1 version. It will take a few hours to complete. |
Can confirm that 2.6.1 is not affected by this and since 2.6.0 has been removed from Powershell gallery I guess this can be closed. Thank you for the quick fix. |
@peterboba thank you for the feedback. |
Describe the bug
Get-MGGroupOwner fails in version 2.6 with error:
Unable to find type [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet].
At C:\Program Files\WindowsPowerShell\Modules\Microsoft.Graph.Groups\2.6.0\exports\ProxyCmdletDefinitions.ps1:30673 cha
r:52
To Reproduce
Steps to reproduce the behavior:
Get-MGGroupOwner -GroupId xxxxxxx
The text was updated successfully, but these errors were encountered: