Get-OMRecommendation
This cmdlet retrieves recommendations from the specified vRealize Operations Manager server.
Syntax
Parameters
Required | Parameter Name | Type | Position | Features | Description |
---|---|---|---|---|---|
optional |
|
String[] | named |
|
Filters the recommendations by ID. | optional |
|
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. |
Parameters
Required | Parameter Name | Type | Position | Features | Description |
---|---|---|---|---|---|
required |
|
OMAlertDefinition[] | named |
|
Filters the recommendations by alert definition. | optional |
|
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. |
Parameters
Required | Parameter Name | Type | Position | Features | Description |
---|---|---|---|---|---|
required |
|
OMAlert[] | named |
|
Filters the recommendations by alert. | optional |
|
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
OMRecommendation
This cmdlet retrieves recommendations from the specified vRealize Operations Manager server.