You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -226,6 +226,8 @@ Get the details from the **Connection strings** menu item for the managed instan
226
226
To monitor a readable secondary, include the key-value `ApplicationIntent=ReadOnly` in the connection string. SQL Insights supports monitoring of a single secondary. Collected data will be tagged to reflect Primary or Secondary.
227
227
228
228
#### SQL Server
229
+
The TCP/IP protocol must be enabled for the SQL Server instance you want to monitor. TCP connections from the monitoring machine to the IP address and port used by the SQL Server instance must be allowed by any firewalls or [network security groups](../virtual-network/network-security-groups-overview.md) (NSGs) that may exist on the network path.
230
+
229
231
Enter the connection string in the form:
230
232
231
233
```
@@ -234,10 +236,22 @@ Enter the connection string in the form:
234
236
]
235
237
```
236
238
237
-
If your monitoring virtual machine is in the same VNET, use the private IP address of the Server. Otherwise, use the public IP address. If you're using Azure SQL virtual machine, you can see which port to use here on the **Security** page for the resource.
239
+
If your monitoring virtual machine is in the same VNET, use the private IP address of the Server. Otherwise, use the public IP address.
240
+
241
+
If your SQL Server instance is configured to listen on a non-default port, replace 1433 with that port number in the connection string. If you're using Azure SQL virtual machine, you can see which port to use on the **Security** page for the resource.
For any SQL Server instance, you can determine all IP addresses and ports it is listening on by connecting to the instance and executing the following T-SQL query, as long as there is at least one TCP connection to the instance:
246
+
247
+
```sql
248
+
SELECT DISTINCT local_net_address, local_tcp_port
249
+
FROMsys.dm_exec_connections
250
+
WHERE net_transport ='TCP'
251
+
AND
252
+
protocol_type ='TSQL';
253
+
```
254
+
241
255
## Monitoring profile created
242
256
243
257
Select **Add monitoring virtual machine** to configure the virtual machine to collect data from your SQL resources. Do not return to the **Overview** tab. In a few minutes, the Status column should change to read "Collecting", you should see data for the SQL resources you have chosen to monitor.
0 commit comments