forked from Azure-Samples/dotnet-container-app
-
Notifications
You must be signed in to change notification settings - Fork 0
/
aro.bicep
85 lines (79 loc) · 1.72 KB
/
aro.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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
param acrName string
param clusterName string
param aadClientId string
@secure()
param aadClientSecret string
param aadObjectId string
param rpObjectId string
param sqlserverName string
param sqlAdminLogin string
@secure()
param sqlAdminPassword string
param kvName string
param loadTestName string
param location string = resourceGroup().location
module acrModule 'Modules/ContainerRegistry.bicep' = {
name: 'acrDeploy'
params: {
acrName: acrName
location: location
}
}
module aroModuleDev 'Modules/OpenShift.bicep' = {
name: 'aroDeployDev'
params: {
clusterName: clusterName
domain: clusterName
location: location
aadClientId: aadClientId
aadClientSecret: aadClientSecret
aadObjectId: aadObjectId
rpObjectId: rpObjectId
}
}
module sqlModule 'Modules/SQLServer.bicep' = {
name: 'sqlDeploy'
params: {
sqlserverName: sqlserverName
location: location
sqlAdministratorLogin: sqlAdminLogin
sqlAdministratorLoginPassword: sqlAdminPassword
databaseName: 'TodoItem_DB'
}
}
var secrets = {
secrets: [
{
secretName: 'Secret01'
secretValue: 'Value01'
}
{
secretName: 'Secret02'
secretValue: 'Value02'
}
{
secretName: 'Secret03'
secretValue: 'Value03'
}
//{
// secretName: 'ConnString'
// secretValue: sqlModule.outputs.connectionString
//}
]
}
module keyVaultModule 'Modules/KeyVault.bicep' = {
name: 'keyVaultDeploy'
params: {
keyVaultName: kvName
location: location
objectId: '051c760b-9769-4f0f-9828-09197ff28b7c'
secretsObject: secrets
}
}
module loadTestModule 'Modules/LoadTest.bicep' = {
name: 'loadTestDeploy'
params:{
name: loadTestName
location: location
}
}