Closed madacsbotond closed 1 year ago
Thank you for opening this issue, we will look into it.
Experiencing the same problem with new VM running Windows Server 2022 Datacenter Azure Edition; run az aks install-cli from command shell (not powershell). AZ CLI 2.48.1 installed via msi.
I found topics about the same issue from some years ago, but the exact solution was never shown there. I had an issue with az login, but adding the proxy certificate fixed that.
@madacsbotond Apologies for the late reply. Thanks for reaching out to us and reporting this issue. From the error message it is pretty clear that there seems to be a proxy within your network. Please follow the below action plans to isolate if this is indeed related to the proxy.
Plan 1: Could you please try to run the same command from a different machine which is on a completely different network? and check if that works.
Plan 2: Try appending standard Python root CAs to your pem file and check if that helps to run the CLI command.
REQUESTS_CA_BUNDLE=$HOME/certs/internal.pem
Plan 3:
Try disabling SSL certificate verification temporarily by setting the REQUESTS_CA_BUNDLE
environment variable to None and check if that helps to run the CLI command.
export REQUESTS_CA_BUNDLE=None
az aks install-cli
Plan 4:
Does other AzCLI commands like az login --debug
commands like work fine ?
Plan 5: Run this command and check the result:
python.exe" -c "import urllib.request; print(urllib.request.getproxies())"
Plan 6: Please follow this article to make sure the issue is not caused by Azure CLI, but by Python and proxy. https://github.com/jiasli/azure-notes/blob/master/cli/proxy-cert-linux.md
And to work behind a proxy follow this, please follow the instruction at https://docs.microsoft.com/cli/azure/use-cli-effectively#work-behind-a-proxy to trust the root certificate and add the root CA of the proxy to your CA bundle.
@madacsbotond I wanted to do quick follow-up to check if you had a chance to look at my above comment. Please let us know if you had any updates on this. Awaiting your reply.
@madacsbotond The action is pending on you to try the above suggestion. We will now proceed with closure of this GitHub issue. If you need any further assistance on this issue in future, please feel free to reopen this thread. We would be happy to help.
This is autogenerated. Please review and update as needed.
Describe the bug
Command Name
az aks install-cli
Errors:
To Reproduce:
Steps to reproduce the behavior. Note that argument values have been redacted, as they may contain sensitive information.
az aks install-cli
Expected Behavior
Environment Summary
Additional Context
I am using a proxy and vpn as well. My az login works as intended. I can use az aks install-cli in Powershell (which fails, but with HTTP Error 403: rate limit exceeded).