-
Notifications
You must be signed in to change notification settings - Fork 2
/
apps-env.bicep
75 lines (72 loc) · 1.76 KB
/
apps-env.bicep
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
param name string
param location string = resourceGroup().location
param tags object = {}
resource containerAppsEnvironment 'Microsoft.App/managedEnvironments@2024-10-02-preview' = { // @2022-10-01
name: name
location: location
tags: tags
properties: {
}
}
resource httpRouteConfig 'Microsoft.App/managedEnvironments/httpRouteConfigs@2024-10-02-preview' = {
parent: containerAppsEnvironment
name: 'routeconfig1'
location: location
properties: {
rules: [
{
description: 'App 1 rule'
routes: [
{
match: {
prefix: '/app1'
}
action: {
prefixRewrite: '/'
}
}
]
targets: [
{
containerApp: 'app1'
}
]
}
{
description: 'App 2 rule'
routes: [
{
match: {
prefix: '/app2'
}
action: {
prefixRewrite: '/'
}
}
]
targets: [
{
containerApp: 'app2'
}
]
}
{
description: 'App 3 rule'
routes: [
{
match: {
prefix: '/'
}
}
]
targets: [
{
containerApp: 'app3'
}
]
}
]
}
}
output name string = containerAppsEnvironment.name
output domain string = containerAppsEnvironment.properties.defaultDomain