Indicates that the command returns immediately without waiting for the task to complete. If one port group and more than one network adapters are specified, all network adapters are migrated to the specified port group. The number of port groups should be one, or equal to the number of network adapters specified. Specifies the destination port groups for the specified virtual machine network adapters. Specifies the virtual machine network adapters you want to migrate to a new port group. This parameter accepts Thin, Thick, and EagerZeroedThick values. This parameter is applicable only when moving a virtual machine to a different datastore, using the Datastore parameter. Specifies a new storage format for the hard disk of the virtual machine you want to move. When you pass a datastore cluster to the Datastore parameter, you can also set the AdvancedOption parameter. Specifies the datastore or datastore cluster where you want to move the virtual machines. If the value is $false, the cmdlet runs without asking for user confirmation. If the value is $true, indicates that the cmdlet asks for confirmation before running. You can set only one SDRS VM disk anti-affinity rule. To indicate that the VM disks should be stored on different datastores, pass an SdrsVMDiskAntiAffinityRule object to the parameter. You can set more than one Storage DRS (SDRS) VM anti-affinity rules. To indicate that VMs should be stored on different datastores, pass an SdrsVMAntiAffinityRule object to the parameter. Specifies one or more rules for the placement of the virtual machines that you want to relocate. This parameter is only applicable when a DatastoreCluster object is passed to the Datastore parameter. Passing values to this parameter through a pipeline is deprecated and will be disabled in a future release. The "vmFolder" is a system folder and is guaranteed to exist. If a datacenter is specified for the Destination parameter, the virtual machines are moved to the datacenter's "vmFolder" folder. Specifies a folder, host, cluster, or a resource pool where you want to move the virtual machines. Specifies the virtual machines you want to move to another location. When you move a virtual machine from one vCenter Server system to another, only hosts are supported as compute destinations and only datastores are supported as storage destinations. To specify a server different from the default one, use the Server parameter. You can move virtual machines between vCenter Server systems of vSphere version 6.0 and later. You can move storage and compute resources simultaneously.
When moving virtual machines that are powered on, vMotion is used. If the virtual machine is outside the non-DRS cluster, you need to specify a virtual machine host in that cluster as destination. Moving a virtual machine to the top level of a non-DRS cluster is only possible if the virtual machine is in a resource pool in that cluster. You can move a virtual machine to a DRS cluster.
The destination must be a folder, host, cluster, or a resource pool. SyntaxMove-VM ] ĭetailed DescriptionThis cmdlet moves a virtual machine to the location that is specified by the Destination or the Datastore parameters. Move-VM - PowerCLI Help Reference PowerCLI Reference Move-VM SynopsisThis cmdlet moves virtual machines to another location.