diff --git a/infra/deploy_ai_foundry.bicep b/infra/deploy_ai_foundry.bicep index 604966b..79d049a 100644 --- a/infra/deploy_ai_foundry.bicep +++ b/infra/deploy_ai_foundry.bicep @@ -67,7 +67,7 @@ resource applicationInsights 'Microsoft.Insights/components@2020-02-02' = { Application_Type: 'web' publicNetworkAccessForIngestion: 'Enabled' publicNetworkAccessForQuery: 'Enabled' - WorkspaceResourceId: logAnalytics.id + WorkspaceResourceId: useExisting ? existingLogAnalyticsWorkspaceId : logAnalytics.id } } diff --git a/infra/main.bicep b/infra/main.bicep index b746251..ee8234d 100644 --- a/infra/main.bicep +++ b/infra/main.bicep @@ -83,6 +83,7 @@ resource azureAiServices 'Microsoft.CognitiveServices/accounts@2024-04-01-previe kind: 'AIServices' properties: { customSubDomainName: azureAiServicesName + publicNetworkAccess: 'Enabled' } }