Get-OMRecommendation

This cmdlet retrieves recommendations from the specified vRealize Operations Manager server.

Syntax

[-Id  <String[]>]
[-Server  <OMServer[]>]
[CommonParameters]

Parameters

Required Parameter Name Type Position Features Description
optional
Id
String[] named Filters the recommendations by ID.
optional
Server
OMServer[] named Specifies the vRealize Operations Manager server from which you want to retrieve alerts. The value can be the connection object returned by the Connect-OMServer cmdlet or the object's name, which can be the IP or DNS address of the server machine.

-AlertDefinition  <OMAlertDefinition[]>
[-Server  <OMServer[]>]
[CommonParameters]

Parameters

Required Parameter Name Type Position Features Description
required
AlertDefinition
OMAlertDefinition[] named
  • pipeline
  • Filters the recommendations by alert definition.
    optional
    Server
    OMServer[] named Specifies the vRealize Operations Manager server from which you want to retrieve alerts. The value can be the connection object returned by the Connect-OMServer cmdlet or the object's name, which can be the IP or DNS address of the server machine.

    -Alert  <OMAlert[]>
    [-Server  <OMServer[]>]
    [CommonParameters]

    Parameters

    Required Parameter Name Type Position Features Description
    required
    Alert
    OMAlert[] named
  • pipeline
  • Filters the recommendations by alert.
    optional
    Server
    OMServer[] named Specifies the vRealize Operations Manager server from which you want to retrieve alerts. The value can be the connection object returned by the Connect-OMServer cmdlet or the object's name, which can be the IP or DNS address of the server machine.

    Output

    VMware.VimAutomation.vROps.Types.V1.OMRecommendation

    Examples


    Example 1

    Get-OMRecommendation

    Lists all available recommendations.

    Example 2

    $alert = Get-OMAlert -Id
    Get-OMRecommendation -Alert $alert

    Retrieves all recommendations for a given alert.

    Related Commands

    Feedback

    Was this page helpful?