Skip to content

Commit 0a1a98d

Browse files
Merge pull request #453 from HeidiSteen/heidist-fresh
[azure search] SFI connection string fixes
2 parents 249690f + 1e48359 commit 0a1a98d

5 files changed

+65
-65
lines changed

articles/search/knowledge-store-create-portal.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ Because the data is multiple rows in one CSV file, set the *parsing mode* to get
6161

6262
A connection string can be full access, having the following format: `DefaultEndpointsProtocol=https;AccountName=<YOUR-ACCOUNT-NAME>;AccountKey=<YOUR-ACCOUNT-KEY>;EndpointSuffix=core.windows.net`
6363

64-
Or, a connection string can reference a managed identity, assuming it's [configured and assigned a role](search-howto-managed-identities-data-sources.md) in Azure Storage: `ResourceId=/subscriptions/{YOUR-SUBSCRIPTION-ID}/resourceGroups/{YOUR-RESOURCE-GROUP-NAME}/providers/Microsoft.Storage/storageAccounts/{YOUR-ACCOUNT-NAME};`
64+
Or, a connection string can reference a managed identity, assuming it's [configured and assigned a role](search-howto-managed-identities-data-sources.md) in Azure Storage: `ResourceId=/subscriptions/<YOUR-SUBSCRIPTION-ID>/resourceGroups/<YOUR-RESOURCE-GROUP-NAME>/providers/Microsoft.Storage/storageAccounts/<YOUR-ACCOUNT-NAME>;`
6565

6666
1. In **Containers**, enter the name of the blob container holding the data ("hotel-reviews").
6767

articles/search/search-indexer-tutorial.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ author: HeidiSteen
88
ms.author: heidist
99
ms.service: cognitive-search
1010
ms.topic: tutorial
11-
ms.date: 01/18/2024
11+
ms.date: 09/23/2024
1212
ms.custom:
1313
- devx-track-csharp
1414
- devx-track-dotnet
@@ -87,7 +87,7 @@ If you have an existing Azure SQL Database resource, you can add the hotels tabl
8787
1. Copy the ADO.NET connection string for the database. Under **Settings** > **Connection Strings**, copy the ADO.NET connection string, similar to the example below.
8888

8989
```sql
90-
Server=tcp:{your_dbname}.database.windows.net,1433;Initial Catalog=hotels-db;Persist Security Info=False;User ID={your_username};Password={your_password};MultipleActiveResultSets=False;Encrypt=True;TrustServerCertificate=False;Connection Timeout=30;
90+
Server=tcp:<YOUR-DATABASE-NAME>.database.windows.net,1433;Initial Catalog=hotels-db;Persist Security Info=False;User ID=<YOUR-USER-NAME>;Password=<YOUR-PASSWORD>;MultipleActiveResultSets=False;Encrypt=True;TrustServerCertificate=False;Connection Timeout=30;
9191
```
9292

