Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/azure/11.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
在代理后安装azure cli扩展时出现pip错误_Azure_Azure Devops_Pip_Azure Cli - Fatal编程技术网

在代理后安装azure cli扩展时出现pip错误

在代理后安装azure cli扩展时出现pip错误,azure,azure-devops,pip,azure-cli,Azure,Azure Devops,Pip,Azure Cli,有人能帮我吗 我正在使用代理背后的Azure cli,并且运行了fiddler。 我正在运行以下命令和设置以登录我的azure帐户 SET ADAL_PYTHON_NO_SSL_VERIFY=1 SET AZURE_CLI_DISABLE_CONNECTION_VERIFICATION=1 az login --tenant <company domain> 我收到错误:cli.azure.cli.core.util:发生错误。Pip失败,状态代码为1 看着fidd

有人能帮我吗

我正在使用代理背后的Azure cli,并且运行了fiddler。 我正在运行以下命令和设置以登录我的azure帐户

SET ADAL_PYTHON_NO_SSL_VERIFY=1
SET AZURE_CLI_DISABLE_CONNECTION_VERIFICATION=1        
az login --tenant <company domain>
我收到错误:cli.azure.cli.core.util:发生错误。Pip失败,状态代码为1

看着fiddler,上面写着: 407连接到本地nexus时发生代理身份验证错误。 我的pip配置:

[list]
format=columns
[global]
disable-pip-version-check = true
trusted-host = nexusurl
index = https://[username]:[userpassword]@<nexusurl>
index-url = https://[username]:[userpassword]@<nexusurl>
[列表]
格式=列
[全球]
禁用pip版本检查=真
可信主机=nexusurl
index=https://[username]:[userpassword]@
索引url=https://[username]:[userpassword]@

我想不出我遗漏了什么。

我也有类似的问题。我做了以下工作:

  • 浏览到文件
    C:\ProgramFiles(x86)\Microsoft SDK\Azure\CLI2\Lib\site packages\certifi\cacert.pem
  • 编辑文件并添加Base-64格式的证书,该格式是将您带到的证书链的一部分
  • 运行以下命令将CA Bundle环境变量设置为此文件

  • 我也有类似的问题。我做了以下工作:

  • 浏览到文件
    C:\ProgramFiles(x86)\Microsoft SDK\Azure\CLI2\Lib\site packages\certifi\cacert.pem
  • 编辑文件并添加Base-64格式的证书,该格式是将您带到的证书链的一部分
  • 运行以下命令将CA Bundle环境变量设置为此文件
  • [list]
    format=columns
    [global]
    disable-pip-version-check = true
    trusted-host = nexusurl
    index = https://[username]:[userpassword]@<nexusurl>
    index-url = https://[username]:[userpassword]@<nexusurl>
    
    setx REQUESTS_CA_BUNDLE "C:\Program Files (x86)\Microsoft SDKs\Azure\CLI2\Lib\site-packages\certifi\cacert.pem" /M