Skip to content

Commit 2e1be1a

Browse files
fix: Integrated vectorization for WAF
1 parent 8936f83 commit 2e1be1a

File tree

2 files changed

+15
-3
lines changed

2 files changed

+15
-3
lines changed

infra/main.bicep

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1045,6 +1045,12 @@ module search 'modules/core/search/search-services.bicep' = if (databaseType ==
10451045
roleDefinitionId: 'a97b65f3-24c7-4388-baec-2e87135dc908'
10461046
principalType: 'ServicePrincipal'
10471047
}
1048+
{
1049+
resourceId: openai.outputs.resourceId
1050+
roleName: 'Cognitive Services OpenAI User'
1051+
roleDefinitionId: '5e0bd9bd-7b93-4f28-af87-19fc36ad61bd'
1052+
principalType: 'ServicePrincipal'
1053+
}
10481054
]
10491055
}
10501056
}

infra/main.json

Lines changed: 9 additions & 3 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": "16854127182224391242"
9+
"templateHash": "18400197968684403108"
1010
}
1111
},
1212
"parameters": {
@@ -22805,6 +22805,12 @@
2280522805
"roleName": "Cognitive Services User",
2280622806
"roleDefinitionId": "a97b65f3-24c7-4388-baec-2e87135dc908",
2280722807
"principalType": "ServicePrincipal"
22808+
},
22809+
{
22810+
"resourceId": "[reference('openai').outputs.resourceId.value]",
22811+
"roleName": "Cognitive Services OpenAI User",
22812+
"roleDefinitionId": "5e0bd9bd-7b93-4f28-af87-19fc36ad61bd",
22813+
"principalType": "ServicePrincipal"
2280822814
}
2280922815
]
2281022816
}
@@ -48280,9 +48286,9 @@
4828048286
}
4828148287
},
4828248288
"dependsOn": [
48283-
"[format('avmPrivateDnsZones[{0}]', variables('dnsZoneIndex').storageFile)]",
48284-
"[format('avmPrivateDnsZones[{0}]', variables('dnsZoneIndex').storageBlob)]",
4828548289
"[format('avmPrivateDnsZones[{0}]', variables('dnsZoneIndex').storageQueue)]",
48290+
"[format('avmPrivateDnsZones[{0}]', variables('dnsZoneIndex').storageBlob)]",
48291+
"[format('avmPrivateDnsZones[{0}]', variables('dnsZoneIndex').storageFile)]",
4828648292
"managedIdentityModule",
4828748293
"network"
4828848294
]

0 commit comments

Comments
 (0)