Cloudn';t在my Windows10中注册PSRepository以安装Azure PowerShell

Cloudn';t在my Windows10中注册PSRepository以安装Azure PowerShell,azure,powershell,azure-powershell,Azure,Powershell,Azure Powershell,我想在我的windows 10中安装Azure PowerShell,但遇到一条错误消息,我试图查找错误原因,但在运行Get-PSRepository时发现没有软件包 背景: 安装azure,代码如下: 安装模块-Name Az-AllowClobber-Scope alluser 安装模块-Name Az-Repository PSGallery-Force 错误消息: 在C:\Program Files\WindowsPowerShell\Modules\PowerShellGet\1.0.

我想在我的windows 10中安装Azure PowerShell,但遇到一条错误消息,我试图查找错误原因,但在运行Get-PSRepository时发现没有软件包

背景: 安装azure,代码如下:

安装模块-Name Az-AllowClobber-Scope alluser

安装模块-Name Az-Repository PSGallery-Force

错误消息:

C:\Program Files\WindowsPowerShell\Modules\PowerShellGet\1.0.0.1\PSModule.psm1:1748中找不到包

注册PSRepository-默认值

Get PSRepository
显示找不到包

net winhttp show proxy
不带代理服务器显示


我应该如何安装azure PowerShell

根据您的错误消息,您似乎有到的连接问题

因此,我的第一个建议是检查您的网络环境工作。还记得检查您的系统代理设置

如果您的网络没有问题,您可以

另一种选择是使用


希望以上内容能对您有所帮助

请尝试使用
安装模块-Name powershell-Repository PSGallery-Force安装PowerShellGet,好吗?然后你可以检查它是否安装了
Get InstalledModule
@JackJia我尝试了它,但出现了一条错误消息Get-psgarleryapiavailability:PowerShell Gallery现在不可用。请检查我的答案。希望它能帮助你。