A central hub of Azure cloud migration services and tools to discover, assess, and migrate workloads to the cloud.
Hello @Kum Wing Kit ,
Thank you for reaching out to Microsoft Q&A.
Yes, you can treat an Azure VM as a physical server (or other-cloud VM) when testing the agent-based migration path with Azure Site Recovery / Azure Migrate. This is a supported approach.
When installing the Mobility service, use the VMware platform parameter. Microsoft’s documentation specifically notes:
“If you're treating Azure VMs as physical machines, specify VMware.”
Recommended:
For the most reliable results on an Azure VM, do a manual installation rather than relying on push install:
- Download the correct Mobility service installer from your replication appliance (Configuration Server / Process Server).
- Run the installer with the VMware platform flag. Example (modernized / CSPrime):
-
UnifiedAgentInstaller.exe /Platform vmware /Silent /Role MS /CSType CSPrime /InstallLocation "C:\Program Files (x86)\Microsoft Azure Site Recovery"
1. Complete the registration step with the appliance using the configurator and passphrase.
If you’re still seeing the internal error
- Check the logs under C:\ProgramData\ASRSetupLogs.
- Confirm no leftover Mobility service components remain from a previous attempt (uninstall via Control Panel or the MSI command in the docs).
- Verify prerequisites (admin rights, required ports, antivirus exclusions for the ASR folders, supported OS, sufficient disk space, and runtimes such as .NET / Visual C++ redistributables).
**Reference Document:**
- Mobility service overview & installation (includes the “treat Azure VMs as physical” note): [https://learn.microsoft.com/en-us/azure/site-recovery/vmware-physical-mobility-service-overview](https://learn.microsoft.com/en-us/azure/site-recovery/vmware-physical-mobility-service-overview)
- Troubleshoot Mobility Service push installation: [https://learn.microsoft.com/en-us/azure/site-recovery/vmware-azure-troubleshoot-push-install](https://learn.microsoft.com/en-us/azure/site-recovery/vmware-azure-troubleshoot-push-install)
- Agent-based migration architecture: [https://learn.microsoft.com/en-us/azure/migrate/agent-based-migration-architecture](https://learn.microsoft.com/en-us/azure/migrate/agent-based-migration-architecture)
- Migrate machines as physical servers: [https://learn.microsoft.com/en-us/azure/migrate/tutorial-migrate-physical-virtual-machines](https://learn.microsoft.com/en-us/azure/migrate/tutorial-migrate-physical-virtual-machines)
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".