In addition to "LeonLaude"
@Vish If it is a physical server, you can follow the instructions from this link - https://learn.microsoft.com/en-us/azure/migrate/tutorial-assess-physical to assess and migration physical machines to Azure.
Another option is to assess servers by using imported data and doesn't require you to set up the Azure Migrate appliance to create an assessment. It's useful if:
You want to create a quick, initial assessment before you deploy the appliance.
You can't deploy the Azure Migrate appliance in your organization.
You can't share credentials that allow access to on-premises servers.
Security constraints prevent you from gathering and sending data collected by the appliance to Azure. You can control the data you share in an imported file. Also, much of the data (for example, providing IP addresses) is optional.
------------------------------------------------------------------------------------------------------------------------------
Please do not forget to "Accept the answer" wherever the information provided helps you to help others in the community.