Skip to content

Conversation

@erik-bershel
Copy link
Contributor

Description

  • Make Az modules available
  • Deprecate unused code

Related issue:

#13463

Check list

  • Related issue / work item is attached
  • Tests are written (if applicable)
  • Documentation is updated (if applicable)
  • Changes are tested and related VM images are successfully generated

Copilot AI review requested due to automatic review settings December 25, 2025 20:17
Copy link
Contributor

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 adds Azure PowerShell modules to the PSModulePath for Ubuntu images and removes deprecated zip_versions functionality across Windows toolsets. The main purpose is to make Az modules automatically discoverable in PowerShell on Ubuntu (addressing issue #13463) while cleaning up unused code that handled zipped module versions and default version selection.

Key Changes

  • Adds PSModulePath environment variable configuration in Ubuntu to make Az modules discoverable
  • Removes zip_versions field and associated processing logic from Windows toolsets (2019, 2022, 2025)
  • Removes default version handling code that is no longer used

Reviewed changes

Copilot reviewed 7 out of 7 changed files in this pull request and generated 5 comments.

Show a summary per file
File Description
images/windows/toolsets/toolset-2025.json Removes deprecated zip_versions field from azureModules configuration
images/windows/toolsets/toolset-2022.json Removes deprecated zip_versions field from azureModules configuration
images/windows/toolsets/toolset-2019.json Removes deprecated zip_versions field from azureModules configuration
images/windows/scripts/tests/PowerShellAzModules.Tests.ps1 Removes test cases for deprecated default version functionality
images/windows/scripts/build/Install-PowershellAzModules.ps1 Removes zip_versions processing loop and default version logic
images/ubuntu/scripts/tests/PowerShellModules.Tests.ps1 Removes test cases for deprecated default version functionality
images/ubuntu/scripts/build/Install-PowerShellAzModules.ps1 Adds PSModulePath configuration to /etc/environment for Az module discoverability

@erik-bershel erik-bershel force-pushed the ubuntu-upd-azure-modules-scope branch from 32e1307 to 9b5c782 Compare December 26, 2025 13:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant