Contoso.se

Welcome to contoso.se! My name is Anders Bengtsson and this is my blog about Azure infrastructure and system management. I am a senior engineer in the FastTrack for Azure team, part of Azure Engineering, at Microsoft.  Contoso.se has two main purposes, first as a platform to share information with the community and the second as a notebook for myself.

Everything you read here is my own personal opinion and any code is provided "AS-IS" with no warranties.

Anders Bengtsson

MVP
MVP awarded 2007,2008,2009,2010

My Books
Service Manager Unleashed
Service Manager Unleashed
Orchestrator Unleashed
Orchestrator 2012 Unleashed
OMS
Inside the Microsoft Operations Management Suite

Get-Rule -ID (v2)

If you have a rule or monitor that are incorrect configure you can end up with a event like the one below.

Event Type: Error
Event Source: Health Service Modules
Event Category: None
Event ID: 10102
Description:
In PerfDataSource, could not resolve counter incorrectObject, incorrectCount, incorrectInstance. Module will be unloaded.
One or more workflows were affected by this.
Workflow name: MomUIGeneratedRulebe73b15420934af6ac89a227094c0ffb
Instance name: DC01
Instance ID: {0367F246-11C3-0AA4-583B-6819AB40434E}
Management group: Contoso

With only the information in the local event it can be difficult for you to troubleshoot it. To get more information about, in this case about a rule, you can first run a SQL quert in your OperationsManager database

SELECT * FROM Rules WHERE RuleName = ‘MomUIGeneratedRulebe73b15420934af6ac89a227094c0ffb’

You will then get a lot of information about the rule, copy the string in the RuleID field, and then start Command Shell. In Command Shell run the Get-Rule command, for example Get-Rule -Id FA5958CE-1EC8-A723-541A-5A1B2D48B67D

This command will return all information about this rule, for example DisplayName. You can then easy find the rule in the Operations Console and modify it.