Your best bet would be to create a new Virtual Machine using a fresh Marketplace image for Windows 11, that's optimized with the correct configuration settings.
However if you do want to upgrade that VM, the workaround is to download the VHD into Hyper-V on your device and do the upgrade then reupload it back.
You could try unattended upgrade options using the ISO etc but it will be unsupported.