-
Notifications
You must be signed in to change notification settings - Fork 819
Expand file tree
/
Copy pathparameters.bicepparam
More file actions
85 lines (82 loc) · 2.43 KB
/
parameters.bicepparam
File metadata and controls
85 lines (82 loc) · 2.43 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
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
76
77
78
79
80
81
82
83
84
85
using 'main.bicep'
param myObject = {
any: any('foo')
array: array([])
base64ToString: base64ToString(base64('abc'))
base64ToJson: base64ToJson(base64('{"hi": "there"}')).hi
bool: bool(true)
concat: concat(['abc'], ['def'])
contains: contains('foo/bar', '/')
dataUriToString: dataUriToString(dataUri('abc'))
dateTimeAdd: dateTimeAdd(dateTimeFromEpoch(1680224438), 'P1D')
dateTimeToEpoch: dateTimeToEpoch(dateTimeFromEpoch(1680224438))
empty: empty([])
endsWith: endsWith('foo', 'o')
filter: filter([1, 2], i => i < 2)
first: first([124, 25])
flatten: flatten([['abc'], ['def']])
format: format('->{0}<-', 123)
guid: guid('asdf')
indexOf: indexOf('abc', 'b')
int: int(123)
intersection: intersection([1, 2, 3], [2, 3, 4])
items: items({ foo: 'abc', bar: 123 })
join: join(['abc', 'def', 'ghi'], '/')
last: last([1, 2])
lastIndexOf: lastIndexOf('abcba', 'b')
length: length([0, 1, 2])
loadFileAsBase64: loadFileAsBase64('test.txt')
loadJsonContent: loadJsonContent('test.json')
loadTextContent: loadTextContent('test.txt')
map: map(range(0, 3), i => 'Hi ${i}!')
max: max(1, 2, 3)
min: min(1, 2, 3)
padLeft: padLeft(13, 5)
range: range(0, 3)
reduce: reduce(['a', 'b', 'c'], '', (a, b) => '${a}-${b}')
replace: replace('abc', 'b', '/')
skip: skip([1, 2, 3], 1)
sort: sort(['c', 'd', 'a'], (a, b) => a < b)
split: split('a/b/c', '/')
startsWith: startsWith('abc', 'a')
string: string('asdf')
substring: substring('asdfasf', 3)
take: take([1, 2, 3], 2)
toLower: toLower('AiKInIniIN')
toObject: toObject(['a', 'b', 'c'], x => x, x => 'Hi ${x}!')
toUpper: toUpper('AiKInIniIN')
trim: trim(' adf asdf ')
union: union({ abc: 'def' }, { def: 'ghi' })
uniqueString: uniqueString('asd', 'asdf', 'asdf')
uri: uri('https://github.com', 'Azure/bicep')
uriComponent: uriComponent('UB*8h 0+=_)9h9n')
uriComponentToString: uriComponentToString('%20%25%20')
}
param myBool = true
param myInt = sys.int(myBool ? 123 : 456)
param myArray = [
(true ? 'a' : 'b')
!true
123 + 456
456 - 123
2 * 3
10 / 2
1 < 2
1 > 2
1 >= 2
1 <= 2
]
param myString = '''
THis
is
a
multiline
string!
'''
param kvSecret = az.getSecret('subId', 'rgName', 'kvName', 'secretName', 'secretVersion')
param kvSecretExpression = az.getSecret(
externalInput('subId'),
externalInput('rgName'),
externalInput('kvName'),
externalInput('secretName'),
externalInput('secretVersion'))