Skip to content

BREAKING: Get-MgSite Broken by 1.9.3 with addition of -Path parameter #1237

Closed

Description

Looks like maybe the autogeneration code is now picking up a getByPath method and overwriting the default cmdlet

Get-MgSite -siteId root | Select-Object id, DisplayName

image

https://graph.microsoft.com/v1.0/sites/root/microsoft.graph.getByPath(path='test')

Workaround

Revert to 1.9.2

Activity

  1. changed the title [-]Sample needs to be updated now that Get-MgSite calls the byPath method[/-] [+]BREAKING: Get-MgSite Broken by 1.9.3 with addition of -Path parameter[/+] on Apr 29, 2022
  2. joshtransient commented on May 3, 2022

    @joshtransient

    Can repro. This broke every single one of my scripts using Get-MgSite and there is not an obvious fix action.

  3. JustinGrote commented on May 3, 2022

    @JustinGrote
    Author

    Peter Ombwa (@peombwa) Regression warning...

  4. peombwa commented on May 3, 2022

    @peombwa
    Member

    Sorry about this. The bug was introduced when the workload added sites/{site-id}/getByPath API to v1.0 endpoint. A fix has already been provided, and the patch should be out shortly once #1242 is approved.

    A workaround is to revert to 1.9.2:

    Get-Module 'Microsoft.Graph*' -ListAvailable | where { $_.Version -gt "1.9.2" } | Uninstall-Module -Force
  5. peombwa commented on May 6, 2022

    @peombwa
    Member

    We've just released version 1.9.6 with a fix to this issue. Please use Update-Module Microsoft.Graph to upgrade to the latest version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions