jeremyh
jeremyh

Reputation: 644

Installing PowershellGet module returns error

I'm trying to follow the documentation on using Powershell to manage Azure Data Lake Gen 2 here but I'm getting a warning and an error when trying to install the PowerShellGet module. Please see screen shot below.

enter image description here

If I ignore this and carry on with trying to run the next command below I get another error presumably because of the issue with installing PowerShellGet module above.

Install-Module az.storage -RequiredVersion 1.13.3-preview -Repository PSGallery -AllowClobber -AllowPrerelease -Force 

I currently have Powershell 5.1 installed.

Upvotes: 0

Views: 443

Answers (1)

Joy Wang
Joy Wang

Reputation: 42163

Well, I can reproduce your issue with an old version of PowerShellGet module.

enter image description here

Actually the GA version of Az.Storage 1.14.0 which was released three days ago supports DataLake Gen2, so you could install it directly.

Use the command below, it will install the latest version 1.14.0 for you by default, no need to install PowerShellGet module.

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

enter image description here

Upvotes: 1

Related Questions