Before you begin: Before creating a new discovery you need to decide on a discovery ID and a display name. You should also think about what properties you should discover for the class.
For more information, consult the Management Pack Content document, section Workflow/Element naming.
If the project is not open in Visual Studio, open it.
Find the folder for the class that you want to discover.
Right-click the folder and choose
In the list, select
Empty Management Pack Fragment.
Enter a name for the fragment. This should be the same the folder with the addition of
Discovery. So if the folder name is
ApplicationServersGroup the new fragment should be named
Add. The fragment is created and opened.
Right-click between the
<ManagementPackFragment> tags and select
MPDevToolkit\Discoveries\Group. Depending on how many different classes that should be populated into this group, select the corresponding snippet.
The snippet is inserted.
Enter the MPID and press tab. Enter the description part of the group name. This should be the same name as the fragment where the group was defined. Press
Enter the description part of the class ID (MPID is already filled in). The Windows Computer object which hosts instances of this class will be be populated into the group. Press
Repeat this for each class that is used to popluate the group.
enter to stop editing the snippet.
Check the display strings of the discovery, Display Name and Description, to see that they look correct.
The discovery is now done. Save the file/project.