-
Notifications
You must be signed in to change notification settings - Fork 3.3k
Description
This is similar to #2505
We are running azure cli behind a proxy and most of the commands work except for az keyvault secret downlod. az keyvault command work as well. The error we get when trying to download a secret from keyvault is:
cli.azure.cli.core.azclierror: Error occurred in request., ProxyError: HTTPSConnectionPool(host='kv---poc-01.vault.azure.net', port=443): Max retries exceeded with url: /secrets/azure/?api-version=7.0 (Caused by ProxyError('Cannot connect to proxy.', ConnectionResetError(104, 'Connection reset by peer')))
az_command_data_logger: Error occurred in request., ProxyError: HTTPSConnectionPool(host='kv-cmk-test-poc-01.vault.azure.net', port=443): Max retries exceeded with url: /secrets/azure/?api-version=7.0 (Caused by ProxyError('Cannot connect to proxy.', ConnectionResetError(104, 'Connection reset by peer')))
Command Name
az keyvault secret download
Errors:
cli.azure.cli.core.azclierror: Error occurred in request., ProxyError: HTTPSConnectionPool(host='kv-*-*-poc-01.vault.azure.net', port=443): Max retries exceeded with url: /secrets/azure/?api-version=7.0 (Caused by ProxyError('Cannot connect to proxy.', ConnectionResetError(104, 'Connection reset by peer')))
az_command_data_logger: Error occurred in request., ProxyError: HTTPSConnectionPool(host='kv-cmk-test-poc-01.vault.azure.net', port=443): Max retries exceeded with url: /secrets/azure/?api-version=7.0 (Caused by ProxyError('Cannot connect to proxy.', ConnectionResetError(104, 'Connection reset by peer')))
And because of this new proxy setup within the organization, most of our builds are failing.
Any help on this will be awesome
To Reproduce:
Set up Azure CLI behind proxy using HTTPS_PROXY="*"
Run a az keyvault secret download command
Expected Behavior
Should download the secret from kevault
Environment Summary
Linux-4.18.0-425.10.1.el8_7.x86_64-x86_64-with-glibc2.28, Red Hat Enterprise Linux 8.7 (Ootpa)
Python 3.9.13
Installer: RPM
azure-cli 2.45.0
Extensions:
notification-hub 0.2.0
Dependencies:
msal 1.20.0
azure-mgmt-resource 21.1.0b1