Azure / Azure/azure-cli

Update documentation to indicate that az ssh does not support the PowerShell ISE.

Open
#28,129 2 comments 0 reactions 0 assignees View on GitHub
act-observability-squad Auto-Assign bug customer-reported Service Attention SSH VM SSH
Dominant language
Python
Stars
4.6k
Forks
3.5k
Avg merge
3d 2h
Merged PRs (30d)
60

Description

### Describe the bug

Attempting to use az ssh with Extra-AD login does not work in the PowerShell ISE. When attempted, the SSH session connection attempt stalls and never connects.

This does not appear to be documented anywhere, and should be added to the az ssh help page at https://learn.microsoft.com/en-us/cli/azure/ssh?view=azure-cli-latest

### Related command

Issue can be replicated by using

`az ssh vm -n VMNAME -g RGNAME --debug`

From PowerShell ISE. The session will stall out, and never connect. The same behavior happens with

`az ssh vm -n VMNAME -g RGNAME`

But due to the lack of verbose debug info, no status is ever displayed. Just stalls and stays there forever, hanging up the PowerShell ISE tab.

### Errors

No error provided. Just hangs.

### Issue script & Debug output

N/A

### Expected behavior

az ssh connects

### Environment Summary


azure-cli 2.55.0

core 2.55.0
telemetry 1.1.0

Extensions:
ssh 2.0.2

Dependencies:
msal 1.24.0b2
azure-mgmt-resource 23.1.0b2

Python location 'C:\Program Files (x86)\Microsoft SDKs\Azure\CLI2\python.exe'
Extensions directory 'C:\Users\ouacdiskan\.azure\cliextensions'

Python (Windows) 3.11.5 (tags/v3.11.5:cce6ba9, Aug 24 2023, 14:21:31) [MSC v.1936 32 bit (Intel)]

Legal docs and information: aka.ms/AzureCliLegal

### 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.