-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
AZ CLI does not install SOCKS support by default #18930
Comments
@jiasli for awareness |
Adding |
@grahamhayes, Azure CLI doesn't install azure-cli/src/azure-cli-core/setup.py Line 60 in a46fb8c
as it will introduce additional dependencies for users who don't use SOCKS5 proxy. And yes, you may install https://docs.python-requests.org/en/master/user/advanced/#socks
|
@jiasli - yeah, that is true, but with the default installation methods used by the CLI avoid using the system python site-packages (brew on OSX, an apt package that ships an entirely new python binary on ubuntu for example), the installation of the extra package is difficult e.g. - This also means each time the az cli is updated, you have to re install. For users behind a SOCKS proxy (e.g. high security environments, managed enterprise environments) - access to pypi is also a problem. With the advent of private link services, SOCKS proxies via SSH are a very useful tool for interacting with services without having to set up DNS forwarding, VPNs / Express Routes and VNet peerings. This adds a quite small dependancy (especially as we ship copies of everything including an interpreter in some cases). |
Thanks @grahamhayes for the detailed explanation. Let's work on the PR #18931 instead. |
This is autogenerated. Please review and update as needed.
Describe the bug
Command Name
az *
Errors:
To Reproduce:
Run any Azure CLI command with
ALL_PROXY
set to a SOCKS5 proxyexport ALL_PROXY=socks5h://<host>:<port>
az login
Expected Behavior
Command should complete as expected
Environment Summary
Additional Context
The text was updated successfully, but these errors were encountered: