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
⚠Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
@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.
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