Create SCOM Containment Relationships in VSAE

Create SCOM Containment Relationships in VSAE

Containments help you populate groups as well as structure Distributed Applications (DAs).  I.e. One containment could be “Application (DA) contains Websites” and you would compliment this with another containment “Websites contains Website”.  This would give you something similar to

Image from SystemCentreCentral

The logic is the same for any object, computers, Databases, disks, etc etc.

You can setup Containments using a blank management pack fragment. To add these to an existing solution, you will need to

  • Add a new empty management pack fragment, I  normally call this “Containments.mpx”.
  • Enter the below text (not including the part)
<ManagementPackFragment SchemaVersion="2.0" xmlns:xsd="">
        <RelationshipType ID="Kofax.Capture.ApplicationContainsDatabases" Base="System!System.Containment" Abstract="false" Accessibility="Public">
          <Source ID="Source" Type="Kofax.Capture.Application"/>
          <Target ID="Target" Type="Kofax.Capture.Databases"/>
      <RelationshipType ID="Kofax.Capture.DatabasesContainsDatabase" Base="System!System.Containment" Abstract="false" Accessibility="Public">
          <Source ID="Source" Type="Kofax.Capture.Databases"/>
          <Target ID="Target" Type="MSL!Microsoft.SQLServer.Database"/>     
    <LanguagePack ID="ENU" IsDefault="true">
        <DisplayString ElementID="Kofax.Capture.ApplicationContainsDatabases">
          <Name>Application Contains Databases</Name>
         <DisplayString ElementID="Kofax.Capture.DatabasesContainsDatabase">
          <Name>Application Contains Databases</Name>

The above Shows the Kofax Application contains Databases, which in turn contains Database. The important bits are the Relationship Type, Source and Target IDs.

RelationshipType ID This is used when to refer to this relationship in any group discovery

Source This is the type of object you are containing in your group.  i.e. a windows Computer, Database, Website, local disk etc.

Target This is the group that holds the objects i.e. Kofax.Databases.

Like other fragments, you need to have display strings for the relationships, but they just work as normal