-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathmain.bicep
55 lines (45 loc) · 1.09 KB
/
main.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
targetScope = 'subscription'
@description('Deploy the blob example')
param blobExample bool = false
@description('Deploy the message queue example')
param queueExample bool = false
@description('Deploy the storage table example')
param tableExample bool = false
@description('Deploy the file share example')
param fileExample bool = false
param location string = deployment().location
resource rg 'Microsoft.Resources/resourceGroups@2021-04-01' = {
name: 'rg-upload-to-storage-example'
location: location
tags: {
'application': 'azure-bicep-upload-data-to-storage'
}
}
module blob 'modules/blob.bicep' = if (blobExample) {
name: 'blob-example'
scope: rg
params: {
location: location
}
}
module queue 'modules/queue.bicep' = if (queueExample) {
name: 'queue-example'
scope: rg
params: {
location: location
}
}
module table 'modules/table.bicep' = if (tableExample) {
name: 'table-example'
scope: rg
params: {
location: location
}
}
module file 'modules/file.bicep' = if (fileExample) {
name: 'file-example'
scope: rg
params: {
location: location
}
}