Share via


Visual Studio Management Pack Authoring Series - Part 7 - Create State Views

Right Click Dashboards and choose Add, New Item

Add Empty Management Pack Fragment and choose a name of GDMyAppStateViews

Copy and Paste this code between the <ManagementPackFragment></ManagementPackFragment> tags

You'll need to do a find \ replace for 2 items. The first changes the class namespace for the application class and discovery. The second changes the Display Name. 

1. Class Namespace and Discovery

Find What: GD.Application

Replace With: GD.MyApp

2. Display Name

Find What: GD Application

Replace With: GD My App

We should now be able to test this:

1. Build the Project and make sure it builds successfully.

2. Click Start to export the Management Pack to the default Management Group

3. Validate the folder and views in the Monitoring Tab

 

Disclaimer:
All information on this blog is provided on an as-is basis with no warranties and for informational purposes only. Use at your own risk.

The opinions and views expressed in this blog are those of the author and do not necessarily state or reflect those of my employer.

Comments

  • Anonymous
    August 25, 2015
    As promised, here is a run through of authoring Management Packs using Visual Studio and the Operations