kine/NVRAppDevOps

installbcmodules failing with allowPreRelease

Closed this issue · 2 comments

I am getting the following error;
A parameter cannot be found that matches parameter name 'AllowPrerelease'.

Log;
2021-03-16T18:25:14.9025917Z ##[section]Starting: installbcmodules
2021-03-16T18:25:14.9156917Z ==============================================================================
2021-03-16T18:25:14.9157180Z Task : Business Central - Install powershell modules
2021-03-16T18:25:14.9157403Z Description : Install NVRAppDevOps and bccontainerhelper PowerShell modules
2021-03-16T18:25:14.9157574Z Version : 3.6.0
2021-03-16T18:25:14.9157702Z Author : Kine
2021-03-16T18:25:14.9157974Z Help : Will check if PowerShell modules NVRAppDevOps and bccontainerhelper are installed in latest version. If not, they will be installed or updated as needed.
2021-03-16T18:25:14.9158421Z ==============================================================================
2021-03-16T18:25:15.9441488Z Checking and Installing needed modules
2021-03-16T18:25:19.7477811Z ##[error]A parameter cannot be found that matches parameter name 'AllowPrerelease'.
2021-03-16T18:25:19.7722428Z ##[section]Finishing: installbcmodules
Yaml;
trigger:

  • master

pool: default

steps:

  • task: installbcmodules@3
    inputs:
    UninstallOldVersions: false
    allowPreRelease: true

  • task: createbccontainer@5
    inputs:
    containername: 'bcserver'
    artifactUrl: 'https://bcartifacts.azureedge.net/onprem/17.5.22499.22546/gb'
    isolation: 'default'
    ram: '4GB'
    auth: 'NavUserPassword'
    username: 'admin'
    password: 'P@ssw0rd'
    includeCSide: false
    imagename:
    useBestContainerOS: true

kine commented
Install-Module -Name PowerShellGet -Repository PSGallery -Force

or

Update-Module -Name PowerShellGet -Repository PSGallery -Force

Thank you, that did the trick