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-howto-managed-identities-cosmos-db.md
+6-8Lines changed: 6 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -98,7 +98,7 @@ When you're connecting with a system-assigned managed identity, the only change
98
98
Here's an example using the [Create Data Source](/rest/api/searchservice/data-sources/create) REST API that exercises the _recommended_ approach.
99
99
100
100
```http
101
-
POST https://[service name].search.windows.net/datasources?api-version=2024-07-01
101
+
POST https://[service name].search.windows.net/datasources?api-version=2024-11-01-preview
102
102
{
103
103
"name": "my-cosmosdb-ds",
104
104
"type": "cosmosdb",
@@ -110,7 +110,7 @@ POST https://[service name].search.windows.net/datasources?api-version=2024-07-0
110
110
```
111
111
112
112
>[!NOTE]
113
-
> If the `IdentityAuthType` property is not part of the connection string, then Azure AI Search defaults to the _legacy_ approach to ensure backward compatibility.
113
+
> If the `IdentityAuthType` property isn't part of the connection string, then Azure AI Search defaults to the _legacy_ approach to ensure backward compatibility.
114
114
115
115
#### Connect through user-assigned identity
116
116
@@ -119,8 +119,7 @@ You need to add an "identity" property to the data source definition, where you
119
119
Here's an example using user-assigned identity via the _recommended_ approach.
120
120
121
121
```http
122
-
POST https://[service name].search.windows.net/datasources?api-version=2024-07-01
123
-
122
+
POST https://[service name].search.windows.net/datasources?api-version=2024-11-01-preview
124
123
{
125
124
"name": "[my-cosmosdb-ds]",
126
125
"type": "cosmosdb",
@@ -150,7 +149,7 @@ Follow the same steps as before to assign the appropriate roles on the control p
150
149
Here's an example to connect to MongoDB collections using system-assigned identity via the REST API
151
150
152
151
```http
153
-
POST https://[service name].search.windows.net/datasources?api-version=2024-07-01
152
+
POST https://[service name].search.windows.net/datasources?api-version=2024-11-01-preview
154
153
{
155
154
"name": "my-cosmosdb-ds",
156
155
"type": "cosmosdb",
@@ -162,11 +161,10 @@ POST https://[service name].search.windows.net/datasources?api-version=2024-07-0
162
161
}
163
162
```
164
163
165
-
Here's an example to connect to Gremline graphs using user-assigned identity.
164
+
Here's an example to connect to Gremlin graphs using user-assigned identity.
166
165
167
166
```http
168
-
POST https://[service name].search.windows.net/datasources?api-version=2024-07-01
169
-
167
+
POST https://[service name].search.windows.net/datasources?api-version=2024-11-01-preview
0 commit comments