Tutorial: Discover servers running in a VMware environment with Azure Migrate

As part of your migration journey to Azure, you discover your on-premises inventory and workloads.

This tutorial shows you how to discover the servers that are running in your VMware environment by using the Azure Migrate: Discovery and assessment tool, a lightweight Azure Migrate appliance. You deploy the appliance as a server running in your vCenter Server instance, to continuously discover servers and their performance metadata, applications that are running on servers, server dependencies, web apps, and SQL Server instances and databases.

In this tutorial, you learn how to:

  • Set up an Azure account.
  • Prepare the VMware environment for discovery.
  • Create a project.
  • Set up the Azure Migrate appliance.
  • Start continuous discovery.

Note

Tutorials show you the quickest path for trying out a scenario. They use default options where possible. This scenario is also applicable for discovery of VM servers from AVS.

If you don't have an Azure subscription, create a free account before you begin.

Prerequisites

Before you begin this tutorial, check that you have these prerequisites in place:

Requirement Details
vCenter Server/ESXi host You need a server running vCenter Server version 8.0, 7.0, 6.7, 6.5, 6.0, or 5.5.

Servers must be hosted on an ESXi host running version 5.5 or later.

On the vCenter Server, allow inbound connections on TCP port 443 so that the appliance can collect configuration and performance metadata.

The appliance connects to vCenter Server on port 443 by default. If the server running vCenter Server listens on a different port, you can modify the port when you provide the vCenter Server details in the appliance configuration manager.

On the ESXi hosts, make sure that inbound access is allowed on TCP port 443 for discovery of installed applications and for agentless dependency analysis on servers.
Azure Migrate appliance vCenter Server must have these resources to allocate to a server that hosts the Azure Migrate appliance:

- 32 GB of RAM, 8 vCPUs, and approximately 80 GB of disk storage.

- An external virtual switch and internet access on the appliance server, directly or via a proxy.
Servers All Windows and Linux OS versions are supported for discovery of configuration and performance metadata.

For application discovery on servers, all Windows and Linux OS versions are supported. Check the OS versions supported for agentless dependency analysis.

For discovery of installed applications and for agentless dependency analysis, VMware Tools (version 10.2.1 or later) must be installed and running on servers. Windows servers must have PowerShell version 2.0 or later installed.

To discover SQL Server instances and databases, check supported SQL Server and Windows OS versions and editions and Windows authentication mechanisms.

To discover ASP.NET web apps running on IIS web server, check supported Windows OS and IIS versions.

To discover Java web apps running on Apache Tomcat web server, check supported Linux OS and Tomcat versions.
SQL Server access To discover SQL Server instances and databases, the Windows or SQL Server account requires these permissions for each SQL Server instance. You can use the account provisioning utility to create custom accounts or use any existing account that is a member of the sysadmin server role for simplicity.

Prepare an Azure user account

To create a project and register the Azure Migrate appliance, you must have an Azure account that has these permissions:

  • Contributor or Owner permissions in the Azure subscription.
  • Permissions to register Microsoft Entra apps.
  • Owner or Contributor and User Access Administrator permissions at subscription level to create an instance of Azure Key Vault, which is used during agentless server migration.

If you created a free Azure account, by default, you're the owner of the Azure subscription. If you're not the subscription owner, work with the owner to assign permissions.

To set Contributor or Owner permissions in the Azure subscription:

  1. In the Azure portal, search for "subscriptions." Under Services in the search results, select Subscriptions.

    Screenshot that shows how to search for an Azure subscription in the search box.

  2. In Subscriptions, select the subscription in which you want to create a project.

  3. Select Access control (IAM).

  4. Select Add > Add role assignment to open the Add role assignment page.

  5. Assign the following role. For detailed steps, see Assign Azure roles using the Azure portal .

    Setting Value
    Role Contributor or Owner
    Assign access to User
    Members azmigrateuser

    Add role assignment page in Azure portal.

To give the account the required permissions to register Microsoft Entra apps:

  1. In the portal, go to Microsoft Entra ID > Users.

  2. Request the tenant or global admin to assign the Application Developer role to the account to allow Microsoft Entra app registration by users. Learn more.

Prepare VMware

On vCenter Server, check that your account has permissions to create a VM by using a VMware Open Virtualization Appliance (OVA) virtual machine (VM) installation file. You must have these permissions when you deploy the Azure Migrate appliance as a VMware VM by using an OVA file.

Azure Migrate must have a vCenter Server read-only account to discover and assess servers running in your VMware environment. If you also want to run discovery of installed applications and agentless dependency analysis, the account must have permissions enabled in VMware for VM guest operations.

Create an account to access vCenter Server

In VMware vSphere Web Client, set up a read-only account to use for vCenter Server:

  1. From an account that has admin privileges, in vSphere Web Client, on the Home menu, select Administration.

  2. Under Single Sign-On, select Users and Groups.

  3. In Users, select New User.

  4. Enter the account details, and then select OK.

  5. In the menu under Administration, under Access Control, select Global Permissions.

  6. Select the user account, and then select Read-only to assign the role to the account. Select OK.

  7. To be able to start discovery of installed applications and agentless dependency analysis, in the menu under Access Control, select Roles. In the Roles pane, under Roles, select Read-only. Under Privileges, select Guest operations. To propagate the privileges to all objects in the vCenter Server instance, select the Propagate to children checkbox.

    Screenshot that shows the vSphere web client and how to create a new account and select user roles and privileges.

Note

  • For vCenter Server 7.x and above you must clone the Read Only system role and add the Guest Operations Privileges to the cloned role. Assign the cloned role to the vCenter Account. Learn how to create a custom role in VMware vCenter.
  • You can scope the vCenter Server account to limit discovery to specific vCenter Server datacenters, clusters, hosts, folders of clusters or hosts, or individual servers. Learn how to scope the vCenter Server user account.
  • vCenter assets connected via Linked-Mode to the vCenter server specified for discovery will not be discovered by Azure Migrate.

Create an account to access servers

Note

Lightweight Directory Access Protocol (LDAP) accounts are not supported for discovery.

Your user account on your servers must have the required permissions to initiate discovery of installed applications, agentless dependency analysis, and discovery of web apps, and SQL Server instances and databases. You can provide the user account information in the appliance configuration manager. The appliance doesn't install agents on the servers.

  • For Windows servers and web apps discovery, create an account (local or domain) that has administrator permissions on the servers. Sentence should be - To discover SQL Server instances and databases, the Windows or SQL Server account must be a member of the sysadmin server role or have these permissions for each SQL Server instance. Learn how to assign the required role to the user account.
  • For Linux servers, provide a sudo user account with permissions to execute ls and netstat commands or create a user account that has the CAP_DAC_READ_SEARCH and CAP_SYS_PTRACE permissions on /bin/netstat and /bin/ls files. If you're providing a sudo user account, ensure that you have enabled NOPASSWD for the account to run the required commands without prompting for a password every time sudo command is invoked.

Note

You can add multiple server credentials in the Azure Migrate appliance configuration manager to initiate discovery of installed applications, agentless dependency analysis, and discovery of web apps, and SQL Server instances and databases. You can add multiple domain, Windows (non-domain), Linux (non-domain), or SQL Server authentication credentials. Learn how to add server credentials.

Set up a project

To set up a new project:

  1. In the Azure portal, select All services, and then search for Azure Migrate.

  2. Under Services, select Azure Migrate.

  3. In Get started, select one of the following options, depending on your migration goals: Servers, databases and web apps, Databases (only), or Explore more scenarios.

  4. Select Create project.

  5. In Create project, select your Azure subscription and resource group. Create a resource group if you don't have one.

  6. In Project Details, specify the project name and the geography where you want to create the project. Review supported geographies for public clouds and supported geographies for government clouds.

    Note

    Use the Advanced configuration section to create an Azure Migrate project with private endpoint connectivity. Learn more.

  7. Select Create.

  8. Wait a few minutes for the project to deploy. The Azure Migrate: Discovery and assessment tool is added by default to the new project.

Note

If you've already created a project, you can use that project to register more appliances to discover and to assess more servers. Learn how to manage projects.

Set up the appliance

The Azure Migrate: Discovery and assessment tool uses a lightweight Azure Migrate appliance. The appliance completes server discovery and sends server configuration and performance metadata to Azure Migrate. Set up the appliance by deploying an OVA template that can be downloaded from the project.

Note

If you can't set up the appliance by using the OVA template, you can set it up by running a PowerShell script on an existing server running Windows Server 2019 or Windows Server 2022. Learn how to use PowerShell to set up an Azure Migrate appliance.
The option to deploy an appliance using an OVA template isn't supported in Azure Government cloud. Learn more on how to deploy an appliance for Azure Government cloud.

Deploy by using an OVA template

