mirror of
https://github.com/microsoft/autogen.git
synced 2026-02-19 09:34:18 -05:00
* big bang gitub workflows * add missing settings in local.settings.json * config refactor * fix devlead plan response * swap cosmos to table storage for metadata storage * unify config via options * azd-ify WIP * add qdrant bicep WIP * working azd provision setup * consolidate SK version in projects * replace localhost :) * add fqdn to options * httpclient fixes * add managed identity to the function and assign contrib role * qdrant endpoint setting * add container instances cleanup code + wait on termination to upload to Github * formatting fixes * add tables in bicep * local getting started WIP * add azure setup instructions * add the load-waf bits * docs WIP --------- Co-authored-by: Kosta Petan <Kosta.Petan@microsoft.com>
41 lines
1.4 KiB
Bicep
41 lines
1.4 KiB
Bicep
param name string
|
|
param location string = resourceGroup().location
|
|
param tags object = {}
|
|
|
|
@description('Name of the Application Insights resource')
|
|
param applicationInsightsName string = ''
|
|
|
|
@description('Specifies if Dapr is enabled')
|
|
param daprEnabled bool = false
|
|
|
|
@description('Name of the Log Analytics workspace')
|
|
param logAnalyticsWorkspaceName string
|
|
|
|
resource containerAppsEnvironment 'Microsoft.App/managedEnvironments@2023-04-01-preview' = {
|
|
name: name
|
|
location: location
|
|
tags: tags
|
|
properties: {
|
|
appLogsConfiguration: {
|
|
destination: 'log-analytics'
|
|
logAnalyticsConfiguration: {
|
|
customerId: logAnalyticsWorkspace.properties.customerId
|
|
sharedKey: logAnalyticsWorkspace.listKeys().primarySharedKey
|
|
}
|
|
}
|
|
daprAIInstrumentationKey: daprEnabled && !empty(applicationInsightsName) ? applicationInsights.properties.InstrumentationKey : ''
|
|
}
|
|
}
|
|
|
|
resource logAnalyticsWorkspace 'Microsoft.OperationalInsights/workspaces@2022-10-01' existing = {
|
|
name: logAnalyticsWorkspaceName
|
|
}
|
|
|
|
resource applicationInsights 'Microsoft.Insights/components@2020-02-02' existing = if (daprEnabled && !empty(applicationInsightsName)) {
|
|
name: applicationInsightsName
|
|
}
|
|
|
|
output defaultDomain string = containerAppsEnvironment.properties.defaultDomain
|
|
output id string = containerAppsEnvironment.id
|
|
output name string = containerAppsEnvironment.name
|