%3CLINGO-SUB%20id%3D%22lingo-sub-1535627%22%20slang%3D%22en-US%22%3EExploring%20Azure%20SQL%20Managed%20Instance%20Management%20Pack%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1535627%22%20slang%3D%22en-US%22%3E%3CP%3E%3CFONT%20size%3D%224%22%3EWe%20released%20%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fsql-server%2Freleased-azure-sql-managed-instance-management-pack-7-0-22-0%2Fba-p%2F1503931%22%20target%3D%22_blank%22%20rel%3D%22noopener%22%3ESystem%20Center%20Operations%20Manager%20Management%20Pack%20for%20Azure%20SQL%20Managed%20Instance%20%3C%2FA%3Erecently.%20It%20provides%20comprehensive%20monitoring%20capabilities%20for%20SQL%20Managed%20Instance.%20If%20you%20have%20a%20hybrid%20data%20environment%2C%20you%20can%20use%20a%20single%20monitoring%20solution%2C%20SCOM%2C%20to%20monitor%20all%20your%20data%20assets%20as%20we%20already%20have%20management%20packs%20for%20SQL%20Server%20and%20Azure%20SQL%20DB.%3C%2FFONT%3E%3C%2FP%3E%0A%3CP%20style%3D%22margin%3A%200in%3B%20font-family%3A%20Calibri%3B%20font-size%3A%2011.0pt%3B%22%3E%26nbsp%3B%3C%2FP%3E%0A%3CH2%20id%3D%22toc-hId--1299024427%22%20id%3D%22toc-hId--1299024426%22%3E%3CFONT%20size%3D%224%22%3EDiscovery%3C%2FFONT%3E%3C%2FH2%3E%0A%3CP%3E%3CFONT%20size%3D%224%22%3EAfter%20you%20install%20the%20management%20pack%20(MP)%2C%20there%20are%20two%20templates%20to%20get%20you%20started%3A%20Manual%20and%20Automatic%20Discovery.%20As%20the%20names%20suggest%2C%20you%20can%20either%20discover%20your%20instances%20by%20adding%20them%20manually%20or%20automatically%20discover%20instances%20in%20a%20given%20subscription.%20Both%20options%20have%20wizards%20that%20walk%20you%20through%20this%20setup.%20We%20will%20not%20explore%20them%20in%20this%20post%20as%20the%20instructions%20in%20the%3C%2FFONT%3E%3CSPAN%20style%3D%22font-size%3A%20large%3B%22%3E%26nbsp%3B%3C%2FSPAN%3E%3CFONT%20size%3D%224%22%3E%3CA%20href%3D%22https%3A%2F%2Fwww.microsoft.com%2Fen-us%2Fdownload%2Fdetails.aspx%3Fid%3D101203%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%22%3EMP%20guide%3C%2FA%3E%3C%2FFONT%3E%3CSPAN%20style%3D%22font-size%3A%20large%3B%20font-family%3A%20inherit%3B%22%3E%20are%20very%20detailed.%20I%20just%20want%20to%20point%20out%20that%20you%20can%20use%20either%20%3C%2FSPAN%3E%3CSTRONG%3E%3CSPAN%20style%3D%22font-size%3A%20large%3B%20font-family%3A%20inherit%3B%22%3EAzure%20Active%20Directory%20(AAD)%3C%2FSPAN%3E%3C%2FSTRONG%3E%3CSPAN%20style%3D%22font-size%3A%20large%3B%20font-family%3A%20inherit%3B%22%3E%20or%20%3C%2FSPAN%3E%3CSTRONG%3E%3CSPAN%20style%3D%22font-size%3A%20large%3B%20font-family%3A%20inherit%3B%22%3ESQL%20Authentication%3C%2FSPAN%3E%3C%2FSTRONG%3E%3CSPAN%20style%3D%22font-size%3A%20large%3B%20font-family%3A%20inherit%3B%22%3E%20to%20connect%20to%20the%20instances.%20You%20can%20use%20a%20connection%20with%20sysadmin%20rights%20or%20there%20is%20an%20option%20to%20use%20the%20least%20amount%20of%20privileges%20to%20monitor%20the%20product%20just%20like%20SQL%20Server%20MP.%20This%20is%20also%20explained%20in%20detail%20in%20the%20MP%20guide.%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%20style%3D%22margin%3A%200in%3B%20font-family%3A%20Calibri%3B%20font-size%3A%2011.0pt%3B%22%3E%26nbsp%3B%3C%2FP%3E%0A%3CH2%20id%3D%22toc-hId-1188488406%22%20id%3D%22toc-hId-1188488407%22%3E%3CFONT%20size%3D%224%22%3EMonitoring%3C%2FFONT%3E%3C%2FH2%3E%0A%3CP%3E%3CFONT%20size%3D%224%22%3EOnce%20you%20complete%20all%20the%20steps%20in%20the%20wizard%2C%20you%20will%20be%20able%20to%20see%20the%20instances%20in%20the%20SCOM%20dashboard%20under%20Monitoring.%20Under%20Microsoft%20SQL%20Server%20folder%2C%20you'll%20see%20a%20subfolder%20for%20Microsoft%20Azure%20SQL%20Managed%20Instance.%3C%2FFONT%3E%3C%2FP%3E%0A%3CP%3E%3CFONT%20size%3D%224%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22MIMP1.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F206816iEF17FBD5169D20BB%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20title%3D%22MIMP1.png%22%20alt%3D%22MIMP1.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FFONT%3E%3C%2FP%3E%0A%3CH3%20id%3D%22toc-hId-1879049880%22%20id%3D%22toc-hId-1879049881%22%3E%3CFONT%20size%3D%224%22%3ENavigate%20to%20Microsoft%20Azure%20SQL%20Managed%20Instance%20-%26gt%3B%20Managed%20Instances%20-%26gt%3B%20Database%20Engines%3C%2FFONT%3E%3C%2FH3%3E%0A%3CP%3E%3CFONT%20size%3D%224%22%3EYou%20can%20see%20the%20instances%20listed%20with%20some%20details.%20You%20can%20select%20which%20columns%20to%20display%20here%20by%20right-clicking%20and%20selecting%20Personalize%20View%20from%20the%20list.%20If%20you%20are%20using%20geo-replication%2C%20you%20will%20see%20that%20%3CSTRONG%3EGeo-Replication%20Replica%20Role%3C%2FSTRONG%3E%20is%20listed%20in%20Detailed%20View.%20It%20can%20be%20Primary%20or%20Secondary%20(or%20blank%20if%20this%20instance%20is%20not%20participating%20in%20geo-replication).%3C%2FFONT%3E%3C%2FP%3E%0A%3CP%3E%3CFONT%20size%3D%224%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22MIMP2.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F206817i3667BC2D364D1469%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20title%3D%22MIMP2.png%22%20alt%3D%22MIMP2.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FFONT%3E%3C%2FP%3E%0A%3CP%3E%3CFONT%20size%3D%224%22%3EAs%20usual%2C%20you%20can%20drill%20down%20by%20double-clicking%20on%20the%20instance%20rows.%20This%20will%20take%20you%20to%20the%20list%20of%20individual%20monitors%20and%20their%20status.%20Most%20of%20these%20are%20the%20monitors%20you%20are%20familiar%20with%20from%20SQL%20Server%20MP.%3C%2FFONT%3E%3C%2FP%3E%0A%3CP%3E%3CFONT%20size%3D%224%22%3EThere%20is%20a%20brand%20new%20monitor%20called%20%3CSTRONG%3EInstance%20Free%20Storage%20Space%20Left%3C%2FSTRONG%3E.%20It%20uses%20percentages%20and%20is%20set%20to%20warn%20if%20it%20goes%20below%2020%25%20but%2C%20of%20course%2C%20it%20is%20customizable%20just%20like%20all%20the%20other%20monitors.%20It%20also%20shows%20the%20actual%20data%20in%20MB.%3C%2FFONT%3E%3C%2FP%3E%0A%3CP%3E%3CFONT%20size%3D%224%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22MIMP3.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F206819i228876245A049BF0%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20title%3D%22MIMP3.png%22%20alt%3D%22MIMP3.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FFONT%3E%3C%2FP%3E%0A%3CH3%20id%3D%22toc-hId-71595417%22%20id%3D%22toc-hId-71595418%22%3E%3CFONT%20size%3D%224%22%3ENavigate%20to%20Microsoft%20Azure%20SQL%20Managed%20Instance%20-%26gt%3B%20Managed%20Instances%20-%26gt%3B%20Databases%3C%2FFONT%3E%3C%2FH3%3E%0A%3CP%3E%3CFONT%20size%3D%224%22%3EIf%20you%20double-click%20on%20a%20geo-replicated%20database%2C%20you%20will%20see%20the%20new%20monitor%2C%20%3CSTRONG%3EGeo-Replication%20Status%3C%2FSTRONG%3E%2C%20under%20Availability.%20All%20the%20information%20is%20on%20the%20right%20hand%20side.%20As%20you%20can%20see%20it%20can%20be%20in%20one%20of%20three%20states%3A%3C%2FFONT%3E%3C%2FP%3E%0A%3CUL%20type%3D%22disc%22%3E%0A%3CLI%3E%3CFONT%20size%3D%224%22%3ECATCH_UP%3A%20This%20is%20the%20healthy%20state.%3C%2FFONT%3E%3C%2FLI%3E%0A%3CLI%3E%3CFONT%20size%3D%224%22%3ESEEDING%3A%20Seeding%20is%20happening%20but%20until%20it%20competes%2C%20you%20can't%20connect%20to%20the%20secondary%20database.%3C%2FFONT%3E%3C%2FLI%3E%0A%3CLI%3E%3CFONT%20size%3D%224%22%3EPENDING%3A%20Not%20in%20an%20active%20continuous-copy%20relationship.%20Usually%20indicates%20bandwidth%20related%20issues.%3C%2FFONT%3E%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%3E%3CFONT%20size%3D%224%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22MIMP4.png%22%20style%3D%22width%3A%20976px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F206820i4BDC212651261DD9%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20title%3D%22MIMP4.png%22%20alt%3D%22MIMP4.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FFONT%3E%3C%2FP%3E%0A%3CP%3E%3CFONT%20size%3D%224%22%3EAlso%20on%20the%20Databases%20view%2C%20right-click%20on%20a%20geo-replicated%20database%20and%20select%20Open-%26gt%3BPerformance%20View.%20You%20will%20find%20the%20new%20counter%20%3CSTRONG%3EGeo-Replication%20Lag%20(sec)%3C%2FSTRONG%3E%20along%20with%20other%20counters.%20This%20rule%20collects%20performance%20metric%20for%20the%20primary%20database%20only%20and%20shows%20the%20time%20difference%20between%20transactions%20committed%20on%20primary%20database%20and%20persisted%20on%20secondary%20database.%3C%2FFONT%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH3%20id%3D%22toc-hId--1735859046%22%20id%3D%22toc-hId--1735859045%22%3E%3CFONT%20size%3D%224%22%3EOther%20Views%3C%2FFONT%3E%3C%2FH3%3E%0A%3CP%3E%3CFONT%20size%3D%224%22%3EYou%20can%20also%20explore%20%3CSTRONG%3EManaged%20Instance%20Agents%3C%2FSTRONG%3E%20and%20%3CSTRONG%3EMemory-Optimized%20Data%3C%2FSTRONG%3E%20folders%20for%20monitors%20specific%20to%20those%20areas.%20We%20will%20not%20explore%20those%20in%20this%20post.%3C%2FFONT%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CFONT%20size%3D%224%22%3E%3CSTRONG%3ESummary%20Dashboard%3C%2FSTRONG%3E%20under%20Microsoft%20Azure%20SQL%20Managed%20Instance%20provides%20the%20usual%20status-at-a-glance%20view%20of%20everything.%20Just%20like%20other%20SQL%20MPs%2C%20you%20can%20drill%20down%20to%20get%20to%20specific%20monitors%2Frules%20and%20customize%20it%20by%20adding%20or%20removing%20tiles%20to%20fit%20your%20needs.%3C%2FFONT%3E%3C%2FP%3E%0A%3CP%3E%3CFONT%20size%3D%224%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22MIMP5.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F206821i8EEC1857725FFF6F%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20title%3D%22MIMP5.png%22%20alt%3D%22MIMP5.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FFONT%3E%3C%2FP%3E%0A%3CP%3E%3CFONT%20size%3D%224%22%3E%3CSTRONG%3EActive%20Alerts%3C%2FSTRONG%3E%20view%20under%20Microsoft%20Azure%20SQL%20Managed%20Instance%20lets%20you%20view%20all%20your%20active%20alerts%20in%20a%20single%20place%20just%20like%20other%20SQL%20MPs.%3C%2FFONT%3E%3C%2FP%3E%0A%3CP%3E%3CFONT%20size%3D%224%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22MIMP6.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F206822i46C8398D0A1559F1%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20title%3D%22MIMP6.png%22%20alt%3D%22MIMP6.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FFONT%3E%3C%2FP%3E%0A%3CH2%20id%3D%22toc-hId--1746362150%22%20id%3D%22toc-hId--1746362149%22%3E%3CFONT%20size%3D%224%22%3ESummary%3C%2FFONT%3E%3C%2FH2%3E%0A%3CP%3E%3CFONT%20size%3D%224%22%3EAzure%20SQL%20Managed%20Instance%20Management%20Pack%20is%20very%20similar%20to%20other%20SQL%20MPs%20but%20also%20introduces%20product%20specific%20monitors%20and%20rules.%3C%2FFONT%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-TEASER%20id%3D%22lingo-teaser-1535627%22%20slang%3D%22en-US%22%3E%3CP%3E%3CFONT%20size%3D%224%22%3EWe%20released%20-ERR%3AREF-NOT-FOUND-System%20Center%20Operations%20Manager%20Management%20Pack%20for%20Azure%20SQL%20Managed%20Instance%20recently.%20It%20provides%20comprehensive%20monitoring%20capabilities%20for%20SQL%20Managed%20Instance.%20If%20you%20have%20a%20hybrid%20data%20environment%2C%20you%20can%20use%20a%20single%20monitoring%20solution%2C%20SCOM%2C%20to%20monitor%20all%20your%20data%20assets%20as%20we%20already%20have%20management%20packs%20for%20SQL%20Server%20and%20Azure%20SQL%20DB.%20Let's%20look%20at%20it%20more%20closely.%3C%2FFONT%3E%3C%2FP%3E%3C%2FLINGO-TEASER%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1535627%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3ESQLServerTiger%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
Microsoft

