-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathcontainer-apps.bicep
More file actions
38 lines (34 loc) · 1.11 KB
/
container-apps.bicep
File metadata and controls
38 lines (34 loc) · 1.11 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
param name string
param location string = resourceGroup().location
param tags object = {}
param containerAppsEnvironmentName string = ''
param containerRegistryName string = ''
param logAnalyticsWorkspaceName string = ''
param applicationInsightsName string = ''
param daprEnabled bool = false
param vnetName string
param vnetInternal bool = true
module containerAppsEnvironment 'container-apps-environment.bicep' = {
name: '${name}-container-apps-environment'
params: {
name: containerAppsEnvironmentName
location: location
tags: tags
logAnalyticsWorkspaceName: logAnalyticsWorkspaceName
applicationInsightsName: applicationInsightsName
daprEnabled: daprEnabled
vnetName: vnetName
vnetInternal: vnetInternal
}
}
module containerRegistry 'container-registry.bicep' = {
name: '${name}-container-registry'
params: {
name: containerRegistryName
location: location
tags: tags
}
}
output environmentName string = containerAppsEnvironment.outputs.name
output registryLoginServer string = containerRegistry.outputs.loginServer
output registryName string = containerRegistry.outputs.name