Get-OMRecommendation Command | Vmware PowerCLI Reference

Get-OMRecommendation

This cmdlet retrieves recommendations from the specified VMware Aria Operations server.

Syntax

Get-OMRecommendation
-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 VMware Aria Operations 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.
Get-OMRecommendation
-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 VMware Aria Operations 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.
Get-OMRecommendation
[-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 VMware Aria Operations 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 &#60ID&#62
Get-OMRecommendation -Alert $alert

Retrieves all recommendations for a given alert.

Related Commands

OMRecommendation

This cmdlet retrieves recommendations from the specified VMware Aria Operations server.