We released System Center Operations Manager Management Pack for Azure SQL Managed Instance recently. It provides comprehensive monitoring capabilities for SQL Managed Instance. If you have a hybrid data environment, you can use a single monitoring solution, SCOM, to monitor all your data assets as we already have management packs for SQL Server and Azure SQL DB.

 

Discovery

After you install the management pack (MP), there are two templates to get you started: Manual and Automatic Discovery. As the names suggest, you can either discover your instances by adding them manually or automatically discover instances in a given subscription. Both options have wizards that walk you through this setup. We will not explore them in this post as the instructions in the MP guide are very detailed. I just want to point out that you can use either Azure Active Directory (AAD) or SQL Authentication to connect to the instances. You can use a connection with sysadmin rights or there is an option to use the least amount of privileges to monitor the product just like SQL Server MP. This is also explained in detail in the MP guide.

 

Monitoring

Once you complete all the steps in the wizard, you will be able to see the instances in the SCOM dashboard under Monitoring. Under Microsoft SQL Server folder, you'll see a subfolder for Microsoft Azure SQL Managed Instance.

MIMP1.png

Navigate to Microsoft Azure SQL Managed Instance -> Managed Instances -> Database Engines

You can see the instances listed with some details. You can select which columns to display here by right-clicking and selecting Personalize View from the list. If you are using geo-replication, you will see that Geo-Replication Replica Role is listed in Detailed View. It can be Primary or Secondary (or blank if this instance is not participating in geo-replication).

