Skip to content

Commit faf14bc

Browse files
authored
Fixing endpoint for cosmos db (#238)
* fixing endpoint * adding thread storage api fix * adding thread storage api fix
1 parent e5cb89a commit faf14bc

File tree

4 files changed

+9
-5
lines changed

4 files changed

+9
-5
lines changed

scenarios/Agents/setup/standard-agent-with-threadstorage/azuredeploy.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"_generator": {
66
"name": "bicep",
77
"version": "0.33.93.31351",
8-
"templateHash": "8527508992869683277"
8+
"templateHash": "15951707972022123305"
99
}
1010
},
1111
"parameters": {
@@ -1087,7 +1087,7 @@
10871087
"_generator": {
10881088
"name": "bicep",
10891089
"version": "0.33.93.31351",
1090-
"templateHash": "2930065960155969856"
1090+
"templateHash": "17785875270341448315"
10911091
}
10921092
},
10931093
"parameters": {
@@ -1176,7 +1176,7 @@
11761176
"name": "[format('{0}/{1}', parameters('aiProjectName'), variables('cosmosConnectionName'))]",
11771177
"properties": {
11781178
"category": "CosmosDB",
1179-
"target": "[format('https://{0}documents.azure.com:443/', parameters('cosmosDBName'))]",
1179+
"target": "[format('https://{0}.documents.azure.com:443/', parameters('cosmosDBName'))]",
11801180
"authType": "AAD",
11811181
"metadata": {
11821182
"ApiType": "Azure",

scenarios/Agents/setup/standard-agent-with-threadstorage/modules-standard/standard-ai-hub.bicep

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,10 @@ param aiSearchServiceSubscriptionId string
5151
@description('AI Service Account kind: either OpenAI or AIServices')
5252
param aiServiceKind string
5353

54+
@description('Connection name of the AI Search resource')
5455
var acsConnectionName = '${aiHubName}-connection-AISearch'
5556

57+
@description('Name of aoai connection')
5658
var aoaiConnection = '${aiHubName}-connection-AIServices_aoai'
5759

5860
var kindAIServicesExists = aiServiceKind == 'AIServices'
@@ -69,6 +71,7 @@ resource searchService 'Microsoft.Search/searchServices@2024-06-01-preview' exis
6971
scope: resourceGroup(aiSearchServiceSubscriptionId, aiSearchServiceResourceGroupName)
7072
}
7173

74+
#disable-next-line BCP081
7275
resource aiHub 'Microsoft.MachineLearningServices/workspaces@2024-10-01-preview' = {
7376
name: aiHubName
7477
location: location

scenarios/Agents/setup/standard-agent-with-threadstorage/modules-standard/standard-ai-project.bicep

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ var resourceGroupName = resourceGroup().name
3333

3434
var projectConnectionString = '${location}.api.azureml.ms;${subscriptionId};${resourceGroupName};${aiProjectName}'
3535

36+
@description('Connection name for the CosmosDB resource')
3637
var cosmosConnectionName = '${aiProjectName}-connection-CosmosDBAccount'
3738

3839
resource cosmosDBAccount 'Microsoft.DocumentDB/databaseAccounts@2024-12-01-preview' existing = {
@@ -68,7 +69,7 @@ resource project_connection_cosmosdb 'Microsoft.MachineLearningServices/workspac
6869
parent: aiProject
6970
properties: {
7071
category: 'CosmosDB'
71-
target: 'https://${cosmosDBName}documents.azure.com:443/'
72+
target: 'https://${cosmosDBName}.documents.azure.com:443/'
7273
authType: 'AAD'
7374
metadata: {
7475
ApiType: 'Azure'

scenarios/Agents/setup/standard-agent-with-threadstorage/modules-standard/validate-existing-resources.bicep

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ var storageParts = split(aiStorageAccountResourceId, '/')
3232
var azureStorageSubscriptionId = storagePassedIn ? storageParts[2] : subscription().subscriptionId
3333
var azureStorageResourceGroupName = storagePassedIn ? storageParts[4] : resourceGroup().name
3434

35-
resource aiServiceAccount 'Microsoft.CognitiveServices/accounts@2023-10-01-preview' existing = if (aiServicesPassedIn) {
35+
resource aiServiceAccount 'Microsoft.CognitiveServices/accounts@2024-10-01' existing = if (aiServicesPassedIn) {
3636
name: last(split(aiServiceAccountResourceId, '/'))
3737
scope: resourceGroup(aiServiceAccountSubscriptionId, aiServiceAccountResourceGroupName)
3838
}

0 commit comments

Comments
 (0)