问题描述
有人可以帮我吗?
我在代理后面使用了Azure cli,并且正在运行提琴手.我正在运行以下命令并进行设置以登录到我的Azure帐户
I am using Azure cli behind proxy and I have fiddler running.I am running following commands and setup to login into my azure account,
SET ADAL_PYTHON_NO_SSL_VERIFY=1
SET AZURE_CLI_DISABLE_CONNECTION_VERIFICATION=1
az login --tenant <company domain>
它运作良好,并向我提供了与我的帐户关联的订阅列表.但是,我需要安装Azure-devops扩展以及运行时:
It works well and gives me the list of subscriptions associated with my account.But,I need to install Azure-devops extension and when i run:
az extension add --name azure-devops
我遇到错误:cli.azure.cli.core.util:发生错误.点数失败,状态码为1.
I am getting error: cli.azure.cli.core.util : An error occurred. Pip failed with status code 1.
看着提琴手说:连接到内部关系时出现407代理身份验证错误.我的点子配置:
looking into fiddler it says:407 proxy authentication error while connecting to on premise nexus.My pip config:
[list]
format=columns
[global]
disable-pip-version-check = true
trusted-host = nexusurl
index = https://[username]:[userpassword]@<nexusurl>
index-url = https://[username]:[userpassword]@<nexusurl>
我找不到我想要的东西.
i couldnt figure out what i am missing.
推荐答案
我遇到了类似的问题.我做了以下事情:
I had a similar issue. I did the following:
- 浏览到文件
C:\ Program Files(x86)\ Microsoft SDKs \ Azure \ CLI2 \ Lib \ site-packages \ certifi \ cacert.pem
. - 编辑文件并以Base-64格式添加证书,该证书是证书链的一部分,该证书链将您带到 https://pypi.org/simple/distro/.
- 运行以下命令以将CA Bundle环境变量设置为此文件.
.
setx REQUESTS_CA_BUNDLE "C:\Program Files (x86)\Microsoft SDKs\Azure\CLI2\Lib\site-packages\certifi\cacert.pem" /M
这篇关于在代理后面安装azure cli扩展时出现pip错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!