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.
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.
Well, I can reproduce your issue with an old version of PowerShellGet
module.
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