From 64388c638554a465484b5132a6b168918575d5ef Mon Sep 17 00:00:00 2001 From: dsanchor Date: Fri, 11 Sep 2026 15:40:55 +0200 Subject: [PATCH 1/2] Add Foundry project dependency to chat deployment --- .../01-04-AI/07_Fraud_Intelligence/labautomation/main.bicep | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/03-Azure/01-04-AI/07_Fraud_Intelligence/labautomation/main.bicep b/03-Azure/01-04-AI/07_Fraud_Intelligence/labautomation/main.bicep index 5e516e4ae..14c403ffa 100644 --- a/03-Azure/01-04-AI/07_Fraud_Intelligence/labautomation/main.bicep +++ b/03-Azure/01-04-AI/07_Fraud_Intelligence/labautomation/main.bicep @@ -153,6 +153,9 @@ resource embeddingDeployment 'Microsoft.CognitiveServices/accounts/deployments@2 resource chatDeployment 'Microsoft.CognitiveServices/accounts/deployments@2025-06-01' = { parent: foundryAccount name: 'gpt-5.6-luna' + dependsOn: [ + foundryProject + ] properties: { model: { format: 'OpenAI' @@ -239,4 +242,4 @@ output alertManagerUrl string = 'https://${alertManager.properties.configuration output cosmosAccountName string = cosmosAccount.name output cosmosEndpoint string = cosmosAccount.properties.documentEndpoint output foundryAccountName string = foundryAccount.name -output foundryProjectName string = foundryProject.name \ No newline at end of file +output foundryProjectName string = foundryProject.name From 30971691ea1d286f250aa55dc3bccbaff02ca5c7 Mon Sep 17 00:00:00 2001 From: dsanchor Date: Fri, 11 Sep 2026 15:54:36 +0200 Subject: [PATCH 2/2] Add dependency on foundryAccount for foundryProject --- .../01-04-AI/07_Fraud_Intelligence/labautomation/main.bicep | 3 +++ 1 file changed, 3 insertions(+) diff --git a/03-Azure/01-04-AI/07_Fraud_Intelligence/labautomation/main.bicep b/03-Azure/01-04-AI/07_Fraud_Intelligence/labautomation/main.bicep index 14c403ffa..f9bb4d087 100644 --- a/03-Azure/01-04-AI/07_Fraud_Intelligence/labautomation/main.bicep +++ b/03-Azure/01-04-AI/07_Fraud_Intelligence/labautomation/main.bicep @@ -120,6 +120,9 @@ resource foundryAccount 'Microsoft.CognitiveServices/accounts@2025-06-01' = { resource foundryProject 'Microsoft.CognitiveServices/accounts/projects@2025-06-01' = { parent: foundryAccount name: foundryProjectName + dependsOn: [ + foundryAccount + ] location: location identity: { type: 'SystemAssigned'