Azure-docs: ERROR: Install-Module : A parameter cannot be found that matches parameter name 'AllowPrerelease'.

Created on 24 Apr 2019  Â·  4Comments  Â·  Source: MicrosoftDocs/azure-docs

Problem description:
The following command terminates with an error:

   Install-Module -Name Az.StorageSync -AllowPrerelease -AllowClobber -Force

Error message:

   Install-Module : A parameter cannot be found that matches parameter name 'AllowPrerelease

Note:
The following command executes successfully:

   Install-Module -Name Az.StorageSync -AllowClobber -Force

Tested on OS version:

PS C:\Windows\system32> systeminfo | findstr Build
OS Version:                6.3.9600 N/A Build 9600
OS Build Type:             Multiprocessor Free

Tested on Powershell version:

PSVersion                      5.1.14409.1018
PSEdition                      Desktop
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}
BuildVersion                   10.0.14409.1018
CLRVersion                     4.0.30319.42000
WSManStackVersion              3.0
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1

Document Details

⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

assigned-to-author doc-enhancement filesubsvc storagsvc triaged

Most helpful comment

@kborovik Thanks for reaching out. I just tested it, it works fine if I follow the steps as-is.

Did you complete the steps prior to this one? Specifically:

Install-Module -Name PackageManagement -Repository PSGallery -Force
Install-Module -Name PowerShellGet -Repository PSGallery -Force

Then restart shell

Then enter Install-Module -Name Az.StorageSync -AllowPrerelease -AllowClobber -Force

@YASWANTHM-MSFT FYI

All 4 comments

@kborovik, Thanks for your question. We are checking on this and will respond to you soon.

@kborovik, Thanks for the feedback!I have assigned the issue to the content author to investigate further and update the document as appropriate.

@kborovik Thanks for reaching out. I just tested it, it works fine if I follow the steps as-is.

Did you complete the steps prior to this one? Specifically:

Install-Module -Name PackageManagement -Repository PSGallery -Force
Install-Module -Name PowerShellGet -Repository PSGallery -Force

Then restart shell

Then enter Install-Module -Name Az.StorageSync -AllowPrerelease -AllowClobber -Force

@YASWANTHM-MSFT FYI

@kborovik,We will now proceed to close this thread. If there are further questions regarding this matter, please tag me in your reply. We will gladly continue the discussion and we will reopen the issue.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

jharbieh picture jharbieh  Â·  3Comments

spottedmahn picture spottedmahn  Â·  3Comments

behnam89 picture behnam89  Â·  3Comments

jebeld17 picture jebeld17  Â·  3Comments

AronT-TLV picture AronT-TLV  Â·  3Comments