Skip to content

Commit 1fadf18

Browse files
authored
Create bing-grounding.bicep
1 parent ddd3f26 commit 1fadf18

File tree

1 file changed

+36
-0
lines changed
  • samples/agent-catalog/msft-agent-samples/foundry-agent-service-sdk/travel-planner/deployments

1 file changed

+36
-0
lines changed
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
param account_name string
2+
param location string = 'global'
3+
var bingSearchName = 'bingsearch-${account_name}'
4+
5+
resource accountResource 'Microsoft.CognitiveServices/accounts@2025-04-01-preview' existing = {
6+
name: account_name
7+
scope: resourceGroup()
8+
}
9+
10+
resource bingSearch 'Microsoft.Bing/accounts@2020-06-10' = {
11+
name: bingSearchName
12+
location: location
13+
sku: {
14+
name: 'G1'
15+
}
16+
kind: 'Bing.Grounding'
17+
}
18+
19+
resource bingConnection 'Microsoft.CognitiveServices/accounts/connections@2025-04-01-preview' = {
20+
name: '${account_name}-bingsearchconnection'
21+
parent: accountResource
22+
properties: {
23+
category: 'ApiKey'
24+
target: 'https://api.bing.microsoft.com/'
25+
authType: 'ApiKey'
26+
credentials: {
27+
key: listKeys(bingSearch.id, '2020-06-10').key1
28+
}
29+
isSharedToAll: true
30+
metadata: {
31+
ApiType: 'Azure'
32+
Location: bingSearch.location
33+
ResourceId: bingSearch.id
34+
}
35+
}
36+
}

0 commit comments

Comments
 (0)