Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • Shutdown/Power Off VM to run at 2019-04-06 00:08: state

  • Add CPU to run at 2019-04-06 00:10: cpu count

  • Update boot delay at 2019-04-06 00:11: boot-delay

  • Add Memory to run at 2019-04-06 00:12: memory size

  • Power On VM to run at 2019-04-06 00:15: state

  • Reschedule the memory size change.

  • Cancel boot-delay change.

Anchor
Virtual-Machine-ID
Virtual-Machine-ID
Anchor
SchedulingVirtualMachineChanges-Virtual-Machine-ID
SchedulingVirtualMachineChanges-Virtual-Machine-ID
Virtual Machine ID

Optional. Get virtual machine MOREF or UUID with vss-cli compute vm ls and apply any filtering if required:

...

Once you got the target virtual machine MOREF proceed to scheduling the changes.

Anchor
Power-Off
Power-Off
Anchor
SchedulingVirtualMachineChanges-Power-Off
SchedulingVirtualMachineChanges-Power-Off
Power Off

Schedule the power off task by adding the --schedule option with the desired value to the state off command as follows:

Code Block
languagebash
linenumbersfalse
vss-cli compute vm set --schedule "2019-04-06 00:08" cranky_sinoussi state off
# or
vss-cli compute vm set --schedule "2019-04-06 00:08" vm-2183 state off

Anchor
Add-CPU
Add-CPU
Anchor
SchedulingVirtualMachineChanges-Add-CPU
SchedulingVirtualMachineChanges-Add-CPU
Add CPU

Schedule the task to add cpu with the --schedule option with the desired value to the cpu count <numCpu> command as follows:

Code Block
languagebash
linenumbersfalse
vss-cli compute vm set --schedule "2019-04-06 00:10" Frontend2 cpu count 2
# or
vss-cli compute vm set --schedule "2019-04-06 00:10" vm-2183 cpu count 2

Anchor
Update-boot-delay
Update-boot-delay
Anchor
SchedulingVirtualMachineChanges-Update-boot-delay
SchedulingVirtualMachineChanges-Update-boot-delay
Update boot delay

Schedule the task to update boot-delay with the --schedule option and the desired value to the boot-delay <milliseconds> command as follows:

Code Block
languagebash
linenumbersfalse
vss-cli compute vm set --schedule "2019-04-06 00:11" cranky_sinoussi boot-delay 10000
# or
vss-cli compute vm set --schedule "2019-04-06 00:11" vm-2183 boot-delay 10000

Anchor
Add-Memory
Add-Memory
Anchor
SchedulingVirtualMachineChanges-Add-Memory
SchedulingVirtualMachineChanges-Add-Memory
Add Memory

Schedule the task to add memory with the --schedule option with the desired value to the memory size <numCpu> command as follows:

Code Block
languagebash
linenumbersfalse
vss-cli compute vm set --schedule "2019-04-06 00:12" cranky_sinoussi memory size 2
# or
vss-cli compute vm set --schedule "2019-04-06 00:12" vm-2183 memory size 2

Anchor
Power-ON
Power-ON
Anchor
SchedulingVirtualMachineChanges-Power-ON
SchedulingVirtualMachineChanges-Power-ON
Power ON

Schedule the power on task by adding the --schedule option with the desired value to the state on command as follows:

Code Block
languagebash
linenumbersfalse
vss-cli compute vm set --schedule "2019-04-06 00:15" cranky_sinoussi state on
# or
vss-cli compute vm set --schedule "2019-04-06 00:15" vm-2183 state on

Anchor
Reschedule-Memory-Change
Reschedule-Memory-Change
Anchor
SchedulingVirtualMachineChanges-Reschedule-Memory-Change
SchedulingVirtualMachineChanges-Reschedule-Memory-Change
Reschedule Memory Change

To reschedule a scheduled update, use the command vss-cli request change set {request_id} schedule with the option -d/--date-time:

...

Code Block
languagebash
linenumbersfalse
vss-cli request change set 24542 schedule --date-time "2019-04-06T00:13:00"

Anchor
Cancel-Boot-Delay-Change
Cancel-Boot-Delay-Change
Anchor
SchedulingVirtualMachineChanges-Cancel-Boot-Delay-Change
SchedulingVirtualMachineChanges-Cancel-Boot-Delay-Change
Cancel Boot Delay Change

To cancel a scheduled update, use the command vss-cli request change set {request_id} schedule with the option -c/--cancel:

...