Get-CIVAppStartRule

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

Syntax

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

Parameters

Required Parameter Name Type Position Features Description
required
VApp
CIVApp[] named
  • pipeline
  • Specifies the vApps whose start rules you want to retrieve.
    optional
    Server
    CIServer[] named Specifies the cloud servers on which you want to run the cmdlet. If no value is provided or $null value is passed to this parameter, the command runs on the default servers. For more information about default servers, see the description of Connect-CIServer.
    optional
    VM
    CIVM[] named Specifies the virtual machines for which to retrieve start rules.

    Output

    VMware.VimAutomation.Cloud.Types.V1.CIVAppStartRule

    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.

    Related Commands

    Feedback

    Was this page helpful?