Make sure that, the Azure Guest Agent installed on the VM is updated to report the correct values of resources of the VM. Also, try a re-deployment of the VM so that to move the VM to a new node to refresh the resources and see if it helps to report the correct values of cpu - Redeploy Windows virtual machine to new Azure node
--please don't forget to upvote
and Accept as answer
if the reply is helpful--