|
6 | 6 | "_generator": { |
7 | 7 | "name": "bicep", |
8 | 8 | "version": "0.40.2.10011", |
9 | | - "templateHash": "13633343500956336860" |
| 9 | + "templateHash": "11209346631275672110" |
10 | 10 | } |
11 | 11 | }, |
12 | 12 | "parameters": { |
|
465 | 465 | "resourceGroup": "[variables('aiFoundryAiServicesResourceGroupName')]", |
466 | 466 | "name": "[format('{0}/{1}', variables('aiFoundryAiServicesResourceName'), variables('aiFoundryAiProjectResourceName'))]" |
467 | 467 | }, |
| 468 | + "searchService": { |
| 469 | + "type": "Microsoft.Search/searchServices", |
| 470 | + "apiVersion": "2024-06-01-preview", |
| 471 | + "name": "[variables('aiSearchName')]", |
| 472 | + "location": "[parameters('location')]", |
| 473 | + "sku": { |
| 474 | + "name": "standard" |
| 475 | + } |
| 476 | + }, |
468 | 477 | "searchServiceToAiServicesRoleAssignment": { |
469 | 478 | "condition": "[not(variables('useExistingAiFoundryAiProject'))]", |
470 | 479 | "type": "Microsoft.Authorization/roleAssignments", |
471 | 480 | "apiVersion": "2022-04-01", |
472 | 481 | "name": "[guid(variables('aiSearchName'), '5e0bd9bd-7b93-4f28-af87-19fc36ad61bd', variables('aiFoundryAiServicesResourceName'))]", |
473 | 482 | "properties": { |
474 | 483 | "roleDefinitionId": "[subscriptionResourceId('Microsoft.Authorization/roleDefinitions', '5e0bd9bd-7b93-4f28-af87-19fc36ad61bd')]", |
475 | | - "principalId": "[reference('searchSearchServices').outputs.systemAssignedMIPrincipalId.value]", |
| 484 | + "principalId": "[reference('searchServiceUpdate').outputs.systemAssignedMIPrincipalId.value]", |
476 | 485 | "principalType": "ServicePrincipal" |
477 | 486 | }, |
478 | 487 | "dependsOn": [ |
479 | | - "searchSearchServices" |
| 488 | + "searchServiceUpdate" |
480 | 489 | ] |
481 | 490 | }, |
482 | 491 | "projectAISearchConnection": { |
|
491 | 500 | "isSharedToAll": true, |
492 | 501 | "metadata": { |
493 | 502 | "ApiType": "Azure", |
494 | | - "ResourceId": "[reference('searchSearchServices').outputs.resourceId.value]", |
495 | | - "location": "[reference('searchSearchServices').outputs.location.value]" |
| 503 | + "ResourceId": "[resourceId('Microsoft.Search/searchServices', variables('aiSearchName'))]", |
| 504 | + "location": "[reference('searchService', '2024-06-01-preview', 'full').location]" |
496 | 505 | } |
497 | 506 | }, |
498 | 507 | "dependsOn": [ |
499 | | - "searchSearchServices" |
| 508 | + "aiFoundryAiServices", |
| 509 | + "searchService" |
500 | 510 | ] |
501 | 511 | }, |
502 | 512 | "logAnalyticsWorkspace": { |
|
27516 | 27526 | } |
27517 | 27527 | }, |
27518 | 27528 | "dependsOn": [ |
| 27529 | + "[format('avmPrivateDnsZones[{0}]', variables('dnsZoneIndex').aiServices)]", |
27519 | 27530 | "[format('avmPrivateDnsZones[{0}]', variables('dnsZoneIndex').cognitiveServices)]", |
27520 | 27531 | "[format('avmPrivateDnsZones[{0}]', variables('dnsZoneIndex').openAI)]", |
27521 | | - "[format('avmPrivateDnsZones[{0}]', variables('dnsZoneIndex').aiServices)]", |
27522 | 27532 | "backendUserAssignedIdentity", |
27523 | 27533 | "logAnalyticsWorkspace", |
27524 | 27534 | "userAssignedIdentity", |
@@ -30041,18 +30051,18 @@ |
30041 | 30051 | } |
30042 | 30052 | }, |
30043 | 30053 | "dependsOn": [ |
30044 | | - "[format('avmPrivateDnsZones[{0}]', variables('dnsZoneIndex').aiServices)]", |
30045 | 30054 | "[format('avmPrivateDnsZones[{0}]', variables('dnsZoneIndex').cognitiveServices)]", |
30046 | 30055 | "[format('avmPrivateDnsZones[{0}]', variables('dnsZoneIndex').openAI)]", |
| 30056 | + "[format('avmPrivateDnsZones[{0}]', variables('dnsZoneIndex').aiServices)]", |
30047 | 30057 | "logAnalyticsWorkspace", |
30048 | 30058 | "userAssignedIdentity", |
30049 | 30059 | "virtualNetwork" |
30050 | 30060 | ] |
30051 | 30061 | }, |
30052 | | - "searchSearchServices": { |
| 30062 | + "searchServiceUpdate": { |
30053 | 30063 | "type": "Microsoft.Resources/deployments", |
30054 | 30064 | "apiVersion": "2025-04-01", |
30055 | | - "name": "[take(format('avm.res.search.search-service.{0}', variables('aiSearchName')), 64)]", |
| 30065 | + "name": "[take(format('avm.res.search.enable-identity.{0}', variables('aiSearchName')), 64)]", |
30056 | 30066 | "properties": { |
30057 | 30067 | "expressionEvaluationOptions": { |
30058 | 30068 | "scope": "inner" |
|
32180 | 32190 | "backendUserAssignedIdentity", |
32181 | 32191 | "existingAiFoundryAiServicesProject", |
32182 | 32192 | "logAnalyticsWorkspace", |
| 32193 | + "searchService", |
32183 | 32194 | "userAssignedIdentity", |
32184 | 32195 | "virtualNetwork" |
32185 | 32196 | ] |
@@ -32207,10 +32218,10 @@ |
32207 | 32218 | "value": "[variables('aiSearchName')]" |
32208 | 32219 | }, |
32209 | 32220 | "aiSearchResourceId": { |
32210 | | - "value": "[reference('searchSearchServices').outputs.resourceId.value]" |
| 32221 | + "value": "[resourceId('Microsoft.Search/searchServices', variables('aiSearchName'))]" |
32211 | 32222 | }, |
32212 | 32223 | "aiSearchLocation": { |
32213 | | - "value": "[reference('searchSearchServices').outputs.location.value]" |
| 32224 | + "value": "[reference('searchService', '2024-06-01-preview', 'full').location]" |
32214 | 32225 | }, |
32215 | 32226 | "aiSearchConnectionName": { |
32216 | 32227 | "value": "[variables('aiSearchName')]" |
|
32285 | 32296 | } |
32286 | 32297 | }, |
32287 | 32298 | "dependsOn": [ |
32288 | | - "searchSearchServices" |
| 32299 | + "searchService" |
32289 | 32300 | ] |
32290 | 32301 | }, |
32291 | 32302 | "searchServiceToExistingAiServicesRoleAssignment": { |
|
32302 | 32313 | "mode": "Incremental", |
32303 | 32314 | "parameters": { |
32304 | 32315 | "principalId": { |
32305 | | - "value": "[reference('searchSearchServices').outputs.systemAssignedMIPrincipalId.value]" |
| 32316 | + "value": "[reference('searchServiceUpdate').outputs.systemAssignedMIPrincipalId.value]" |
32306 | 32317 | }, |
32307 | 32318 | "roleDefinitionId": { |
32308 | 32319 | "value": "5e0bd9bd-7b93-4f28-af87-19fc36ad61bd" |
|
32363 | 32374 | }, |
32364 | 32375 | "dependsOn": [ |
32365 | 32376 | "aiFoundryAiServices", |
32366 | | - "searchSearchServices" |
| 32377 | + "searchServiceUpdate" |
32367 | 32378 | ] |
32368 | 32379 | }, |
32369 | 32380 | "storageAccount": { |
|
40353 | 40364 | }, |
40354 | 40365 | "dependsOn": [ |
40355 | 40366 | "[format('avmPrivateDnsZones[{0}]', variables('dnsZoneIndex').storageQueue)]", |
40356 | | - "[format('avmPrivateDnsZones[{0}]', variables('dnsZoneIndex').storageDfs)]", |
40357 | 40367 | "[format('avmPrivateDnsZones[{0}]', variables('dnsZoneIndex').storageFile)]", |
| 40368 | + "[format('avmPrivateDnsZones[{0}]', variables('dnsZoneIndex').storageDfs)]", |
40358 | 40369 | "[format('avmPrivateDnsZones[{0}]', variables('dnsZoneIndex').storageBlob)]", |
40359 | 40370 | "userAssignedIdentity", |
40360 | 40371 | "virtualNetwork" |
|
0 commit comments