Azure / Azure/azure-cli-extensions

No warning when login needs to be run

Open
#3,648 2 comments 0 reactions 0 assignees View on GitHub
Service Attention VM SSH
Dominant language
Python
Stars
454
Forks
1.7k
Avg merge
2d 19h
Merged PRs (30d)
64

Description

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

## Describe the bug
az ssh vm command failed with a massive error message (took up my entire terminal window). When I ran az login again though, the command worked fine again. When I'm overdue to login again, the ssh vm command should just say that simply.

**Command Name**
`az ssh vm
Extension Name: ssh. Version: 0.1.5.`

**Errors:**
```
Please run 'az login' to setup account.

```

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

- _Put any pre-requisite steps here..._
- `az ssh vm --ip {}`

## Expected Behavior

## Environment Summary
```
Windows-10-10.0.18362-SP0
Python 3.8.9
Installer: MSI

azure-cli 2.24.2

Extensions:
ssh 0.1.5

```
## Additional Context

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.