Hello @Imad Messelmani Thank you for contacting us through Microsoft Q&A platform. Happy to help!
I understand that you want to migrate your on-premises Windows Server 2012 to Azure. However, as per support document Windows Server 2012 is not a supported OS for migration to Azure.
Azure Migrate now supports in-place upgrades of Windows Server 2012 and later versions, during the move to Azure. Organizations can now elect to move their legacy applications and databases to a fully supported, compatible, and compliant operating system such as Windows Server 2016, 2019, or 2022. Organizations can also avoid downtime by first upgrading to a test environment in Azure and running production workloads in parallel to confirm functionality and compatibility, before fully moving to Azure.
With this new feature, organizations can avoid Windows Server 2012/R2 end of support and accomplish their modernization and migration goals in one motion. Learn more about this feature in Azure Migrate here.
Hope this helps. Let us know if you have any further questions.
If the response helped, do "Accept Answer" and up-vote it