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 


You can READ objects by using Get-CIVM cmdlet. See example below:
Get-CIVM

Step 2: Run commands from the CRUD group 

You can CREATE objects by using New-CIVM cmdlet. See example below:

$templateVM = Get-CIVMTemplate -Name "myTemplateVM"
Get-CIVApp "myCIVApp" | New-CIVM -Name "myVM" -VMTemplate $templateVM

Step 3: Explore More Related Commands: 


Get-CIVMTemplate This cmdlet retrieves the virtual machine templates in the cloud.
Restart-CIVM This cmdlet resets the specified virtual machine.
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.
Feedback

Was this page helpful?