Skip to content

Commit 8f00a73

Browse files
added dependson to fix aiservice deployment issue
1 parent dd78666 commit 8f00a73

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

infra/main.bicep

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -992,6 +992,9 @@ var aiFoundryAiProjectName = aiFoundryAiProjectConfiguration.?name ?? 'aifp-${so
992992

993993
resource aiServices 'Microsoft.CognitiveServices/accounts@2025-04-01-preview' existing = {
994994
name: aiFoundryAiServicesResourceName
995+
dependsOn:[
996+
aiFoundryAiServices
997+
]
995998
}
996999

9971000
var aiProjectDescription = 'AI Foundry Project'
@@ -1007,9 +1010,6 @@ resource aiFoundryProject 'Microsoft.CognitiveServices/accounts/projects@2025-04
10071010
description: aiProjectDescription
10081011
displayName: aiFoundryAiProjectName
10091012
}
1010-
dependsOn:[
1011-
aiServices
1012-
]
10131013
}
10141014

10151015
resource aiUser 'Microsoft.Authorization/roleDefinitions@2022-04-01' existing = {
@@ -1268,11 +1268,11 @@ module containerApp 'br/public:avm/res/app/container-app:0.14.2' = if (container
12681268
name: 'APPLICATIONINSIGHTS_CONNECTION_STRING'
12691269
value: applicationInsights.outputs.connectionString
12701270
}
1271-
// {
1272-
// name: 'AZURE_AI_AGENT_PROJECT_CONNECTION_STRING'
1273-
// value: '${toLower(replace(azureOpenAILocation,' ',''))}.api.azureml.ms;${subscription().subscriptionId};${resourceGroup().name};${aiFoundryAiProjectName}'
1274-
// //Location should be the AI Foundry AI Project location
1275-
// }
1271+
{
1272+
name: 'AZURE_AI_AGENT_PROJECT_CONNECTION_STRING'
1273+
value: '${toLower(replace(azureOpenAILocation,' ',''))}.api.azureml.ms;${subscription().subscriptionId};${resourceGroup().name};${aiFoundryAiProjectName}'
1274+
//Location should be the AI Foundry AI Project location
1275+
}
12761276
{
12771277
name: 'AZURE_AI_SUBSCRIPTION_ID'
12781278
value: subscription().subscriptionId

0 commit comments

Comments
 (0)