An Azure service that runs native VMware workloads on Azure.
Hi Nimish Todi,
Yes, this behavior has been seen occasionally with HCX RAV migrations where the workflow becomes orphaned internally and remains stuck in MIGRATION_CANCELLING indefinitely. In AVS environments, especially behind the Apache proxy/auth layer, some cleanup APIs may return HTTP 500 even though authentication is valid.
A few important points:
• If:
- progress.state.isDone = false
progress.isCancelled = 1
cancel requests return HTTP 202 but nothing changes
cleanup/removal APIs return HTTP 500
then the migration workflow is usually stuck inside the HCX Mobility Service database/task engine rather than actively processing.
What is typically safe to try before restarting HCX Manager:
Verify there are no active replication sessions/tasks still attached:
Check Replication Service state
Check vSphere recent tasks/events
Verify no active VR/NFC sessions remain
Try querying the mobility group/task state:
/hybridity/api/jobs
/hybridity/api/migrations?action=query
Sometimes the migration object is blocked by a child workflow still marked RUNNING.
Attempt force cleanup from the Mobility API:
POST /hybridity/api/mobility/migrations/cleanup
or:
POST /hybridity/api/mobility/migrations/remove
However, on AVS these frequently fail with HTTP 500 once the state machine is already corrupted/stuck.
Check whether the migration still appears in:
HCX UI Mobility tab
/common/services
replication statistics APIs
If everything else is already torn down, the issue is likely only metadata persistence.
Unfortunately, on AVS there is usually no supported customer-side database cleanup access. VMware/Microsoft support generally handles this by:
restarting specific HCX services
clearing orphaned workflow entries
or performing backend DB cleanup
A full HCX Manager reboot is usually considered last resort because it impacts ongoing migrations and tunnels.
At this stage, if the migration has remained in MIGRATION_CANCELLING for ~48 hours with repeated no-op 202 responses and HTTP 500 cleanup failures, opening a Microsoft AVS support ticket is probably the supported path rather than attempting unsupported manager-side modifications.
If my answer is useful for you, please hit Accept Answer to support me.
Thank you so much.