Driver ‘pcspkr’ on Linux Hyper-V VM

This message appears while booting Debian on a Hyper-V host:

pcspkr is the PC-Speaker driver:

We don’t need it on a Hyper-V VM, you can disable it and the error message is gone: