Trouble with migrating GCP Linux VM to Azure using Azure Migrate tooling.

Brian PERROUX 20 Reputation points
2023-10-12T13:51:16.95+00:00

Hi,

I've been following the tutorial from Microsoft to migrate VM from GCP to Azure using Azure Migrate Tooling.

I've been stuck on several, easy to avoid if properly documented, roadblocks.

First it seems the Agent for Azure Migrate: Discovery and assessment is not compatible with the Migration and modernization tool (1 and 2 respectively on the screenshot)

User's image

So after I get to step 3 of the tutorial I got prompted for a Config File out of nowhere because it's never been mentioned in all the steps leading till then.

User's image

After some researches I stumbled upon the following post where it's said you can generate a config file with a ID, that's been generated at the install of the agent on the VM you want to migrate, into the Azure Appliance Configuration Manager but there is no appliance of that name on my server, and I've been scratching my brain for 2 days trying to find that appliance.

Plus if the passphrase has been replaced by a conf file, why am I prompted a passphrase when at the end of MicrosoftAzureSiteRecoveryUnifiedSetup.exe ? and why registering my agent tower my appliance is asking for a Config file ? Is there a mishaps of the versions of the agent and the appliance in the package setup ?

Is that appliance supposed to be installed during the setup of MicrosoftAzureSiteRecoveryUnifiedSetup.exe ?

Azure Migrate
Azure Migrate
A central hub of Azure cloud migration services and tools to discover, assess, and migrate workloads to the cloud.
722 questions
{count} votes

Accepted answer
  1. SadiqhAhmed-MSFT 38,891 Reputation points Microsoft Employee
    2023-10-18T14:17:01.69+00:00

    Hello @Brian PERROUX Sorry for the delayed response.

    That documentation is not correct. For AWS and GCP we are still using the classic appliance, we are giving the commands for the modernize, that is why you are seeing a config file request. 

    Please follow the guidance below:

    There are two appliances one for the assessment and another for the actual migration. We don't support both appliances in the same Server.

    If you want to run assessment, you need the Azure Migrate Appliance. (not mandatory)

    Assess GCP VM instances for migration to Azure with Azure Migrate - Azure Migrate | Microsoft Learn

    https://learn.microsoft.com/en-us/azure/migrate/tutorial-migrate-gcp-virtual-machines#discover-and-assess

     

    For the replication/migration itself you need the Replication Appliance:

    https://learn.microsoft.com/en-us/azure/migrate/tutorial-migrate-gcp-virtual-machines#set-up-the-replication-appliance

     

    When installing the mobility agent, you will need the previous generated passphrase.

    • If you forgot to save the passphrase, you can view the passphrase on the replication appliance with this step. From the command line, run C:\ProgramData\ASR\home\svsystems\bin\genpassphrase.exe -v to view the current passphrase.
    • Now, copy this passphrase to your clipboard and save it in a temporary text file on the source VMs (passphrase.txt for example).

     

    For installing the Mobility Agent in a VM you will need to get the correct installer.

    1. Sign-in to the replication appliance.
    2. Navigate to %ProgramData%\ASR\home\svsystems\pushinstallsvc\repository.
    3. Find the installer for the source GCP VMs operating system and version. Review supported operating systems.

     

    From <https://learn.microsoft.com/en-us/azure/migrate/tutorial-migrate-gcp-virtual-machines>

     

    Follow this instructions to install on a Linux machine:

     

    1. From a terminal session, copy the installer to a local folder such as /tmp on the server that you want to protect. Replace the installer's file name with your Linux distribution's actual file name, then run the commands.

    cd/tmp ;
    tar -xvf Microsoft-ASR_UA_version_LinuxVersion_GA_date_release.tar.gz

    1. Install as follows (root account is not required, but root permissions are required):

    sudo ./install -r MS -v VmWare -d <Install Location> -q -c CSLegacy

    1. After the installation is finished, the Mobility service must be registered to the configuration server. Run the following command to register the Mobility service with the configuration server.

    /usr/local/ASR/Vx/bin/UnifiedAgentConfigurator.sh -i <CSIP> -P /var/passphrase.txt -c CSLegacy

    From <https://learn.microsoft.com/en-us/azure/site-recovery/vmware-physical-mobility-service-overview#linux-machine-1>

    Hope this helps. Feel free to ping with questions!


    If the response helped, do "Accept Answer" and up-vote it


0 additional answers

Sort by: Most helpful