gpt4 book ai didi

azure - 未找到 Az 包

转载 作者:行者123 更新时间:2023-12-02 22:11:05 25 4
gpt4 key购买 nike

$ Get-InstalledModule -Name Az -AllVersions

Version Name Repository Description
------- ---- ---------- -----------
0.5.0 Az PSGallery Azure Resource Manager Module. Cmdlets to manage...

上面的 block 显示 Az 已安装。但是下面的 block 说明了其他情况:

$ Update-Module -Name Az
WARNING: Unable to resolve package source 'https://www.powershellgallery.com/api/v2'.
PackageManagement\Install-Package : No match was found for the specified search criteria and module name 'Az'. Try
Get-PSRepository to see all available registered module repositories.
At C:\Program Files\WindowsPowerShell\Modules\PowerShellGet\1.0.0.1\PSModule.psm1:2089 char:20
+ ... $sid = PackageManagement\Install-Package @PSBoundParameters
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (Microsoft.Power....InstallPackage:InstallPackage) [Install-Package], Ex
ception
+ FullyQualifiedErrorId : NoMatchFoundForCriteria,Microsoft.PowerShell.PackageManagement.Cmdlets.InstallPackage

最佳答案

感谢评论中大家的帮助...这里主要问题是存储库本身。注销并重新注册它解决了问题。

> Register-PSRepository -Default

关于azure - 未找到 Az 包,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/55648863/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com