I understand you are getting an error that your Windows Server 2022 Datacenter Azure Edition has been deactivated. From the error message it seems that it is unable to communicate with Azure Instance Metadata Service (IMDS). This page goes through the troubleshooting steps and solutions.
Please try the solutions, if it doesn't resolve you issues please let me know so we can continue troubleshooting.
If you still have questions, please let us know in the "comments" and we would be happy to help you. Comment is the fastest way of notifying the experts.
If the answer has been helpful, we appreciate hearing from you and would love to help others who may have the same question. Accepting answers helps increase visibility of this question for other members of the Microsoft Q&A community.
Thank you for helping to improve Microsoft Q&A!