MIMP2.png

As usual, you can drill down by double-clicking on the instance rows. This will take you to the list of individual monitors and their status. Most of these are the monitors you are familiar with from SQL Server MP.

There is a brand new monitor called Instance Free Storage Space Left. It uses percentages and is set to warn if it goes below 20% but, of course, it is customizable just like all the other monitors. It also shows the actual data in MB.

MIMP3.png

Navigate to Microsoft Azure SQL Managed Instance -> Managed Instances -> Databases

If you double-click on a geo-replicated database, you will see the new monitor, Geo-Replication Status, under Availability. All the information is on the right hand side. As you can see it can be in one of three states:

  • CATCH_UP: This is the healthy state.
  • SEEDING: Seeding is happening but until it competes, you can't connect to the secondary database.
  • PENDING: Not in an active continuous-copy relationship. Usually indicates bandwidth related issues.

MIMP4.png

Also on the Databases view, right-click on a geo-replicated database and select Open->Performance View. You will find the new counter Geo-Replication Lag (sec) along with other counters. This rule collects performance metric for the primary database only and shows the time difference between transactions committed on primary database and persisted on secondary database.

 

Other Views

You can also explore Managed Instance Agents and Memory-Optimized Data folders for monitors specific to those areas. We will not explore those in this post.

 

Summary Dashboard under Microsoft Azure SQL Managed Instance provides the usual status-at-a-glance view of everything. Just like other SQL MPs, you can drill down to get to specific monitors/rules and customize it by adding or removing tiles to fit your needs.

MIMP5.png

Active Alerts view under Microsoft Azure SQL Managed Instance lets you view all your active alerts in a single place just like other SQL MPs.

MIMP6.png

Summary

Azure SQL Managed Instance Management Pack is very similar to other SQL MPs but also introduces product specific monitors and rules.