Hi @JS Arya Thank you for contacting us on Microsoft Q&A platform. Happy to answer any questions!
I see that you have a requirement to migrate local CentOS server to Azure. You can use the Azure Migrate tool. Azure Migrate is a suite of tools that can help you assess the readiness of your on-premises servers for migration to Azure, and then migrate those servers to Azure VMs.
Do I have to convert it to a VM first and then I need to migrate or directly I can use Azure migrate?
No. You can follow physical server migration workflow.
Follow the instructions from this link - https://learn.microsoft.com/en-us/azure/migrate/prepare-for-migration
Hope this helps. Please let me know if you need further assistance!
----------------------------------------------------------------------------------------------------------------------
If the response helped, do "Accept Answer" and up-vote it