0

我正在尝试使用公司代理后面的 VSCode 中的 Powershell 终端使用二头肌进行部署。

我的命令行是:

az deployment sub create -f .\main.bicep -l uksouth

如果我加入了 VPN,则会收到以下错误:

Error while attempting to retrieve the latest Bicep version: HTTPSConnectionPool(host='api.github.com', port=443): Max retries exceeded with url: /repos/Azure/bicep/releases/latest (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x04BC0058>: Failed to establish a new connection: [WinError 10060] A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond')).

如果我放弃 VPN,那么错误是:

Error while attempting to retrieve the latest Bicep version: HTTPSConnectionPool(host='api.github.com', port=443): Max retries exceeded with url: /repos/Azure/bicep/releases/latest (Caused by SSLError(SSLError("bad handshake: Error([('SSL routines', 'tls_process_server_certificate', 'certificate verify failed')])"))).

有关如何配置 VSCode / PowerShell 以使其工作的任何帮助?

4

0 回答 0