From a2b4b673116f9182b892bb36daff82a4eeb46f6f Mon Sep 17 00:00:00 2001 From: dsanchor Date: Wed, 21 Oct 2026 13:12:14 +0200 Subject: [PATCH] Refactor AI project connections and dependencies Removed aiProjectAppInsightsConnection resource and updated dependencies for gpt5_4MiniDeployment. --- .../labautomation/main.bicep | 25 +++---------------- 1 file changed, 3 insertions(+), 22 deletions(-) diff --git a/03-Azure/01-04-AI/08_Predictive_Maintenance/labautomation/main.bicep b/03-Azure/01-04-AI/08_Predictive_Maintenance/labautomation/main.bicep index 92c461968..946f7e250 100644 --- a/03-Azure/01-04-AI/08_Predictive_Maintenance/labautomation/main.bicep +++ b/03-Azure/01-04-AI/08_Predictive_Maintenance/labautomation/main.bicep @@ -256,31 +256,12 @@ resource aiProject 'Microsoft.CognitiveServices/accounts/projects@2025-04-01-pre ] } -resource aiProjectAppInsightsConnection 'Microsoft.CognitiveServices/accounts/projects/connections@2025-04-01-preview' = { - parent: aiProject - name: applicationInsightsName - properties: { - authType: 'ApiKey' - category: 'AppInsights' - target: applicationInsights.id - useWorkspaceManagedIdentity: false - isSharedToAll: true - credentials: { - key: applicationInsights.properties.InstrumentationKey - } - metadata: { - ApiType: 'Azure' - ResourceId: applicationInsights.id - } - } -} - resource gpt5_4MiniDeployment 'Microsoft.CognitiveServices/accounts/deployments@2025-04-01-preview' = { parent: aiFoundry name: 'gpt-5.4-mini' - dependsOn: [ - aiProjectAppInsightsConnection - ] + dependsOn: [ + aiProject + ] sku: { capacity: 50 name: 'GlobalStandard'