Azure / Azure/azure-cli

Ctrl+] doesn't with non-english keyboard while using "az serial-console connect"

Open
#22,662 4 comments 0 reactions 0 assignees View on GitHub
customer-reported needs-team-attention Serial Console Service Attention
Dominant language
Python
Stars
4.6k
Forks
3.5k
Avg merge
3d 2h
Merged PRs (30d)
60

Description

The Azure documentation indicates that a user should press Ctrl+] to exit "az serial-console connect"

> _This command provides access to a text-based console for Linux and Windows virtual machines (VMs) and virtual machine scale set instances. This serial connection connects to the ttys0 serial port of the VM or virtual machine scale set instance, providing access to it independent of the network or operating system state. To exit serial console type Ctrl + ] and then q. To send an NMI/SysRq/Reset type Ctrl + ] and then n/s/r respectively._

Reference:
https://docs.microsoft.com/en-us/cli/azure/serial-console?view=azure-cli-latest#az-serial-console-connect

However this doesn't work with a keyboard that uses a layout in Spanish or Latin American, I presume there might be a similar problem with any non-english keyboard layout while using the Azure Cloud Shell.

This problem doesn't occur while using "az serial-console connect" from a local terminal such as MobaXterm.

To replicate the problem just follow these steps:

```
1. Connect a keyboard in Spanish to the computer and make sure Windows can detect the correct layout/language of the keyboard.

2. Go to https://shell.azure.com using Google Chrome Version 101.0.4951.67 (Official Build) (64-bit)
or Edge Version 101.0.1210.53 (Official build) (64-bit)

3. Connect to a virtual machine's serial console using the command below:

az serial-console connect --name VMNAME --resource-group RGNAME

4. Try to exit the serial console using the short cut "Ctrl+]" using the non-english keyboard layout.

After pressing the keys, the font size of the text will increase but the menu won't appear on screen.
```

Other alternatives such as Ctrl+Shift+] and Ctrl+AltGr+] doesn't work either.

The only solution to get the serial console menu is to press "Ctrl+5"

---
#### Document Details

⚠ *Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.*

* ID: 2c5e4754-2ac3-e9e4-31c5-c35b36a00e43
* Version Independent ID: 3f064b7b-0d91-b877-6bcb-3ec3be114b03
* Content: [az serial-console](https://docs.microsoft.com/en-us/cli/azure/serial-console?view=azure-cli-latest)
* Content Source: [latest/docs-ref-autogen/serial-console.yml](https://github.com/MicrosoftDocs/azure-docs-cli/blob/main/latest/docs-ref-autogen/serial-console.yml)
* GitHub Login: @rloutlaw
* Microsoft Alias: **routlaw**

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.