Skip to content

Commit 5efac8a

Browse files
Fit and finish
1 parent 8a8544a commit 5efac8a

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

articles/azure-monitor/insights/sql-insights-enable.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -226,20 +226,22 @@ Get the details from the **Connection strings** menu item for the managed instan
226226

227227
:::image type="content" source="media/sql-insights-enable/connection-string-sql-managed-instance.png" alt-text="SQL Managed Instance connection string" lightbox="media/sql-insights-enable/connection-string-sql-managed-instance.png":::
228228

229-
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.
229+
To monitor a readable secondary, append `;ApplicationIntent=ReadOnly` to the connection string. SQL Insights supports monitoring of a single secondary. Collected data will be tagged to reflect Primary or Secondary.
230230

231231
#### SQL Server
232232
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.
233233

234+
If you want to monitor SQL Server configured for high availability (using either availability groups or failover cluster instances), we recommend monitoring each SQL Server instance in the cluster individually rather than connecting via an availability group listener or a failover cluster name. This ensures that monitoring data is collected regardless of the current instance role (primary or secondary).
235+
234236
Enter the connection string in the form:
235237

236238
```
237239
"sqlVmConnections": [
238-
"Server=MyServerIPAddress;Port=1433;User Id=$username;Password=$password;"
240+
"Server=SQLServerInstanceIPAddress;Port=1433;User Id=$username;Password=$password;"
239241
]
240242
```
241243

242-
If your monitoring virtual machine is in the same VNET, use the private IP address of the Server. Otherwise, use the public IP address.
244+
Use the IP address that the SQL Server instance listens on.
243245

244246
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.
245247

0 commit comments

Comments
 (0)