Skip to content

Use Find-PSResource to Azure Artifacts instead of Find-Module to PSGallery #27942

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

Merged
merged 1 commit into from
Jun 20, 2025

Conversation

wyunchi-ms
Copy link
Contributor

Description

Mandatory Checklist

  • SHOULD update ChangeLog.md file(s) appropriately
    • Update src/{{SERVICE}}/{{SERVICE}}/ChangeLog.md.
      • A snippet outlining the change(s) made in the PR should be written under the ## Upcoming Release header in the past tense.
    • Should not change ChangeLog.md if no new release is required, such as fixing test case only.
  • SHOULD regenerate markdown help files if there is cmdlet API change. Instruction
  • SHOULD have proper test coverage for changes in pull request.
  • SHOULD NOT adjust version of module manually in pull request

@Copilot Copilot AI review requested due to automatic review settings June 12, 2025 07:54
Copy link

Thanks for your contribution! The pull request validation has started. Please revisit this comment for updated status.

Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR updates the version controller script to use Find-PSResource against an Azure Artifacts feed (or fallback repository) instead of Find-Module from PSGallery.

  • Introduces conditional logic to detect DEFAULT_PS_REPOSITORY_URL and use credentials for Azure Artifacts
  • Switches Find-Module calls in both Bump-AzVersion and Update-AzPreviewChangelog to Find-PSResource
  • Adds version filtering and sorting for LTS releases

@vidai-msft vidai-msft enabled auto-merge (squash) June 20, 2025 08:33
Copy link
Contributor

@vidai-msft vidai-msft left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@vidai-msft vidai-msft merged commit a05f4b2 into main Jun 20, 2025
12 checks passed
@vidai-msft vidai-msft deleted the wyunchi/cfs branch June 20, 2025 08:33
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