Azure / azure-cli-extensions

Public Repository for Extensions of Azure CLI.
https://docs.microsoft.com/en-us/cli/azure
MIT License
382 stars 1.23k forks source link

RDP does not support platforms other than Windows #8180

Open ed6767 opened 5 days ago

ed6767 commented 5 days ago

Describe the bug

Trying to run any RDP connection on Darwin or Linux results in the RDP connection is not supported for this platform. Supported platforms: Windows error, even when the official Microsoft RDP client is installed.

Related command

az ssh arc --resource-group "Azure-Arc" --name $machine --local-user $username --yes --rdp -- -o StrictHostKeyChecking=accept-new

Errors

RDP connection is not supported for this platform. Supported platforms: Windows

Issue script & Debug output

N/A

Expected behavior

On macOS and many Linux repos, the RDP client can be opened via the RDP URI format. This seems to be an arbitrary restriction to the RDP feature. The CLI should at least attempt to start an RDP connection, or offer an RDP URL, especially considering not everyone wants to use the default RDP client

Environment Summary

azure-cli 2.64.0 *

core 2.64.0 * telemetry 1.1.0

Extensions: connectedmachine 1.0.0b2 ssh 2.0.5

Dependencies: msal 1.30.0 azure-mgmt-resource 23.1.1

Python location '/opt/homebrew/Cellar/azure-cli/2.64.0/libexec/bin/python' Extensions directory '/Users/ed/.azure/cliextensions'

Python (Darwin) 3.11.9 (main, Apr 2 2024, 08:25:04) [Clang 15.0.0 (clang-1500.3.9.4)]

Legal docs and information: aka.ms/AzureCliLegal

Additional context

No response

yonzhan commented 5 days ago

Thank you for opening this issue, we will look into it.