Skip to content

Bugfix - Fix catalog displayname being passed as argument instead of catalog id #6039

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

Open
wants to merge 3 commits into
base: Dev
Choose a base branch
from

Conversation

n9294651
Copy link
Contributor

@n9294651 n9294651 commented Apr 22, 2025

Pull Request (PR) description

This PR reverts #6013 and provides the correct fix.

Previously $Results.CatalogId was updated from being assigned $Catalog.Id to $Catalog.DisplayName. This caused flow-on issues where Get-MgBetaEntitlementManagementAccessPackageCatalogAccessPackageResource calls were failing due to being given the Catalog DisplayName as a parameter instead of the Catalog Id. This was catered for already when the catalog guid was assigned to a new variable but that variable wasn't used.

41649b1#diff-89344a5e420fd38276b064d760ff189ed4a83fa6c6c07db49b65cdb4fa123fdcR170

This Pull Request (PR) fixes the following issues

- Fixes #4032 (previously closed)

#4032

Task list

  • [X ] Added an entry to the change log under the Unreleased section of the file CHANGELOG.md.
    Entry should say what was changed and how that affects users (if applicable), and
    reference the issue being resolved (if applicable).
  • Resource parameter descriptions added/updated in the schema.mof.
  • Resource documentation added/updated in README.md.
  • Resource settings.json file contains all required permissions.
  • Examples appropriately added/updated.
  • Unit tests added/updated.
  • [ X] New/changed code adheres to DSC Community Style Guidelines.

@n9294651 n9294651 changed the title Bugfix catalogid Bugfix - Fix catalog displayname being passed as argument instead of catalog id Apr 22, 2025
@NikCharlebois
Copy link
Collaborator

Please update the changelog and we will merge

@n9294651 n9294651 requested a review from NikCharlebois June 4, 2025 04:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants