2025-03-10T07:14:54.3408729Z ##[section]Starting: Upload XXX to project XXX
2025-03-10T07:14:54.3414396Z ==============================================================================
2025-03-10T07:14:54.3414573Z Task : Dynamics Lifecycle Services (LCS) Asset Upload
2025-03-10T07:14:54.3414686Z Description : Task to upload assets to the LCS asset library
2025-03-10T07:14:54.3414807Z Version : 1.0.1791712
2025-03-10T07:14:54.3414921Z Author : Microsoft Corporation
2025-03-10T07:14:54.3415021Z Help : Review the Dynamics 365 for Finance and Operations [Developer Documentation](https://go.microsoft.com/fwlink/?linkid=2141947).
2025-03-10T07:14:54.3415221Z ==============================================================================
2025-03-10T07:14:55.5245809Z ##[error]The specified module 'AzureRM' was not loaded because no valid module file was found in any module directory.
2025-03-10T07:14:55.5466437Z ##[section]Finishing: Upload XXX to project XXX
We are also facing issues. In our case, these issues arise because the latest Azure Pipelines agent images with version number 20250303.1.0 no longer include the AzureRM PowerShell module. Currently, this only occurs when the "windows-latest" agent image is used. If "windows-2022" is specified, it still uses the previous version (which for us is 20250224.5.0). This version still includes AzureRM, and the LCS upload works as expected.
However, I expect "windows-2022" will eventually adopt version 20250303.1.0 as well, so this is not a long-term solution.
What works for us is upgrading the task version. For the LCS upload task, version 2 has no dependency on AzureRM and works with "windows-latest".
Martin Dráb
501
Most Valuable Professional
Saalim Ansari
315
Abhilash Warrier
310