Hi Juan Diego Chica Salazar
Based on the information you provided, you will need to purchase enough Windows Server 2022 Standard Core licenses to cover your Windows Server 2012 virtual machines. According to Microsoft's licensing policy, you need to purchase a minimum of 16 core licenses per physical processor and a minimum of 8 core licenses per virtual machine. So, if your virtualized server has 10 core processors, you'll need to purchase at least 160 core licenses to cover all of your virtual machines. If you only want to upgrade your Windows Server 2012 virtual machines, you can purchase enough core licenses to cover them without having to purchase additional licenses.
Hope it helps.
Regards,
Lei