Description
openedon Jan 3, 2024
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