Skip to content

Commit ca00ffe

Browse files
committed
fixed connection string for sql managed instance private connection
1 parent fab3edc commit ca00ffe

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

articles/search/search-indexer-how-to-access-private-sql.md

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ author: mattgotteiner
77
ms.author: magottei
88
ms.service: azure-ai-search
99
ms.topic: how-to
10-
ms.date: 12/10/2024
10+
ms.date: 01/27/2025
1111
---
1212

1313
# Create a shared private link for a SQL managed instance from Azure AI Search
@@ -122,11 +122,9 @@ On the Azure AI Search side, you can confirm request approval by revisiting the
122122

123123
You can now configure an indexer and its data source to use an outbound private connection to your managed instance.
124124

125-
You could use the [**Import data**](search-get-started-portal.md) wizard for this step, but the indexer that's generated won't be valid for this scenario. You'll need to modify the indexer JSON property as described in this step to make it compliant for this scenario. You'll then need to [reset and rerun the indexer](search-howto-run-reset-indexers.md) to fully test the pipeline using the updated indexer.
125+
This article assumes a [REST client](search-get-started-rest.md) and uses the REST APIs.
126126

127-
This article assumes a [REST client](search-get-started-rest.md) and uses the REST APIs to make it easier to see all of the properties. Recall that REST API calls for indexers and data sources use the [Search REST APIs](/rest/api/searchservice/), not the [Management REST APIs](/rest/api/searchmanagement/) used to create the shared private link. The syntax and API versions are different between the two REST APIs.
128-
129-
1. [Create the data source definition](search-how-to-index-sql-database.md) as you would normally for Azure SQL. The format of the connection string is slightly different for a managed instance, but other properties are the same as if you were configuring a data source connection to Azure SQL database.
127+
1. [Create the data source definition](search-how-to-index-sql-database.md) as you would normally for Azure SQL. A managed instance listens on port 3342, but other properties are similar to Azure SQL database.
130128

131129
Provide the connection string that you copied earlier with an Initial Catalog specified.
132130

@@ -139,7 +137,7 @@ This article assumes a [REST client](search-get-started-rest.md) and uses the RE
139137
"description" : "A database for testing Azure AI Search indexes.",
140138
"type" : "azuresql",
141139
"credentials" : {
142-
"connectionString" : "Server=tcp:contoso.public.0000000000.database.windows.net,1433;Persist Security Info=false; User ID=<your user name>; Password=<your password>;MultipleActiveResultsSets=False; Encrypt=True;Connection Timeout=30;Initial Catalog=<your database name>"
140+
"connectionString" : "Server=tcp:contoso.0000000000.database.windows.net,3342;Persist Security Info=false; User ID=<your user name>; Password=<your password>;MultipleActiveResultsSets=False; Encrypt=True;Connection Timeout=30;Initial Catalog=<your database name>"
143141
},
144142
"container" : {
145143
"name" : "Name of table or view to index",

0 commit comments

Comments
 (0)