Description
Describe the bug
Deploying from Azure DevOps is throwing an error trying to download Microsoft.Xrm.Data.PowerShell. Full error message below.
To Reproduce
Run any deployment pipeline that requires Microsoft.Xrm.Data.PowerShell.
Expected behavior
Required PowerShell components to download successfully.
Desktop (please complete the following information):
Azure DevOps
Error Message Content:
Starting: Install PowerShell Modules
Task : PowerShell
Description : Run a PowerShell script on Linux, macOS, or Windows
Version : 2.239.1
Author : Microsoft Corporation
Help : https://docs.microsoft.com/azure/devops/pipelines/tasks/utility/powershell
Generating script.
========================== Starting Command Output ===========================
"C:\Program Files\PowerShell\7\pwsh.exe" -NoLogo -NoProfile -NonInteractive -ExecutionPolicy Unrestricted -Command ". 'D:\a_temp\a5f021e9-cd76-4acc-8f9c-e5e1f6a8c342.ps1'"
Installing PS module Microsoft.Xrm.Data.PowerShell - 2.8.14 ...
PackageManagement\Save-Package : No match was found for the specified search criteria and module name 'Microsoft.Xrm.Data.PowerShell'. Try Get-PSRepository to see all available registered module repositories.
At C:\program files\powershell\7\Modules\PowerShellGet\PSModule.psm1:11794 char:21
-
$null = PackageManagement\Save-Package @PSBoundParameters
-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- CategoryInfo : ObjectNotFound: (Microsoft.PowerShel…Cmdlets.SavePackage:SavePackage) [Save-Package], Exception
- FullyQualifiedErrorId : NoMatchFoundForCriteria,Microsoft.PowerShell.PackageManagement.Cmdlets.SavePackage
##[error]PowerShell exited with code '1'.
Finishing: Install PowerShell Modules