This is a Powershell project to assist in SCOM Management Pack Authoring.
It works like a scaffolding engine to combine multiple .mpx fragments (A common pattern for SCOM MP authoring), and merges them into a single XML Management Pack.
Kevin Holman maintains an up-to-date library of .mpx fragments, they are normally used in VSAE (Visual Studio Authoring Extension).
These fragments are common patterns for a variety of scenarios, and can be copied and modified to suite ones needs.
Here is a download link:
https://gallery.technet.microsoft.com/SCOM-Management-Pack-VSAE-2c506737
Below are the steps to use this project:
-
Download this repository locally. Command:
git clone git@github.com:bwright86/SCOMMPAuthoring.git -
Download the SCOM VSAE Fragment Library from the below link:
https://gallery.technet.microsoft.com/SCOM-Management-Pack-VSAE-2c506737
-
Create a new folder for your MP project in the
\Management Packsfolder, name it something concise and descriptive.Note: A good rule of thumb is to use <CompanyName>.<Application>.<UniqueIdentifier>
Example:
- IBM.MQ.Discovery
- Fabrikam.Exchange.Core
- Fabrikam.Exchange.Cluster
- Etc...
-
Create a
\Fragmentsfolder in the root of your new MP project folder. -
Copy the
\Templates\Manifest.mpxfile into the root of your new MP project folder. -
Copy any number of .mpx fragments into the
\<MPProject>\Fragmentsfolder in your MP project, and modify them to suite your need. -
Assemble your new Management Pack, by running either of the below:
Execute the
BuildMP.ps1scriptOR
In VS Code, take advantage of the Task Runner, and use the configured "
Run Build Task" (Ctrl + Shift + B)Note: This requires the
Psakemodule to be installed. -
After the script complets, check the
\Outputfolder for the newly assembled SCOM Management Pack
Congratualations!!! You should have a fully assembled MP that is ready for import or signing/sealing.