PowerCLI Reference

Get-CIVAppStartRule

Synopsis

This cmdlet retrieves the start rules for virtual machines in a specified vApp.

Syntax

Get-CIVAppStartRule [-VApp] <CIVApp[]> [-Server <CIServer[]>] [-VM <CIVM[]>] [<CommonParameters>]

Related Commands

Online Version
Set-CIVAppStartRule

Detailed Description

This cmdlet retrieves the start rules for virtual machines in a specified vApp.

Parameters

NameTypeDescriptionRequired?Pipeline InputDefault Value
VAppCIVApp[]Specifies the vApps whose start rules you want to retrieve.trueTrue (ByValue)
ServerCIServer[]Specifies the cloud servers on which you want to run the cmdlet. If no value is given to this parameter, the command runs on the default servers. For more information about default servers, see the description of Connect-CIServer.falseFalse
VMCIVM[]Specifies the virtual machines for which to retrieve start rules.falseFalse

Return Type

Zero or more CIVAppStartRule objects

Notes

Examples

-------------------------- Example 1 --------------------------

$myVApp = Get-CIVApp -Name 'MyVApp'
Get-CIVAppStartRule -VApp $myVApp

Retrieves all start rules for the specified vApp.

-------------------------- Example 2 --------------------------

$myVApp = Get-CIVApp -Name 'MyVApp'
$VMinVApp = Get-CIVM 'MyVM' -VApp $myVApp
$myVApp | Get-CIVAppStartRule -VM $VMinVApp

Retrieves start rules for the specified virtual machine.


Copyright © VMware, Inc. All rights reserved.