-
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
functionapp: Proxy returns 407 when default credentials supplied #8047
Comments
Recommended labels: Functions-cli, Workaround |
This workaround does not work for me. With proxy environment variables defined, attempting to login
|
Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @ ahmedelnably, @fabiocav |
@jonlorusso, using |
Due to the poor support of NTLM in Python community, this 407 issue has been mentioned in all 3 libraries which Azure CLI relies on: pypa/pip#1182, psf/requests#2036, urllib3/urllib3#242 Adding requests-ntlm in msrest is not practical at the moment. cc @lmazuel There seems to be these solutions (I don’t have an NTLM environment so I can’t do the test):
Please let us know if you can get unblocked. |
Describe the bug
While behind a corporate proxy as defined in the HTTP_PROXY and HTTPS_PROXY environment variables as defined as "http://proxyhost:port", I am able to login using
az login
but as soon as I try to deploy a functionapp using something likeaz functionapp deployment source config-zip -g resourceGroup -n \functionAppName --src zipfile.zip
I receive a 407 proxy authentication required stacktrace. The full stacktrace is as follows:However, if I set environment variables to "http://username:password@proxyhost:port" I am able to deploy without issue. While I agree that I have a workaround, I would prefer to not specify my username and password in my environment variables due to my organizations rotating password requirements.
To Reproduce
az functionapp deployment source config-zip -g resourceGroup -n \functionAppName --src zipfile.zip
Expected behavior
az functionapp should honor authentication on the proxy the same way that the az login command works. A 407 proxy authentication required error should not be thrown
Environment summary
Install Method: MSI
CLI Version: 2.0.52
OS: Windows 10
Console: Powershell
The text was updated successfully, but these errors were encountered: