I have the following PowerShell cmdlet to install PowerShell module when the pipeline is being executed
steps:
- powershell: |
Install-PackageProvider Nuget -Scope CurrentUser -Force
Install-module PSScriptAnalyzer -force -Scope CurrentUser
Install-module PSPesterTest -force -Scope CurrentUser
displayName: 'Install required PowerShell modules'
This however throws an error of "No repository with the name 'PSGallery' was found".
Please, can anyone, point me to a workaround with regards this issue?
