Azure / Azure/azure-cli

Receiving `Connection aborted` error when using managed identity

Open
#19,396 5 comments 0 reactions 1 assignee Assigned to @jiasli View on GitHub
Account act-identity-squad common issue customer-reported feature-request
Dominant language
Python
Stars
4.6k
Forks
3.5k
Avg merge
3d 2h
Merged PRs (30d)
60

Description

### **This is autogenerated. Please review and update as needed.**

## Describe the bug

**Command Name**
`az vm list`

**Errors:**
```
Failed to connect to MSI. Please make sure MSI is configured correctly and check the network connection.
Error detail: ('Connection aborted.', ConnectionResetError(104, 'Connection reset by peer'))

```

## To Reproduce:
Steps to reproduce the behavior. Note that argument values have been redacted, as they may contain sensitive information.

- az login --identity
- `az vm list --show-details --query {} --output {}`

## Expected Behavior
To list the expected VM info based on the filter I added
## Environment Summary
```
Linux-5.4.0-1047-azure-x86_64-with-debian-bullseye-sid
Python 3.6.10
Installer: DEB

azure-cli 2.27.2

```
## Additional Context
I have run `az login --identity` before running the above command. and the above command has worked before so I am not sure why it is failing now

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.