Azure / Azure/azure-cli

ERROR: <urllib3.connection.HTTPSConnection object at 0x7ff24b791100>: Failed to establish a new connection: [Errno -2] Name or service not known

Open
#27,315 18 comments 0 reactions 2 assignees Claimed by @calvinhzy View on GitHub
act-codegen-extensibility-squad Auto-Assign Auto-Resolve Azure CLI Team customer-reported feature-request Possible-Solution Similar-Issue Storage
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.