To set up the appliance by using an OVA template, complete these steps, which are described in more detail in this section:

  1. Provide an appliance name and generate a project key in the portal.
  2. Download an OVA template file, and then import it to vCenter Server. Verify that the OVA is secure.
  3. Create the appliance from the OVA file. Verify that the appliance can connect to Azure Migrate.
  4. Configure the appliance for the first time.
  5. Register the appliance with the project by using the project key.

Generate the project key

  1. In Migration goals, select Servers, databases and web apps > Azure Migrate: Discovery and assessment > Discover.
  2. In Discover servers, select Are your servers virtualized? > Yes, with VMware vSphere hypervisor.
  3. In 1:Generate project key, provide a name for the Azure Migrate appliance that you'll set up to discover servers in your VMware environment. The name should be alphanumeric and 14 characters or fewer.
  4. To start creating the required Azure resources, select Generate key. Don't close the Discover pane while the resources are being created.
  5. After the Azure resources are successfully created, a project key is generated.
  6. Copy the key. You'll use the key to complete registration of the appliance when you configure the appliance.

Download the OVA template

Note

To make sure you get the latest version of the OVA template refer to the Azure Migrate appliance requirements under the Appliance - VMware section.

In 2: Download Azure Migrate appliance, select the OVA file, and then select Download.

Verify security

Before you deploy the OVA file, verify that the file is secure:

  1. On the server on which you downloaded the file, open a Command Prompt window by using the Run as administrator option.

  2. Run the following command to generate the hash for the OVA file:

    C:\>CertUtil -HashFile <file_location> <hashing_agorithm>
    

    Example: C:\>CertUtil -HashFile C:\Users\Administrator\Desktop\MicrosoftAzureMigration.ova SHA256

  3. Verify the latest appliance versions and hash values:

    • For the Azure public cloud:

      Algorithm Download SHA256
      VMware (11.9 GB) Latest version 06256f9c6fb3f011152d861da43ffa1c5c8ff966931d5ce00f1f252d3a2f4723
    • For Azure Government:

      Algorithm Download SHA256
      VMware (85.8 MB) Latest version a551f3552fee62ca5c7ea11648960a09a89d226659febd26314e222a37c7d857

Create the appliance server

Import the downloaded file, and then create a server in the VMware environment:

  1. In the vSphere Client console, select File > Deploy OVF Template.
  2. In the Deploy OVF Template Wizard, select Source, and then enter the location of the OVA file.
  3. In Name, enter a name for the server. In Location, select the inventory object in which the server will be hosted.
  4. In Host/Cluster, select the host or cluster on which the server will run.
  5. In Storage, select the storage destination for the server.
  6. In Disk Format, select the disk type and size.
  7. In Network Mapping, select the network the server will connect to. The network requires internet connectivity to send metadata to Azure Migrate.
  8. Review and confirm the settings, and then select Finish.

Verify appliance access to Azure

Make sure that the appliance server can connect to Azure URLs for public clouds and government clouds.

Configure the appliance

To set up the appliance for the first time:

Note

If you set up the appliance by using a PowerShell script instead of a downloaded OVA template, you can skip the first two steps.

  1. In vSphere Client, right-click the server, and then select Open Console.

  2. Select or enter the language, time zone, and password for the appliance.

  3. Open a browser on any computer that can connect to the appliance. Then, open the URL of the appliance configuration manager: https://appliance name or IP address: 44368.

    Or, you can open the configuration manager from the appliance server desktop by selecting the shortcut for the configuration manager.

  4. Accept the license terms and read the third-party information.

Set up prerequisites and register the appliance

