Skip to content

New-PveNodesMigrateall

Migrate all VMs and Containers.

API: POST /nodes/{node}/migrateall, Proxmox VE API viewer

New-PveNodesMigrateall
[-PveTicket <PveTicket>]
[-MaxWorkers <int>]
[-Maxworkers2 <int>]
-Node <string>
-Target <string>
[-Vms <string>]
[-WithLocalDisks <bool>]
[<CommonParameters>]
Parameter Type Required Description
-PveTicket PveTicket No Ticket data connection.
-MaxWorkers int No Maximal number of parallel migration job. If not set, uses’max_workers’ from datacenter.cfg. One of both must be set!
-Maxworkers2 int No Maximal number of parallel migration job. If not set, uses’max_workers’ from datacenter.cfg. One of both must be set!Deprecated, use ‘max-workers’ instead.
-Node string Yes The cluster node name.
-Target string Yes Target node.
-Vms string No Only consider Guests with these IDs.
-WithLocalDisks bool No Enable live storage migration for local disk.

Every parameter also binds by property name from the pipeline, so an object with node and vmid properties (the output of Get-PveGuest, for one) fills -Node and -Vmid. Without -PveTicket the cmdlet uses the last connection, see Connection.

A PveResponse: the data returned by Proxmox VE is in .Response.data, the outcome in .IsSuccessStatusCode. See Results and Errors.