9393
You'll need this connection string in the next exercise, setting up your environment.
@@ -114,7 +114,7 @@ API calls require the service URL and an access key. A search service is created
114114
115115
1. For `SearchServiceEndPoint`, if the full URL on the service overview page is "https://my-demo-service.search.windows.net", then the value to provide is the entire URL.
116116
117-
1. For `AzureSqlConnectionString`, the string format is similar to this: `"Server=tcp:{your_dbname}.database.windows.net,1433;Initial Catalog=hotels-db;Persist Security Info=False;User ID={your_username};Password={your_password};MultipleActiveResultSets=False;Encrypt=True;TrustServerCertificate=False;Connection Timeout=30;"`
117+
1. For `AzureSqlConnectionString`, the string format is similar to this: `"Server=tcp:<your-database-name>.database.windows.net,1433;Initial Catalog=hotels-db;Persist Security Info=False;User ID=<your-user-name>;Password=<your-password>;MultipleActiveResultSets=False;Encrypt=True;TrustServerCertificate=False;Connection Timeout=30;"`
118118
119119
```json
120120
{

articles/search/search-security-manage-encryption-keys.md

Lines changed: 44 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ author: HeidiSteen
88
ms.author: heidist
99
ms.service: cognitive-search
1010
ms.topic: how-to
11-
ms.date: 08/05/2024
11+
ms.date: 09/23/2024
1212
ms.custom:
1313
- references_regions
1414
- ignite-2023
@@ -207,19 +207,19 @@ Conditions that prevent you from adopting this approach include:
207207
Content-Type: application/json
208208
209209
{
210-
"location": "[region]",
210+
"location": "<your-region>",
211211
"sku": {
212-
"name": "[sku]"
212+
"name": "<your-sku>"
213213
},
214214
"properties": {
215-
"replicaCount": [replica count],
216-
"partitionCount": [partition count],
215+
"replicaCount": <your-replica-count>,
216+
"partitionCount": <your-partition count>,
217217
"hostingMode": "default"
218218
},
219219
"identity": {
220220
"type": "UserAssigned",
221221
"userAssignedIdentities": {
222-
"/subscriptions/[subscription ID]/resourcegroups/[resource group name]/providers/Microsoft.ManagedIdentity/userAssignedIdentities/[managed identity name]": {}
222+
"/subscriptions/<your-subscription-ID>/resourcegroups/<your-resource-group-name>/providers/Microsoft.ManagedIdentity/userAssignedIdentities/<your-managed-identity-name>": {}
223223
}
224224
}
225225
}
@@ -230,12 +230,12 @@ Conditions that prevent you from adopting this approach include:
230230
```json
231231
{
232232
"encryptionKey": {
233-
"keyVaultUri": "https://[key vault name].vault.azure.net",
234-
"keyVaultKeyName": "[key vault key name]",
235-
"keyVaultKeyVersion": "[key vault key version]",
233+
"keyVaultUri": "<YOUR-KEY-VAULT-URI>",
234+
"keyVaultKeyName": "<YOUR-ENCRYPTION-KEY-NAME>",
235+
"keyVaultKeyVersion": "<YOUR-ENCRYPTION-KEY-VERSION>",
236236
"identity" : {
237237
"@odata.type": "#Microsoft.Azure.Search.DataUserAssignedIdentity",
238-
"userAssignedIdentity" : "/subscriptions/[subscription ID]/resourceGroups/[resource group name]/providers/Microsoft.ManagedIdentity/userAssignedIdentities/[managed identity name]"
238+
"userAssignedIdentity" : "/subscriptions/<your-subscription-ID>/resourceGroups/<your-resource-group-name>/providers/Microsoft.ManagedIdentity/userAssignedIdentities/<your-managed-identity-name>"
239239
}
240240
}
241241
}
@@ -312,9 +312,9 @@ Encryption keys are added when you create an object. To add a customer-managed k
312312
```json
313313
{
314314
"encryptionKey": {
315-
"keyVaultUri": "https://demokeyvault.vault.azure.net",
316-
"keyVaultKeyName": "myEncryptionKey",
317-
"keyVaultKeyVersion": "eaab6a663d59439ebb95ce2fe7d5f660"
315+
"keyVaultUri": "<YOUR-KEY-VAULT-URI>",
316+
"keyVaultKeyName": "<YOUR-ENCRYPTION-KEY-NAME>",
317+
"keyVaultKeyVersion": "<YOUR-ENCRYPTION-KEY-VERSION>"
318318
}
319319
}
320320
```
@@ -324,12 +324,12 @@ Encryption keys are added when you create an object. To add a customer-managed k
324324
```json
325325
{
326326
"encryptionKey": {
327-
"keyVaultUri": "https://demokeyvault.vault.azure.net",
328-
"keyVaultKeyName": "myEncryptionKey",
329-
"keyVaultKeyVersion": "eaab6a663d59439ebb95ce2fe7d5f660",
327+
"keyVaultUri": "<YOUR-KEY-VAULT-URI>",
328+
"keyVaultKeyName": "<YOUR-ENCRYPTION-KEY-NAME>",
329+
"keyVaultKeyVersion": "<YOUR-ENCRYPTION-KEY-VERSION>",
330330
"accessCredentials": {
331-
"applicationId": "00000000-0000-0000-0000-000000000000",
332-
"applicationSecret": "myApplicationSecret"
331+
"applicationId": "<YOUR-APPLICATION-ID>",
332+
"applicationSecret": "<YOUR-APPLICATION-SECRET>"
333333
}
334334
}
335335
}
@@ -363,7 +363,7 @@ In this section, you set the policy that defines a CMK standard for your search
363363
1. Call the [Services - Update API](/rest/api/searchmanagement/services/update) to enable CMK policy enforcement at the service level.
364364
365365
```http
366-
PATCH https://management.azure.com/subscriptions/[subscriptionId]/resourceGroups/[resourceGroupName]/providers/Microsoft.Search/searchServices/[serviceName]?api-version=2023-11-01
366+
PATCH https://management.azure.com/subscriptions/<your-subscription-Id>/resourceGroups/<your-resource-group-name>/providers/Microsoft.Search/searchServices/<your-search-service-name>?api-version=2023-11-01
367367
368368
{
369369
"properties": {
@@ -399,12 +399,12 @@ The details of creating a new index via the REST API could be found at [Create I
399399
{"name": "Location", "type": "Edm.GeographyPoint", "filterable": true, "sortable": true}
400400
],
401401
"encryptionKey": {
402-
"keyVaultUri": "https://demokeyvault.vault.azure.net",
403-
"keyVaultKeyName": "myEncryptionKey",
404-
"keyVaultKeyVersion": "eaab6a663d59439ebb95ce2fe7d5f660",
402+
"keyVaultUri": "<YOUR-KEY-VAULT-URI>",
403+
"keyVaultKeyName": "<YOUR-ENCRYPTION-KEY-NAME>",
404+
"keyVaultKeyVersion": "<YOUR-ENCRYPTION-KEY-VERSION>",
405405
"accessCredentials": {
406-
"applicationId": "00000000-0000-0000-0000-000000000000",
407-
"applicationSecret": "myApplicationSecret"
406+
"applicationId": "<YOUR-APPLICATION-ID>",
407+
"applicationSecret": "<YOUR-APPLICATION-SECRET>"
408408
}
409409
}
410410
}
@@ -423,12 +423,12 @@ Create an encrypted synonym map using the [Create Synonym Map Azure AI Search RE
423423
"synonyms" : "United States, United States of America, USA\n
424424
Washington, Wash. => WA",
425425
"encryptionKey": {
426-
"keyVaultUri": "https://demokeyvault.vault.azure.net",
427-
"keyVaultKeyName": "myEncryptionKey",
428-
"keyVaultKeyVersion": "eaab6a663d59439ebb95ce2fe7d5f660",
426+
"keyVaultUri": "<YOUR-KEY-VAULT-URI>",
427+
"keyVaultKeyName": "<YOUR-ENCRYPTION-KEY-NAME>",
428+
"keyVaultKeyVersion": "<YOUR-ENCRYPTION-KEY-VERSION>",
429429
"accessCredentials": {
430-
"applicationId": "00000000-0000-0000-0000-000000000000",
431-
"applicationSecret": "myApplicationSecret"
430+
"applicationId": "<YOUR-APPLICATION-ID>",
431+
"applicationSecret": "<YOUR-APPLICATION-SECRET>"
432432
}
433433
}
434434
}
@@ -449,12 +449,12 @@ Create an encrypted data source using the [Create Data Source (REST API)](/rest/
449449
},
450450
"container" : { "name" : "containername" },
451451
"encryptionKey": {
452-
"keyVaultUri": "https://demokeyvault.vault.azure.net",
453-
"keyVaultKeyName": "myEncryptionKey",
454-
"keyVaultKeyVersion": "eaab6a663d59439ebb95ce2fe7d5f660",
452+
"keyVaultUri": "<YOUR-KEY-VAULT-URI>",
453+
"keyVaultKeyName": "<YOUR-ENCRYPTION-KEY-NAME>",
454+
"keyVaultKeyVersion": "<YOUR-ENCRYPTION-KEY-VERSION>",
455455
"accessCredentials": {
456-
"applicationId": "00000000-0000-0000-0000-000000000000",
457-
"applicationSecret": "myApplicationSecret"
456+
"applicationId": "<YOUR-APPLICATION-ID>",
457+
"applicationSecret": "<YOUR-APPLICATION-SECRET>"
458458
}
459459
}
460460
}
@@ -473,12 +473,12 @@ Create an encrypted skillset using the [Create Skillset REST API](/rest/api/sear
473473
"cognitiveServices": { omitted for brevity },
474474
"knowledgeStore": { omitted for brevity },
475475
"encryptionKey": (optional) {
476-
"keyVaultKeyName": "myEncryptionKey",
477-
"keyVaultKeyVersion": "eaab6a663d59439ebb95ce2fe7d5f660",
478-
"keyVaultUri": "https://demokeyvault.vault.azure.net",
476+
"keyVaultKeyName": "<YOUR-ENCRYPTION-KEY-NAME>",
477+
"keyVaultKeyVersion": "<YOUR-ENCRYPTION-KEY-VERSION>",
478+
"keyVaultUri": "<YOUR-KEY-VAULT-URI>",
479479
"accessCredentials": {
480-
"applicationId": "00000000-0000-0000-0000-000000000000",
481-
"applicationSecret": "myApplicationSecret"}
480+
"applicationId": "<YOUR-APPLICATION-ID>",
481+
"applicationSecret": "<YOUR-APPLICATION-SECRET>"
482482
}
483483
}
484484
```
@@ -500,12 +500,12 @@ Create an encrypted indexer using the [Create Indexer REST API](/rest/api/search
500500
}
501501
},
502502
"encryptionKey": {
503-
"keyVaultUri": "https://demokeyvault.vault.azure.net",
504-
"keyVaultKeyName": "myEncryptionKey",
505-
"keyVaultKeyVersion": "eaab6a663d59439ebb95ce2fe7d5f660",
503+
"keyVaultUri": "<YOUR-KEY-VAULT-URI>",
504+
"keyVaultKeyName": "<YOUR-ENCRYPTION-KEY-NAME>",
505+
"keyVaultKeyVersion": "<YOUR-ENCRYPTION-KEY-VERSION>",
506506
"accessCredentials": {
507-
"applicationId": "00000000-0000-0000-0000-000000000000",
508-
"applicationSecret": "myApplicationSecret"
507+
"applicationId": "<YOUR-APPLICATION-ID>",
508+
"applicationSecret": "<YOUR-APPLICATION-SECRET>"
509509
}
510510
}
511511
}

articles/search/search-semi-structured-data.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ HTTP/1.1 201 Created
165165
Transfer-Encoding: chunked
166166
Content-Type: application/json; odata.metadata=minimal; odata.streaming=true; charset=utf-8
167167
ETag: "0x8DC43A5FDB8448F"
168-
Location: https://free-demo-search-svc.search.windows.net:443/datasources('ny-philharmonic-ds')?api-version=2024-07-01
168+
Location: https://<YOUR-SEARCH-SERVICE-NAME>.search.windows.net:443/datasources('ny-philharmonic-ds')?api-version=2024-07-01
169169
Server: Microsoft-IIS/10.0
170170
Strict-Transport-Security: max-age=2592000, max-age=15724800; includeSubDomains
171171
Preference-Applied: odata.include-annotations="*"
@@ -176,7 +176,7 @@ Date: Wed, 13 Mar 2024 21:38:58 GMT
176176
Connection: close
177177

178178
{
179-
"@odata.context": "https://free-demo-search-svc.search.windows.net/$metadata#datasources/$entity",
179+
"@odata.context": "https://<YOUR-SEARCH-SERVICE-NAME>.search.windows.net/$metadata#datasources/$entity",
180180
"@odata.etag": "\"0x8DC43A5FDB8448F\"",
181181
"name": "ny-philharmonic-ds",
182182
"description": null,
@@ -308,7 +308,7 @@ Date: Wed, 13 Mar 2024 22:09:59 GMT
308308
Connection: close
309309

310310
{
311-
"@odata.context": "https://free-demo-search-svc.search.windows.net/indexes('ny-philharmonic-index')/$metadata#docs(*)",
311+
"@odata.context": "https://<YOUR-SEARCH-SERVICE-NAME>.search.windows.net/indexes('ny-philharmonic-index')/$metadata#docs(*)",
312312
"@odata.count": 1521,
313313
"@search.nextPageParameters": {
314314
"search": "*",
@@ -317,7 +317,7 @@ Connection: close
317317
},
318318
"value": [
319319
],
320-
"@odata.nextLink": "https://free-demo-search-svc.search.windows.net/indexes/ny-philharmonic-index/docs/search?api-version=2024-07-01"
320+
"@odata.nextLink": "https://<YOUR-SEARCH-SERVICE-NAME>.search.windows.net/indexes/ny-philharmonic-index/docs/search?api-version=2024-07-01"
321321
}
322322
```
323323

articles/search/vector-search-integrated-vectorization-ai-studio.md

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,8 @@ The URI and key are generated when you deploy the model from the catalog. For mo
7171
{
7272
"@odata.type": "#Microsoft.Skills.Custom.AmlSkill",
7373
"context": "/document/pages/*",
74-
"uri": "{YOUR_MODEL_URL_HERE}",
75-
"key": "{YOUR_MODEL_KEY_HERE}",
74+
"uri": "<YOUR_MODEL_URL_HERE>",
75+
"key": "<YOUR_MODEL_KEY_HERE>",
7676
"inputs": [
7777
{
7878
"name": "input_data",
@@ -118,8 +118,8 @@ The URI and key are generated when you deploy the model from the catalog. For mo
118118
{
119119
"@odata.type": "#Microsoft.Skills.Custom.AmlSkill",
120120
"context": "/document/normalized_images/*",
121-
"uri": "{YOUR_MODEL_URL_HERE}",
122-
"key": "{YOUR_MODEL_HERE}",
121+
"uri": "<YOUR_MODEL_URL_HERE>",
122+
"key": "<YOUR_MODEL_HERE>",
123123
"inputs": [
124124
{
125125
"name": "input_data",
@@ -165,8 +165,8 @@ The URI and key are generated when you deploy the model from the catalog. For mo
165165
{
166166
"@odata.type": "#Microsoft.Skills.Custom.AmlSkill",
167167
"context": "/document/pages/*",
168-
"uri": "{YOUR_MODEL_URL_HERE}/v1/embed",
169-
"key": "{YOUR_MODEL_KEY_HERE}",
168+
"uri": "<YOUR_MODEL_URL_HERE>/v1/embed",
169+
"key": "<YOUR_MODEL_KEY_HERE>",
170170
"inputs": [
171171
{
172172
"name": "texts",
@@ -202,7 +202,7 @@ If you selected a different `embedding_types` in your skill definition that you
202202
"indexProjections": {
203203
"selectors": [
204204
{
205-
"targetIndexName": "{YOUR_TARGET_INDEX_NAME_HERE}",
205+
"targetIndexName": "<YOUR_TARGET_INDEX_NAME_HERE>",
206206
"parentKeyFieldName": "ParentKey", // Change this to the name of the field in your index definition where the parent key will be stored
207207
"sourceContext": "/document/pages/*",
208208
"mappings": [
@@ -230,12 +230,12 @@ For Cohere models, you should NOT add the `/v1/embed` path to the end of your UR
230230
```json
231231
"vectorizers": [
232232
{
233-
"name": "{YOUR_VECTORIZER_NAME_HERE}",
233+
"name": "<YOUR_VECTORIZER_NAME_HERE>",
234234
"kind": "aml",
235235
"amlParameters": {
236-
"uri": "{YOUR_URL_HERE}",
237-
"key": "{YOUR_PRIMARY_KEY_HERE}",
238-
"modelName": "{YOUR_MODEL_ID_HERE}"
236+
"uri": "<YOUR_URL_HERE>",
237+
"key": "<YOUR_PRIMARY_KEY_HERE>",
238+
"modelName": "<YOUR_MODEL_ID_HERE>"
239239
},
240240
}
241241
]
@@ -246,8 +246,8 @@ For Cohere models, you should NOT add the `/v1/embed` path to the end of your UR
246246
If you can't use key-based authentication, you can instead configure the AML skill and AI Studio vectorizer connection for [token authentication](../machine-learning/how-to-authenticate-online-endpoint.md) via role-based access control on Azure. The search service must have a [system or user-assigned managed identity](search-howto-managed-identities-data-sources.md), and the identity must have Owner or Contributor permissions for your AML project workspace. You can then remove the key field from your skill and vectorizer definition, replacing it with the resourceId field. If your AML project and search service are in different regions, also provide the region field.
247247

248248
```json
249-
"uri": "{YOUR_URL_HERE}",
250-
"resourceId": "subscriptions/{YOUR_SUBSCRIPTION_ID_HERE/resourceGroups/{YOUR_RESOURCE_GROUP_NAME_HERE}/providers/Microsoft.MachineLearningServices/workspaces/{YOUR_AML_WORKSPACE_NAME_HERE}/onlineendpoints/{YOUR_AML_ENDPOINT_NAME_HERE}",
249+
"uri": "<YOUR_URL_HERE>",
250+
"resourceId": "subscriptions/<YOUR_SUBSCRIPTION_ID_HERE>/resourceGroups/<YOUR_RESOURCE_GROUP_NAME_HERE>/providers/Microsoft.MachineLearningServices/workspaces/<YOUR_AML_WORKSPACE_NAME_HERE>/onlineendpoints/<YOUR_AML_ENDPOINT_NAME_HERE>",
251251
"region": "westus", // Only need if AML project lives in different region from search service
252252
```
253253

0 commit comments

Comments
 (0)