Skip to content

Commit 30c2790

Browse files
author
Seth
committed
Infra - added ai search connection to AI Foundry
1 parent 97ab46d commit 30c2790

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

infra/main.bicep

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -350,6 +350,19 @@ module aiHub 'br/public:avm/res/machine-learning-services/workspace:0.10.1' = {
350350
ResourceId: aiServices.outputs.resourceId
351351
}
352352
}
353+
{
354+
name: toLower('${aiSearch.outputs.name}-connection')
355+
category: 'CognitiveSearch'
356+
target: 'https://${aiSearch.outputs.name}.search.windows.net/'
357+
connectionProperties: {
358+
authType: 'AAD'
359+
}
360+
isSharedToAll: true
361+
metadata: {
362+
ApiType: 'Azure'
363+
ResourceId: aiSearch.outputs.resourceId
364+
}
365+
}
353366
])
354367
roleAssignments: empty(userObjectId) ? [] : [
355368
{

0 commit comments

Comments
 (0)