-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmain.bicep
40 lines (34 loc) · 964 Bytes
/
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
targetScope = 'subscription'
param rgName string
param location string
param containerEnvironmentName string
resource resourceGroup 'Microsoft.Resources/resourceGroups@2023-07-01' = {
name: rgName
location: location
}
module servicebus 'modules/servicebus.bicep' = {
scope: resourceGroup
name: '${deployment().name}-servicebus'
params: {
name: 'dapr-pubsub${uniqueString(resourceGroup.id)}'
location: location
}
}
module containerEnvironment 'modules/environment.bicep' = {
scope: resourceGroup
name: '${deployment().name}-env'
params: {
containerEnvironmentName: containerEnvironmentName
location: location
}
}
module containerApps 'modules/apps.bicep' = {
scope: resourceGroup
name: '${deployment().name}-apps'
params: {
location: location
environmentName: containerEnvironment.outputs.environmentName
serviceBusName: servicebus.outputs.name
}
}
output uri string = containerApps.outputs.reactappUri