-
Notifications
You must be signed in to change notification settings - Fork 1
/
main.bicep
37 lines (32 loc) · 1.02 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
targetScope = 'subscription'
param rgName string
param location string
param containerEnvironmentName string
param storageContainerName string
param managedIdentityName string
resource resourceGroup 'Microsoft.Resources/resourceGroups@2021-04-01' = {
name: rgName
location: location
}
module storageAccount 'modules/storage.bicep' = {
scope: resourceGroup
name: '${deployment().name}-stg'
params: {
storageAccountName: 'stg${uniqueString(resourceGroup.id)}'
location: location
managedIdentityName: managedIdentityName
}
}
module containerApps 'modules/containerapp.bicep' = {
scope: resourceGroup
name: '${deployment().name}-apps'
params: {
containerEnvironmentName: containerEnvironmentName
storageAccountName: storageAccount.outputs.name
storageContainerName: storageContainerName
location: location
managedIdentityName: storageAccount.outputs.managedIdentityName
}
}
output uri string = containerApps.outputs.nodeAppUri
output workspaceId string = containerApps.outputs.workspaceId