forked from Azure/bicep
-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.symbols.bicep
65 lines (58 loc) · 1.97 KB
/
main.symbols.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
var boolVal = true
//@[04:11) Variable boolVal. Type: true. Declaration start char: 0, length: 18
var vmProperties = {
//@[04:16) Variable vmProperties. Type: object. Declaration start char: 0, length: 173
diagnosticsProfile: {
bootDiagnostics: {
enabled: 123
storageUri: true
unknownProp: 'asdf'
}
}
evictionPolicy: boolVal
}
resource vm 'Microsoft.Compute/virtualMachines@2020-12-01' = {
//@[09:11) Resource vm. Type: Microsoft.Compute/virtualMachines@2020-12-01. Declaration start char: 0, length: 126
name: 'vm'
location: 'West US'
properties: vmProperties
}
var ipConfigurations = [for i in range(0, 2): {
//@[28:29) Local i. Type: int. Declaration start char: 28, length: 1
//@[04:20) Variable ipConfigurations. Type: object[]. Declaration start char: 0, length: 148
id: true
name: 'asdf${i}'
properties: {
madeUpProperty: boolVal
subnet: 'hello'
}
}]
resource nic 'Microsoft.Network/networkInterfaces@2020-11-01' = {
//@[09:12) Resource nic. Type: Microsoft.Network/networkInterfaces@2020-11-01. Declaration start char: 0, length: 140
name: 'abc'
properties: {
ipConfigurations: ipConfigurations
}
}
resource nicLoop 'Microsoft.Network/networkInterfaces@2020-11-01' = [for i in range(0, 2): {
//@[73:74) Local i. Type: int. Declaration start char: 73, length: 1
//@[09:16) Resource nicLoop. Type: Microsoft.Network/networkInterfaces@2020-11-01[]. Declaration start char: 0, length: 213
name: 'abc${i}'
properties: {
ipConfigurations: [
// TODO: fix this
ipConfigurations[i]
]
}
}]
resource nicLoop2 'Microsoft.Network/networkInterfaces@2020-11-01' = [for ipConfig in ipConfigurations: {
//@[74:82) Local ipConfig. Type: object. Declaration start char: 74, length: 8
//@[09:17) Resource nicLoop2. Type: Microsoft.Network/networkInterfaces@2020-11-01[]. Declaration start char: 0, length: 227
name: 'abc${ipConfig.name}'
properties: {
ipConfigurations: [
// TODO: fix this
ipConfig
]
}
}]