ERROR: <urllib3.connection.HTTPSConnection object at 0x7ff24b791100>: Failed to establish a new connection: [Errno -2] Name or service not known
- Dominant language
- Python
- Stars
- 4.6k
- Forks
- 3.5k
- Avg merge
- 3d 2h
- Merged PRs (30d)
- 60
Description
### Describe the bug
I'm encountering a connectivity issue when trying to run the following Azure CLI command in our QA environment:
`az storage blob upload-batch -s ./ -d '$web' --account-name "$(STORAGE_ACCOUNT_NAME)" --overwrite --account-key "$(STORAGE_ACCOUNT_KEY)"`
Problem
When running this command in the QA environment, I'm receiving the following error message:
`ERROR: : Failed to establish a new connection: [Errno -2] Name or service not known`
### Related command
az storage blob upload-batch -s ./ -d '$web' --account-name "$(STORAGE_ACCOUNT_NAME)" --overwrite --account-key "$(STORAGE_ACCOUNT_KEY)"
### Errors
ERROR: : Failed to establish a new connection: [Errno -2] Name or service not known
### Issue script & Debug output
ERROR: : Failed to establish a new connection: [Errno -2] Name or service not known
### Expected behavior
It should upload the files to Azure storage account
### Environment Summary
Task : Azure CLI
Description : Run Azure CLI commands against an Azure subscription in a PowerShell Core/Shell script when running on Linux agent or PowerShell/PowerShell Core/Batch script when running on Windows agent.
Version : 2.225.0
Author : Microsoft Corporation
### Additional context
_No response_
Contributor guide
Assessment
This issue has not been assessed yet.