In the configuration manager, select Set up prerequisites, and then complete these steps:

  1. Connectivity: The appliance checks that the server has internet access. If the server uses a proxy:

    • Select Setup proxy to specify the proxy address (in the form http://ProxyIPAddress or http://ProxyFQDN, where FQDN refers to a fully qualified domain name) and listening port.

    • Enter credentials if the proxy needs authentication.

    • If you have added proxy details or disabled the proxy or authentication, select Save to trigger connectivity and check connectivity again.

      Only HTTP proxy is supported.

  2. Time sync: Check that the time on the appliance is in sync with internet time for discovery to work properly.

  3. Install updates and register appliance: To run auto-update and register the appliance, follow these steps:

    Screenshot that shows setting up the prerequisites in the appliance configuration manager.

    Note

    This is a new user experience in Azure Migrate appliance which is available only if you have set up an appliance using the latest OVA/Installer script downloaded from the portal. The appliances which have already been registered will continue seeing the older version of the user experience and will continue to work without any issues.

    1. For the appliance to run auto-update, paste the project key that you copied from the portal. If you don't have the key, go to Azure Migrate: Discovery and assessment > Overview > Manage existing appliances. Select the appliance name you provided when you generated the project key, and then copy the key that's shown.

    2. The appliance will verify the key and start the auto-update service, which updates all the services on the appliance to their latest versions. When the auto-update has run, you can select View appliance services to see the status and versions of the services running on the appliance server.

    3. To register the appliance, you need to select Login. In Continue with Azure Login, select Copy code & Login to copy the device code (you must have a device code to authenticate with Azure) and open an Azure sign in prompt in a new browser tab. Make sure you've disabled the pop-up blocker in the browser to see the prompt.

      Screenshot that shows where to copy the device code and sign in.

    4. In a new tab in your browser, paste the device code and sign in by using your Azure username and password. Signing in with a PIN isn't supported.

      Note

      If you close the sign in tab accidentally without logging in, refresh the browser tab of the appliance configuration manager to display the device code and Copy code & Login button.

    5. After you successfully sign in, return to the browser tab that displays the appliance configuration manager. If the Azure user account that you used to sign in has the required permissions for the Azure resources that were created during key generation, appliance registration starts.

      After the appliance is successfully registered, to see the registration details, select View details.

  4. Install the VDDK: The appliance checks that VMware vSphere Virtual Disk Development Kit (VDDK) is installed. Download VDDK 6.7 or 7 (depending on the compatibility of VDDK and ESXi versions) from VMware. Extract the downloaded zip file contents to the specified location on the appliance, the default path is C:\Program Files\VMware\VMware Virtual Disk Development Kit as indicated in the Installation instructions.

    The Migration and modernization tool uses the VDDK to replicate servers during migration to Azure.

You can rerun prerequisites at any time during appliance configuration to check whether the appliance meets all the prerequisites.

Start continuous discovery

Complete the setup steps in the appliance configuration manager to prepare for and start discovery.

Provide vCenter Server details

The appliance must connect to vCenter Server to discover the configuration and performance data of the servers:

  1. In Step 1: Provide vCenter Server credentials, select Add credentials to enter a name for the credentials. Add the username and password for the vCenter Server account that the appliance will use to discover servers running on vCenter Server.

    • You should have set up an account with the required permissions as described earlier in this article.
    • If you want to scope discovery to specific VMware objects (vCenter Server datacenters, clusters, hosts, folders of clusters or hosts, or individual servers), review the instructions to set discovery scope to restrict the account that Azure Migrate uses.
    • If you want to add multiple credentials at once, select Add more to save and add more credentials. Multiple credentials are supported for discovery of servers across multiple vCenter Servers using a single appliance.
  2. In Step 2: Provide vCenter Server details, select Add discovery source to add the IP address or FQDN of a vCenter Server. You can leave the port as the default (443) or specify a custom port on which vCenter Server listens. Select the friendly name for credentials you would like to map to the vCenter Server and select Save.

    Select Add more to save the previous details and add more vCenter Server details. You can add up to 10 vCenter Servers per appliance.

    Screenshot that allows to add more vCenter Server details.

  3. The appliance attempts to validate the connection to the vCenter Server(s) added by using the credentials mapped to each vCenter Server. It displays the validation status with the vCenter Server(s) IP address or FQDN in the sources table.

  4. You can revalidate the connectivity to the vCenter Server(s) anytime before starting discovery.

    Screenshot that shows managing credentials and discovery sources for vCenter Server in the appliance configuration manager.

Provide server credentials

In Step 3: Provide server credentials to perform software inventory, agentless dependency analysis, discovery of SQL Server instances and databases and discovery of web apps in your VMware environment., you can provide multiple server credentials. If you don't want to use any of these appliance features, you can skip this step and proceed with vCenter Server discovery. You can change this option at any time.

Screenshot that shows providing credentials for software inventory, dependency analysis, and s q l server discovery.

If you want to use these features, provide server credentials by completing the following steps. The appliance attempts to automatically map the credentials to the servers to perform the discovery features.

To add server credentials:

  1. Select Add Credentials.

  2. In the dropdown menu, select Credentials type.

    You can provide domain, Windows(non-domain), Linux(non-domain), and SQL Server authentication credentials. Learn how to provide credentials and how we handle them.

  3. For each type of credentials, enter:

    • A friendly name.
    • A username.
    • A password. Select Save.

    If you choose to use domain credentials, you also must enter the FQDN for the domain. The FQDN is required to validate the authenticity of the credentials with the Active Directory instance in that domain.

  4. Review the required permissions on the account for discovery of installed applications, agentless dependency analysis, and discovery of web apps and SQL Server instances and databases.

  5. To add multiple credentials at once, select Add more to save credentials, and then add more credentials. When you select Save or Add more, the appliance validates the domain credentials with the domain's Active Directory instance for authentication. Validation is made after each addition to avoid account lockouts as the appliance iterates to map credentials to respective servers.

To check validation of the domain credentials:

In the configuration manager, in the credentials table, see the Validation status for domain credentials. Only domain credentials are validated.

If validation fails, you can select a Failed status to see the validation error. Fix the issue, and then select Revalidate credentials to reattempt validation of the credentials.

Screenshot that shows providing and validating multiple credentials.

Start discovery

To start vCenter Server discovery, select Start discovery. After the discovery is successfully initiated, you can check the discovery status by looking at the vCenter Server IP address or FQDN in the sources table.

How discovery works

  • It takes approximately 20-25 minutes for the discovery of servers across 10 vCenter Servers added to a single appliance.

  • If you have provided server credentials, software inventory (discovery of installed applications) is automatically initiated when the discovery of servers running on vCenter Server(s) is finished. Software inventory occurs once every 12 hours.

  • Software inventory identifies the SQL Server instances that are running on the servers. Using the information it collects, the appliance attempts to connect to the SQL Server instances through the Windows authentication credentials or the SQL Server authentication credentials that are provided on the appliance. Then, it gathers data on SQL Server databases and their properties. The SQL Server discovery is performed once every 24 hours.

  • Appliance can connect to only those SQL Server instances to which it has network line of sight, whereas software inventory by itself might not need network line of sight.

  • Discovery of installed applications might take longer than 15 minutes. The duration depends on the number of discovered servers. For 500 servers, it takes approximately one hour for the discovered inventory to appear in the Azure Migrate project in the portal.

  • Software inventory identifies web server role existing on discovered servers. If a server is found to have web server role enabled, Azure Migrate will perform web apps discovery on the server. Web apps configuration data is updated once every 24 hours.

  • During software inventory, the added server credentials are iterated against servers and validated for agentless dependency analysis. When the discovery of servers is finished, in the portal, you can enable agentless dependency analysis on the servers. Only the servers on which validation succeeds can be selected to enable agentless dependency analysis.

  • Web apps and SQL Server instances and databases data begin to appear in the portal within 24 hours after you start discovery.

  • By default, Azure Migrate uses the most secure way of connecting to SQL instances that is, Azure Migrate encrypts communication between the Azure Migrate appliance and the source SQL Server instances by setting the TrustServerCertificate property to true. Additionally, the transport layer uses TLS to encrypt the channel and bypass the certificate chain to validate trust. Hence, the appliance server must be set up to trust the certificate's root authority. However, you can modify the connection settings, by selecting Edit SQL Server connection properties on the appliance. Learn more to understand what to choose.

    Screenshot that shows how to edit SQL Server connection properties.

To start vCenter Server discovery, select Start discovery. After the discovery is successfully initiated, you can check the discovery status by looking at the vCenter Server IP address or FQDN in the sources table.

View discovered data

  1. Return to Azure Migrate in the Azure portal.

  2. Select Refresh to view discovered data.

  3. Select the discovered servers count to review the discovered inventory. You can filter the inventory by selecting the appliance name and selecting one or more vCenter Servers from the Source filter.

    Screenshot that shows how to refresh data in discovery and assessment tile.

Details such as OS license support status, inventory, database instances, etc. are displayed.

View support status

You can gain deeper insights into the support posture of your environment from the Discovered servers and Discovered database instances sections.

The Operating system license support status column displays the support status of the Operating system, whether it is in mainstream support, extended support, or out of support. Selecting the support status opens a pane on the right which provides clear guidance regarding actionable steps that can be taken to secure servers and databases in extended support or out of support.

To view the remaining duration until end of support, that is, the number of months for which the license is valid, select Columns > Support ends in > Submit. The Support ends in column displays the duration in months.

The Database instances displays the number of instances discovered by Azure Migrate. Select the number of instances to view the database instance details. The Database instance license support status displays the support status of the database instance. Selecting the support status opens a pane on the right which provides clear guidance regarding actionable steps that can be taken to secure servers and databases in extended support or out of support.

To view the remaining duration until end of support, that is, the number of months for which the license is valid, select Columns > Support ends in > Submit. The Support ends in column displays the duration in months.

Next steps