PowerShell / PowerShellGallery

221 stars 61 forks source link

Access to the cloud file is denied when install az powershell #158

Closed ofmmmmm5 closed 3 years ago

ofmmmmm5 commented 3 years ago

I tried to install az powershell with the command Install-Module -Name Az -AllowClobber -Scope CurrentUser -SkipPublisherCheck -Force
And the process failed with error message "PackageManagement\Install-Package : Access to the cloud file is denied ". I didn't see a pop up ask me sign in and I'm pretty sure my credential is still valid. The error message is hard to understand.

Error message:

PS C:\WINDOWS\system32> Install-Module -Name Az -AllowClobber -Scope CurrentUser -SkipPublisherCheck -Force                                                                                                                                                                    PackageManagement\Install-Package : Access to the cloud file is denied                                                                                                                                                                                                         At C:\Program Files\WindowsPowerShell\Modules\PowerShellGet\2.2.5\PSModule.psm1:9711 char:34                                                                                                                                                                                   + ... talledPackages = PackageManagement\Install-Package @PSBoundParameters                                                                                                                                                                                                    +                      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (Microsoft.Power....InstallPackage:InstallPackage) [Install-Package], Exception
    + FullyQualifiedErrorId : System.ComponentModel.Win32Exception,Microsoft.PowerShell.Commands.RemoveItemCommand,Microsoft.PowerShell.PackageManagement.Cmdlets.InstallPackage

Can someone help take a look at it? Any ideas are appreciated.

SydneyhSmith commented 3 years ago

Thanks @ofmmmmm5 this looks like the same issue as https://github.com/PowerShell/PowerShellGet/issues/300

I will close this as a duplicate

ofmmmmm5 commented 3 years ago

@SydneyhSmith I went through the PowerShell/PowerShellGet#300 and do you know what's the ETA that the new release will be released?