Remove deprecated AzureAD module dependency from build pipeline#1599
Remove deprecated AzureAD module dependency from build pipeline#1599
Conversation
|
Learn Build status updates of commit 9472d20: ❌ Validation status: errorsPlease follow instructions here which may help to resolve issue.
For more details, please refer to the build report. Note: Your PR may contain errors or warnings or suggestions unrelated to the files you changed. This happens when external dependencies like GitHub alias, Microsoft alias, cross repo links are updated. Please use these instructions to resolve them. |
|
|
Thanks for the feedback @KenitoInc! This is already handled by the fix. The I've verified the built module The mapping files are now the single source of truth so any future updates to supported/unsupported commands just need to update those JSON files. |
The AzureAD and AzureADPreview PowerShell modules have been deprecated and removed from the PowerShell Gallery, causing the 'Install Dependencies Entra' step to fail in the 1es-EntraPowerShell-PR pipeline. Changes: - build/Install-Dependencies.ps1: Skip installing the deprecated source module (AzureAD/AzureADPreview) since it's no longer available on PSGallery - src/Get-MissingCmds.ps1: Use the static mapping files as the source of truth for AzureAD command names instead of importing the deprecated module - src/CompatibilityAdapterBuilder.ps1: Skip importing the deprecated source module in Configure() and add fallback in GetModuleCommands() to read from the mapping files when the module is not available Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
9472d20 to
4f8e11c
Compare
|
Learn Build status updates of commit 4f8e11c: ❌ Validation status: errorsPlease follow instructions here which may help to resolve issue.
For more details, please refer to the build report. Note: Your PR may contain errors or warnings or suggestions unrelated to the files you changed. This happens when external dependencies like GitHub alias, Microsoft alias, cross repo links are updated. Please use these instructions to resolve them. |
Problem
The
1es-EntraPowerShell-PRpipeline is failing at the Install Dependencies Entra step because it attempts to install theAzureADandAzureADPreviewmodules from the PowerShell Gallery. These modules have been deprecated by Microsoft and are no longer available for download.Solution
Instead of dynamically importing the deprecated modules to discover their command lists, the build now uses the existing static mapping files (
AzureADToEntraMapping.jsonandAzureADPreviewToEntraBetaMapping.json) as the source of truth for AzureAD command names.Changes
Validation