Get-OMRecommendation
This cmdlet retrieves recommendations from the specified VMware Aria Operations server.
Syntax
-AlertDefinition
< OMAlertDefinition[] >
[-ProgressAction
< ActionPreference > ]
[-Server
< OMServer[] > ]
[CommonParameters]
Parameters
Required | Parameter Name | Type | Position | Features | Description |
---|---|---|---|---|---|
required
|
AlertDefinition | OMAlertDefinition[] | named |
|
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. |
-Alert
< OMAlert[] >
[-ProgressAction
< ActionPreference > ]
[-Server
< OMServer[] > ]
[CommonParameters]
Parameters
Required | Parameter Name | Type | Position | Features | Description |
---|---|---|---|---|---|
required
|
Alert | OMAlert[] | named |
|
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. |
[-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.OMRecommendationExamples
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.