-
Notifications
You must be signed in to change notification settings - Fork 1
/
main.bicep
35 lines (30 loc) · 1.06 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
param storageName string = toLower('${take('deployscript${uniqueString(resourceGroup().id)}', 22)}st')
param containerName string = toLower('${take('deployscript${uniqueString(resourceGroup().id)}', 22)}ci')
@description('Specify which type of dev environment to deploy')
@allowed([
'AzureCLI'
'AzurePowerShell'
])
param type string = 'AzureCLI'
@description('Use to specify the version to use for Azure CLI or AzurePowerShell, if no version is specified latest will be used for AzCLI and 5.6 for AzPwsh')
param toolVersion string = ''
param location string = resourceGroup().location
module storage './storage.bicep' = {
name: '${storageName}-deploy'
params: {
name: storageName
location: location
}
}
module container './containergroups.bicep' = {
name: '${containerName}-deploy'
params: {
name: containerName
location: location
storageName: storage.outputs.storageName
storageId: storage.outputs.resourceId
fileShareName: storage.outputs.fileShareName
type: type
toolVersion: toolVersion
}
}