Get-OMRecommendation Command | Vmware PowerCLI Reference

Get-OMRecommendation

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

Syntax

Get-OMRecommendation
-AlertDefinition < OMAlertDefinition[] >
[-ProgressAction < ActionPreference > ]
[-Server < OMServer[] > ]
[CommonParameters]

Parameters

Required Parameter Name Type Position Features Description
required
AlertDefinition OMAlertDefinition[] named
  • pipeline
Filters the recommendations by alert definition.
optional ProgressAction ActionPreference named
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[] >
[-ProgressAction < ActionPreference > ]
[-Server < OMServer[] > ]
[CommonParameters]

Parameters

Required Parameter Name Type Position Features Description
required
Alert OMAlert[] named
  • pipeline
Filters the recommendations by alert.
optional ProgressAction ActionPreference named
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[] > ]
[-ProgressAction < ActionPreference > ]
[-Server < OMServer[] > ]
[CommonParameters]

Parameters

Required Parameter Name Type Position Features Description
optional Id String[] named
Filters the recommendations by ID.
optional ProgressAction ActionPreference named
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 <ID>
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.