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
Copy file name to clipboardExpand all lines: articles/search/search-indexer-how-to-access-private-sql.md
+6-7Lines changed: 6 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -14,7 +14,7 @@ ms.date: 05/23/2024
14
14
15
15
This article explains how to configure an indexer in Azure AI Search for a private connection to a SQL managed instance that runs within a virtual network. The private connection is through a [shared private link](search-indexer-howto-access-private.md) and Azure Private Link.
16
16
17
-
On a private connection to a managed instance, the fully qualified domain name (FQDN) of the instance must include the [DNS Zone](/azure/azure-sql/managed-instance/connectivity-architecture-overview#virtual-cluster-connectivity-architecture). Currently, only the Azure AI Search Management REST API provides a `resourceRegion` parameter for accepting the DNS zone specification.
17
+
On a private connection to a managed instance, the fully qualified domain name (FQDN) of the instance must include the [DNS Zone](/azure/azure-sql/managed-instance/connectivity-architecture-overview#virtual-cluster-connectivity-architecture). Currently, only the Azure AI Search Management REST API provides a `dnsZonePrefix` parameter for accepting the DNS zone specification.
18
18
19
19
Although you can call the Management REST API directly, it's easier to use the Azure CLI `az rest` module to send Management REST API calls from a command line. This article uses the Azure CLI with REST to set up the private link.
20
20
@@ -57,7 +57,7 @@ For more information about connection properties, see [Create an Azure SQL Manag
@@ -66,7 +66,7 @@ For more information about connection properties, see [Create an Azure SQL Manag
66
66
67
67
1. Provide a meaningful name for the shared private link. The shared private link appears alongside other private endpoints. A name like "shared-private-link-for-search" can remind you how it's used.
68
68
69
-
1. Paste in the DNS zone name in "resourceRegion" that you retrieved in an earlier step.
69
+
1. Paste in the DNS zone name in "dnsZonePrefix" that you retrieved in an earlier step.
70
70
71
71
1. Edit the "privateLinkResourceId" to reflect the private endpoint of your managed instance. Provide the subscription ID, resource group name, and object name of the managed instance.
72
72
@@ -128,7 +128,7 @@ This article assumes a [REST client](search-get-started-rest.md) and uses the RE
128
128
129
129
1.[Create the data source definition](search-howto-connecting-azure-sql-database-to-azure-search-using-indexers.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.
130
130
131
-
Provide the connection string that you copied earlier.
131
+
Provide the connection string that you copied earlier with an Initial Catalog specified.
132
132
133
133
```http
134
134
POST https://myservice.search.windows.net/datasources?api-version=2024-07-01
@@ -139,16 +139,15 @@ This article assumes a [REST client](search-get-started-rest.md) and uses the RE
139
139
"description" : "A database for testing Azure AI Search indexes.",
140
140
"type" : "azuresql",
141
141
"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;"
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>"
143
143
},
144
144
"container" : {
145
145
"name" : "Name of table or view to index",
146
146
"query" : null (not supported in the Azure SQL indexer)
0 commit comments