Skip to content
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

PowerShell Modules Missing in Azure DevOps #970

Open
mikevalentinecanteen opened this issue Jul 11, 2024 · 0 comments
Open

PowerShell Modules Missing in Azure DevOps #970

mikevalentinecanteen opened this issue Jul 11, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@mikevalentinecanteen
Copy link

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
@mikevalentinecanteen mikevalentinecanteen added the bug Something isn't working label Jul 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant