Skip to content

Commit 79322ea

Browse files
updated search service
1 parent 905ce3a commit 79322ea

2 files changed

Lines changed: 16 additions & 30 deletions

File tree

infra/main.bicep

Lines changed: 12 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -113,10 +113,10 @@ param enableRedundancy bool = false
113113
param enablePrivateNetworking bool = true
114114

115115
@description('Optional. The Container Registry hostname where the docker images are located.')
116-
param acrName string = 'byocgacontainerreg'
116+
param acrName string = 'testapwaf'
117117

118118
@description('Optional. Image Tag.')
119-
param imageTag string = 'latest'
119+
param imageTag string = 'waf'
120120

121121
@description('Optional. Enable/Disable usage telemetry for module.')
122122
param enableTelemetry bool = true
@@ -679,16 +679,16 @@ module aiSearch 'br/public:avm/res/search/search-service:0.11.1' = {
679679
replicaCount: 1
680680
partitionCount: 1
681681
roleAssignments: [
682-
{
683-
roleDefinitionIdOrName: 'Cognitive Services Contributor' // Cognitive Search Contributor
684-
principalId: userAssignedIdentity.outputs.principalId
685-
principalType: 'ServicePrincipal'
686-
}
687-
{
688-
roleDefinitionIdOrName: 'Cognitive Services OpenAI User'//'5e0bd9bd-7b93-4f28-af87-19fc36ad61bd'// Cognitive Services OpenAI User
689-
principalId: userAssignedIdentity.outputs.principalId
690-
principalType: 'ServicePrincipal'
691-
}
682+
// {
683+
// roleDefinitionIdOrName: 'Cognitive Services Contributor' // Cognitive Search Contributor
684+
// principalId: userAssignedIdentity.outputs.principalId
685+
// principalType: 'ServicePrincipal'
686+
// }
687+
// {
688+
// roleDefinitionIdOrName: 'Cognitive Services OpenAI User'//'5e0bd9bd-7b93-4f28-af87-19fc36ad61bd'// Cognitive Services OpenAI User
689+
// principalId: userAssignedIdentity.outputs.principalId
690+
// principalType: 'ServicePrincipal'
691+
// }
692692
{
693693
roleDefinitionIdOrName: 'Search Index Data Contributor' // 1407120a-92aa-4202-b7e9-c0e197c71c8f
694694
principalId: userAssignedIdentity.outputs.principalId
@@ -729,9 +729,6 @@ resource aiSearchFoundryConnection 'Microsoft.CognitiveServices/accounts/project
729729
location: aiSearch.outputs.location
730730
}
731731
}
732-
dependsOn: [
733-
aiFoundryAiServicesProject
734-
]
735732
}
736733

737734
module existing_AIProject_SearchConnectionModule 'modules/deploy_aifp_aisearch_connection.bicep' = if (useExistingAiFoundryAiProject) {

infra/main.json

Lines changed: 4 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"_generator": {
77
"name": "bicep",
88
"version": "0.37.4.10188",
9-
"templateHash": "16064952426626724338"
9+
"templateHash": "12183275118675645429"
1010
},
1111
"name": "Document Generation Solution Accelerator",
1212
"description": "CSA CTO Gold Standard Solution Accelerator for Document Generation.\n"
@@ -211,14 +211,14 @@
211211
},
212212
"acrName": {
213213
"type": "string",
214-
"defaultValue": "byocgacontainerreg",
214+
"defaultValue": "testapwaf",
215215
"metadata": {
216216
"description": "Optional. The Container Registry hostname where the docker images are located."
217217
}
218218
},
219219
"imageTag": {
220220
"type": "string",
221-
"defaultValue": "latest",
221+
"defaultValue": "waf",
222222
"metadata": {
223223
"description": "Optional. Image Tag."
224224
}
@@ -401,7 +401,6 @@
401401
}
402402
},
403403
"dependsOn": [
404-
"aiFoundryAiServicesProject",
405404
"aiSearch"
406405
]
407406
},
@@ -30020,16 +30019,6 @@
3002030019
},
3002130020
"roleAssignments": {
3002230021
"value": [
30023-
{
30024-
"roleDefinitionIdOrName": "Cognitive Services Contributor",
30025-
"principalId": "[reference('userAssignedIdentity').outputs.principalId.value]",
30026-
"principalType": "ServicePrincipal"
30027-
},
30028-
{
30029-
"roleDefinitionIdOrName": "Cognitive Services OpenAI User",
30030-
"principalId": "[reference('userAssignedIdentity').outputs.principalId.value]",
30031-
"principalType": "ServicePrincipal"
30032-
},
3003330022
{
3003430023
"roleDefinitionIdOrName": "Search Index Data Contributor",
3003530024
"principalId": "[reference('userAssignedIdentity').outputs.principalId.value]",
@@ -38209,8 +38198,8 @@
3820938198
}
3821038199
},
3821138200
"dependsOn": [
38212-
"[format('avmPrivateDnsZones[{0}]', variables('dnsZoneIndex').storageQueue)]",
3821338201
"[format('avmPrivateDnsZones[{0}]', variables('dnsZoneIndex').storageBlob)]",
38202+
"[format('avmPrivateDnsZones[{0}]', variables('dnsZoneIndex').storageQueue)]",
3821438203
"network",
3821538204
"userAssignedIdentity"
3821638205
]

0 commit comments

Comments
 (0)