A central hub of Azure cloud migration services and tools to discover, assess, and migrate workloads to the cloud.
Hello @Bingxue Zhang ,
Thank you for reaching out to Microsoft Q&A.
I understand you're hitting a "Create Deployment" failure with error code 322009 ("Replication could not be enabled") when trying to start replication for your GCP Linux VMs using the agent-based method in Azure Migrate.
This error is fairly common in agent-based (InMageRcm) flows for GCP/physical servers. It usually means the ARM deployment that creates the target Azure resources (VM, disks, NIC, etc.) is failing for a specific reason, even though discovery and the replication appliance look healthy.
Please check the inner deployment error. In the Azure portal:
- Go to your target Resource Group (rg-team-5027) → Deployments → open the failed deployment (Microsoft.MigrateV2-ExecuteMigrate-InMageRcm-20266711747).
- Review the Operation details for the exact failed resource and message (e.g., permissions, quota, policy, VM SKU, or network issues).
You can also run this Azure CLI command for a quick summary:
az deployment operation group list --resource-group your RG name --name Microsoft.MigrateV2-ExecuteMigrate-InMageRcm-20266711747 --query "[?properties.provisioningState=='Failed']" -o table
Common Fixes to try:
- Permissions: Ensure your account (and the Azure Migrate service) has Contributor on the target RG, plus Virtual Machine Contributor + Network Contributor on the target VNet.
- Quotas & SKU Availability: Check vCPU, disk, and NIC quotas in the target region. Confirm the selected target VM size is available.
- Azure Policy: Look for any deny policies affecting the target RG (regions, SKUs, tags, disk types, etc.).
- Target Settings: In the Azure Migrate project, double-check the Compute + Network settings match your source (disk layout, VNet/Subnet in the same region, supported OS disk type).
- Source Agent Health: Verify the Mobility service on the GCP Linux VMs shows a healthy heartbeat and the replication appliance is Connected.
Once you apply the fix from the detailed error, retry Enable Replication.
Reference Document:
If the inner error isn't clear or the issue continues after these checks, feel free to check the private message and share the requested details there to investigate further.
If the answer is helpful, please click "Accept Answer" it. If you have extra questions about this answer, please click "Comment".