...
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 IDOptional. 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 |
---|
| SchedulingVirtualMachineChanges-Power-Off |
---|
| SchedulingVirtualMachineChanges-Power-Off |
---|
|
Power OffSchedule the power off task by adding the --schedule
option with the desired value to the state off
command as follows:
Code Block |
---|
language | bash |
---|
linenumbers | false |
---|
|
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 |
---|
| SchedulingVirtualMachineChanges-Add-CPU |
---|
| SchedulingVirtualMachineChanges-Add-CPU |
---|
|
Add CPUSchedule the task to add cpu with the --schedule
option with the desired value to the cpu count <numCpu>
command as follows:
Code Block |
---|
language | bash |
---|
linenumbers | false |
---|
|
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 delaySchedule the task to update boot-delay
with the --schedule
option and the desired value to the boot-delay <milliseconds>
command as follows:
Code Block |
---|
language | bash |
---|
linenumbers | false |
---|
|
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 |
---|
| SchedulingVirtualMachineChanges-Add-Memory |
---|
| SchedulingVirtualMachineChanges-Add-Memory |
---|
|
Add MemorySchedule the task to add memory with the --schedule
option with the desired value to the memory size <numCpu>
command as follows:
Code Block |
---|
language | bash |
---|
linenumbers | false |
---|
|
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 |
---|
| SchedulingVirtualMachineChanges-Power-ON |
---|
| SchedulingVirtualMachineChanges-Power-ON |
---|
|
Power ONSchedule the power on task by adding the --schedule
option with the desired value to the state on
command as follows:
Code Block |
---|
language | bash |
---|
linenumbers | false |
---|
|
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 ChangeTo reschedule a scheduled update, use the command vss-cli request change set {request_id} schedule
with the option -d/--date-time
:
...
Code Block |
---|
language | bash |
---|
linenumbers | false |
---|
|
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 ChangeTo cancel a scheduled update, use the command vss-cli request change set {request_id} schedule
with the option -c/--cancel
:
...