CIVM Category
Cmdlets are usually implemented around resource operations. The four basic operations are CREATE, READ, UPDATE and DELETE. This set of operations is known as CRUD. Most of the cmdlets support CRUD which are respectively cmdlets that start with the New/Get/Set/Remove cmdlet verbs but they also may have additional operations
Step 1: Retrieve a object by running a Get command
# Gets all visible virtual machines for the current user.
Get-CIVM
Step 2 : Run commands from the CRUD group
# Retrieves a virtual machine template named "myTemplateVM", creates a cloud virtual machine named "myVM" from the template, and adds it to a cloud vApp named "myCIVApp".
$templateVM = Get-CIVMTemplate -Name "myTemplateVM" Get-CIVApp "myCIVApp" | New-CIVM -Name "myVM" -VMTemplate $templateVM
# Resets the specified virtual machine.
$myVM = Get-CIVM -Name 'MyVM' Restart-CIVM $myVM
Step 3: Explore More Related Commands:
Get-CIVMTemplate | This cmdlet retrieves the virtual machine templates in the cloud. |
Restart-CIVMGuest | This cmdlet restarts the guest operating system of the specified virtual machine. |
Start-CIVM | This cmdlet powers on the specified virtual machine. |
Stop-CIVM | This cmdlet powers off the specified virtual machine. |
Stop-CIVMGuest | This cmdlet shuts down the guest operating system of the specified virtual machine. |
Suspend-CIVM | This cmdlet suspends the specified virtual machine. |