Hi Hadi Burhan •,
Welcome to Microsoft Q&A forum.
As I understand, you want to migrate SQL Server On premises 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.
Thanks