Syntax
Get-OMRecommendation [-Id <String[]>] [-Server <OMServer[]>] [-InformationAction <ActionPreference>] [-InformationVariable <String>] [-PipelineVariable <String>] [<CommonParameters>]Related Commands
Online versionDetailed Description
This cmdlet retrieves recommendations from the specified vRealize Operations Manager server.Parameters
Name | Type | Description | Required? | Pipeline Input | Default Value |
---|---|---|---|---|---|
Alert | OMAlert[] | Filters the recommendations by alert. | true | true (ByValue) | |
AlertDefinition | OMAlertDefinition[] | Filters the recommendations by alert definition. | true | true (ByValue) | |
Id | String[] | Filters the recommendations by ID. | false | false | |
InformationAction | ActionPreference | false | false | ||
InformationVariable | String | false | false | ||
PipelineVariable | String | false | false | ||
Server | OMServer[] | 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. | false | false |
Return Type
Zero or more OMRecommendation objectsNotes
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.