Using SQL Server Management Pack in VCF Operations with DSM provisioned SQL Server
Many of my recent posts have focused on the new Microsoft SQL Server data service in the 9.1 version of VMware Data Services Manager (DSM). On the back of those posts, I had a query about whether it was possible to use the Microsoft SQL Server Management Pack for VCF Operations that is available on the VCF Solutions Catalog with DSM provisioned SQL Servers. The short answer is yes, you can install this management pack in your VCF Operations and create a SQL Server account for it. The Management Pack for Microsoft SQL Server now connects to your Microsoft SQL Server instance (via JDBC using the jTDS driver) and executes SQL queries. SQL queries are executed in order to import health, performance, availability, capacity, and relationships data for your SQL server resources into VCF Operations. This allows your DBAs or IT team to gain critical actionable insight into database performance, query designs, and queries with access to 250+ collected metrics, reports, dashboards, notifications, and alerts in the VCF Operations console. This will allow your DBAs to clearly understand how workloads are performing, where issues may occur, and their source. It will help them to write better queries and optimize query designs for faster information retrieval and reporting. Let’s see how to install it.
Download the SQL Server Management Pack
In VCF Operations, select Administration > Integrations > Solutions Catalog. The database management packs are not available by default. You will need to download them from the VCF Solutions Catalog. You can navigate to the VCF Solutions Catalog directly from VCF operations, or you can get to it from https://vcf.broadcom.com/vsc/services. Browse the Management Packs. Here you will find the Management Pack for SQL Sever. You will need to sign in to download it. You will also have to create a “Signing Key” and then provide this when you do the install on the Management Pack into VCF Operations. The latest version of the SQL Server Management Pack at the time of writing is 9.0.0.0100.
Install SQL Server Management Pack
In VCF Operations, select Operate / Integrations > Solutions Catalog. You can see the downloaded management packs from there, as shown below. Once the management pack is downloaded into the catalog, install it. You will be prompted for the “Signing Key” created earlier as part of the install.
Create SQL Server Account
Microsoft SQL Server now appears as an available account type after the management pack has been successfully installed in your VCF Operations.
Add a SQL Server account. Provide the necessary information to connect to the SQL Server instance in the account. I am using the mssql-admin credentials that DSM created for the instance.
Validate the Connection as a test:
Soon after adding the account, you should see data getting collected from the SQL Server.
Examine the SQL Server Dashboards
The SQL Server Management Pack includes some very useful dashboards ‘out of the box’. Navigate to dashboards in VCF Operations where you should see MS SQL Server metrics now displayed. This first one details the Query metrics.
You can also drill down into database specific resource consumption:
Note that on the initial install of the management pack, and the initial view of the dashboards, the Microsoft SQL Server dashboard was empty. It did not show any SQL Server instances. I therefore edited the dashboard to see what the inputs were. The inventory tree was correctly set to MS SQL Server Environment but there were no Objects. After adding the SQL Server instances to the Input data Objects as shown here, and saving the changes to the dashboard, everything started to work:
Now the SQL Server instances are visible and can be selected to get more details on the deployment.
This is a really nice dashboard to have because once you have selected the instance and database, you can begin to examine metrics like Longest Wait Types, which are essentially the internal indicators that record why a query thread has paused execution and what specific resource it is waiting for.
One final note – there does appear to be some discrepancy in building relationships between the VMs and the database nodes. If the VM name does not match the SQL Server node name, then the relationships are not built in this version of the management pack 9.0.0.0100. In the adapter logs, located on the VCF Ops 9.1 appliance in /storage/log/vcops/log/adapters/MicrosoftSQLServerAdapter, the logs will show the following:
Failed to add VirtualMachine resource with hostname "msql-vcfa-instance1-2" as parent of SqlAvailabilityGroup
resource with name "DSMAG": Failed to create relationship with VM names ("msql-vcfa-instance1-2")
The reason is that the SQL Server hostname msql-vcfa-instance-2 does not match the name of the virtual machine. msql-vcfa-instance1-398432-4z2fl-czs9p in the vCenter inventory. For vanilla SQL Server deployments, you might be able to change the VM name to match. However since Data Services Manager integrated with VCF Automation uses the Supervisor and VKS (vSphere Kubernetes Service) to host the database , this is not possible. This means that you won’t be able to see the VM <-> SQL Server relationship in the dashboards unfortunately. However, it is a minor nit compared to all the other goodness that the management pack brings to you. If a work-around appears in the near future, I will be sure to update this blog post.
For further information on the SQL Server Management Pack, check out some of the official documentation here and here.









