Hi team,
I can connect to the serial console using Azure CLI with only one subscription logged in:
az serial-console connect --name aaa --resource-group bbb
After I log in the second subscription, I use --subscription option to connect to the serial console in the first subscription:
az serial-console connect --subscription "b20abce3-xxxx-xxxx-xxxx-9fa4dbe5xxxx" --name aaa --resource-group bbb
However, it failed with An unexpected error occurred:
For more information on the Azure Serial Console, see <https://aka.ms/serialconsolelinux>.
Connecting to console of VM □ □ ■
An unexpected error occurred. Could not establish connection to VM or VMSS. Check network connection and press "Enter" to try again...
How to debug this?
Thanks in advance for your time and help!
Here are the subscriptions on my host:
az account list
[
{
"cloudName": "AzureCloud",
...
"id": "b20abce3-xxxx-xxxx-xxxx-9fa4dbe5xxxx",
"isDefault": true,
"managedByTenants": [],
"name": "Visual Studio Professional Subscription",
"state": "Enabled",
...
},
{
"cloudName": "AzureCloud",
...
"id": "d9abef03-xxxx-xxxx-xxxx-873426f7xxxx",
"isDefault": false,
"managedByTenants": [],
"name": "Azure subscription 1",
"state": "Enabled",
...
}
]
Hi team,
I can connect to the serial console using Azure CLI with only one subscription logged in:
After I log in the second subscription, I use
--subscriptionoption to connect to the serial console in the first subscription:However, it failed with
An unexpected error occurred:How to debug this?
Thanks in advance for your time and help!
Here are the subscriptions on my host: