PowerCLI Reference

Get-CIVAppStartRule

Synopsis

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

Syntax

Get-CIVAppStartRule [-VApp] <CIVApp[]> [-VM <CIVM[]>] [-Server <CIServer[]>] [-InformationAction <ActionPreference>] [-InformationVariable <String>] [-PipelineVariable <String>] [<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)
InformationActionActionPreferencefalsefalse
InformationVariableStringfalsefalse
PipelineVariableStringfalsefalse
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.