Error 'The operation is not supported on the object. Changing or applying VM Storage Policies with Data Service capabilities during migrate operations is disallowed' when changing or applying storage policies to VMs
search cancel

Error 'The operation is not supported on the object. Changing or applying VM Storage Policies with Data Service capabilities during migrate operations is disallowed' when changing or applying storage policies to VMs

book

Article ID: 322325

calendar_today

Updated On: 04-10-2025

Products

VMware vSphere ESXi

Issue/Introduction

  • When migrating a VM in vCenter Server by changing it's storage policy, the process fails with following error:

Error Message: The operation is not supported on the object. Changing or applying VM Storage Policies with Data Service capabilities during migrate operations is disallowed. VM Storage Policies with Data Service capabilities can be assigned to the provisioned VM after the migrate operation has been completed and before the VM has been powered on.

  • Updating a VM's storage policy in VMware Cloud Director (VCD) results in failure, displaying 'Unable to relocate VM - The operation is not supported on the object' and the underlying svMotion task fails in the vCenter Server with error mentioned above

Environment

VMware vSphere
VMware vCenter Server
VMware Cloud Director

Cause

The reason for the error is that a storage policy was applied to the VM in question, and the storage policy was then altered or removed, but the VM still has references to the storage policy that was modified.

Resolution

Another storage policy needs to be applied to the affected virtual machine. Once this storage policy applies, all the disk should have a consistent storage policy that correlates correctly on the backend. Then reset the storage policy to datastore default if that is what the VM was originally on.

Additional Information

Impact/Risks

vMotion will not be possible until the storage policy discrepancy is resolved for the individual disks for the VM.