If you have a single server, use Disk2Vd - details at https://www.higginson.org/migrate-a-physical-device-to-azure/
For a larger number of servers, use Azure Migrate
https://learn.microsoft.com/en-us/azure/migrate/migrate-services-overview
If the above response helps answer your question, remember to "Accept Answer" so that others in the community facing similar issues can easily find the solution. Your contribution is highly appreciated.
hth
Marcin