-
Notifications
You must be signed in to change notification settings - Fork 22
/
Copy pathapp-config.bicep
69 lines (65 loc) · 1.34 KB
/
app-config.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
var networkConfig = {
dev: {
vnetName: 'dev-net'
vnetAddressPrefixes: [
'8.0.0.0/16'
]
subnets: [
{
subnetName: 'dev-subnet1'
addressPrefix: '8.0.0.0/24'
}
{
subnetName: 'dev-subnet2'
addressPrefix: '8.0.1.0/24'
}
]
}
test: {
vnetName: 'test-net'
vnetAddressPrefixes: [
'9.0.0.0/16'
]
subnets: [
{
subnetName: 'test-subnet1'
addressPrefix: '9.0.0.0/24'
}
{
subnetName: 'test-subnet2'
addressPrefix: '9.0.1.0/24'
}
]
}
prod: {
vnetName: 'prod-net'
vnetAddressPrefixes: [
'10.0.0.0/16'
]
subnets: [
{
subnetName: 'prod-subnet1'
addressPrefix: '10.0.0.0/24'
}
{
subnetName: 'prod-subnet2'
addressPrefix: '10.0.1.0/24'
}
]
}
}
resource configStore 'Microsoft.AppConfiguration/configurationStores@2021-03-01-preview' = {
name: 'tenant-config-store'
location: resourceGroup().location
sku: {
name: 'standard'
}
}
resource networkKeyValue 'Microsoft.AppConfiguration/configurationStores/keyValues@2021-03-01-preview' = {
parent: configStore
name: 'networkConfig'
properties: {
value: string(networkConfig)
//contentType: 'application/vnd.microsoft.appconfig.ff+json;charset=utf-8'
}
}