-
Notifications
You must be signed in to change notification settings - Fork 5
/
main.bicep
34 lines (27 loc) · 874 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
// Learn about bicep modules: https://docs.microsoft.com/en-us/azure/azure-resource-manager/bicep/modules
targetScope = 'subscription'
@description('Name for the resource group.')
param resourceGroupName string = 'OOA-rg'
@description('Location for all resources.')
param resourceGroupLocation string = 'westus'
resource ooaRG 'Microsoft.Resources/resourceGroups@2021-04-01' = {
name: resourceGroupName
location: resourceGroupLocation
}
@description('The name of your Web Site.')
var siteName = 'ooa-${uniqueString(ooaRG.id)}'
module frontendApp 'dotnetApp.bicep' = {
name: '${siteName}-frontend'
scope: ooaRG
// params: {
// location: ooaRG.location
// }
}
module functionApp 'functionApp.bicep' = {
name: '${siteName}-functionApp'
scope: ooaRG
// params: {
// location: ooaRG.location
// appInsightsLocation: ooaRG.location
// }
}