Hello,
Thank you for posting in Q&A forum.
Some users have encountered the same problem; therefore, this may be an involved bug. One user provided the Powell Shell command, and it solved the problem, it is recommended to try it to see if it helps.
Here is the link: Windows Server 2022 Datacenter Azure Edition VM deactivated in MS Azure due to lack of "Azure Stack Hypervisor" - Microsoft Q&A
If the Answer is helpful, please click "Accept Answer" and upvote it.