Skip to content

Microsoft.Graph Modules have different GUIDs for each Release #1140

Closed

Description

Hey Microsoft

It looks like on each new release you update the GUIDs for the powershell modules. It is my understanding that this should not be the case and the GUID should be immutable and only the module versions should change.

This causes issues downstream as Ive defined in my own modules to require version 1.9.2 or greater for Microsoft.Graph.Users with the guid specified. However when powershell tried to download the newest version (1.9.3) if failed as the GUIDs did not match.

Can you please explain if this is by mistake or deliberate?

Activity

  1. changed the title [-]Microsoft.Graph Modules has a different GUIDs for each Release[/-] [+]Microsoft.Graph Modules have different GUIDs for each Release[/+] on Mar 11, 2022
  2. MarkDordoy commented on Mar 11, 2022

    @MarkDordoy
    Author

    Microsoft.Graph.Users 1.9.2 https://www.powershellgallery.com/packages/Microsoft.Graph.Users/1.9.2/Content/Microsoft.Graph.Users.psd1 - GUID 8498b9d9-1b58-4183-9b8f-550477c4727d'

    Microsfot.Graph.Users 1.9.3 https://www.powershellgallery.com/packages/Microsoft.Graph.Users/1.9.3/Content/Microsoft.Graph.Users.psd1 - GUID 49bc3df5-2b41-45b7-8ced-46ff3b6dc57f

  3. MarkDordoy commented on Mar 14, 2022

    @MarkDordoy
    Author

    Interestingly, the module GUID is fixed in the Microsoft.Graph.Authentication module:
    883916f2-9184-46ee-b1f8-b6a2fb784cee

    This is used in both version 1.9.1, 1.9.2 and 1.9.3 (and i suspect all previously released versions)

  4. darrelmiller commented on Mar 23, 2022

    @darrelmiller
    Contributor

    Microsoft.Graph.Authentication is a hand crafted module, the others are autogenerated by AutoREST. This is likely why they get a new Guid. We will have to investigate to see if AutoREST has the ability to keep the same Guid.

  5. MarkDordoy commented on Mar 23, 2022

    @MarkDordoy
    Author

    In my opinion this should be something that is looked into, otherwise it will cause issues with anyone using it in their powershell manifest and not being explicit on version.

  6. peombwa commented on Jun 29, 2022

    @peombwa
    Member

    We will temporarily address this in our upcoming release as we wait for AutoREST to fix this.

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

Metadata

Metadata

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions