az ssh vm does not work on WSL
az ssh vm --subscription XXXXXXXXXXXXXXXXXXX --resource-group XXXXXXXXXXXXXXXXXXXXXX --vm-name vm-07 --prefer-private-ip '\wsl$\Ubuntu-20.04\home' CMD.EXE was started with the above path as the current directory. UNC paths are not supported. Defaulting to Windows directory. '\wsl$\Ubuntu-20.04\home' CMD.EXE was started with the above path as the current directory. UNC paths are not supported. Defaulting to Windows directory. '\wsl$\Ubuntu-20.04\home' CMD.EXE was started with the above path as the current directory. UNC paths are not supported. Defaulting to Windows directory. XXXXXX@RDDE01C0:/home$
returns to the local host linux for windows shell
VM SSH
@cforce Hi, I wasn't able to repro your issue. Can you make sure that you are using the latest version of az cli and the extension (Run "az upgrade" and "az extension update --name ssh"). If that doesn't fix your issue, we are going to need more information to address this issue (run the command with the --debug parameter and share logs with sensitive information redacted).