Skip to content

Commit 6f907a7

Browse files
author
Arvind Krishnaa Jagannathan
committed
Use new API version
1 parent 2d23d66 commit 6f907a7

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

articles/search/search-howto-managed-identities-cosmos-db.md

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ When you're connecting with a system-assigned managed identity, the only change
9898
Here's an example using the [Create Data Source](/rest/api/searchservice/data-sources/create) REST API that exercises the _recommended_ approach.
9999

100100
```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
102102
{
103103
"name": "my-cosmosdb-ds",
104104
"type": "cosmosdb",
@@ -110,7 +110,7 @@ POST https://[service name].search.windows.net/datasources?api-version=2024-07-0
110110
```
111111

112112
>[!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.
114114
115115
#### Connect through user-assigned identity
116116

@@ -119,8 +119,7 @@ You need to add an "identity" property to the data source definition, where you
119119
Here's an example using user-assigned identity via the _recommended_ approach.
120120

121121
```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
124123
{
125124
"name": "[my-cosmosdb-ds]",
126125
"type": "cosmosdb",
@@ -150,7 +149,7 @@ Follow the same steps as before to assign the appropriate roles on the control p
150149
Here's an example to connect to MongoDB collections using system-assigned identity via the REST API
151150

152151
```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
154153
{
155154
"name": "my-cosmosdb-ds",
156155
"type": "cosmosdb",
@@ -162,11 +161,10 @@ POST https://[service name].search.windows.net/datasources?api-version=2024-07-0
162161
}
163162
```
164163

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.
166165

167166
```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
170168
{
171169
"name": "[my-cosmosdb-ds]",
172170
"type": "cosmosdb",

0 commit comments

Comments
 (0)