In order for this to work you must install a DataCenter host then you can make use of AVMA product keys and activations of guests ranging from 2012 R2 to 2022 both Standard and or DataCenter editions.
AVMA requires Windows Server Datacenter edition with the Hyper-V host role installed. The operating system version of the Hyper-V host determines which versions of operating system can be activated in a virtual machine.
https://learn.microsoft.com/en-us/windows-server/get-started/automatic-vm-activation#system-requirements
--please don't forget to upvote
and Accept as answer
if the reply is helpful--