-
Notifications
You must be signed in to change notification settings - Fork 1
/
fn-storage.bicep
37 lines (31 loc) · 941 Bytes
/
fn-storage.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
//
// Deploys an Azure Functions app
// with associated storage account
//
@description('Unique suffix for all resources in this deployment')
param suffix string = uniqueString(resourceGroup().id)
@description('Location for all resources.')
param location string = resourceGroup().location
@description('Optional application settings environment vars')
param configuration array = []
module storage '../Storage/storage.bicep' = {
name: 'storage'
params: {
suffix: suffix
location: location
}
}
module fn 'fn.bicep' = {
name: 'fn'
params: {
storageName: storage.outputs.result.name
suffix: suffix
location: location
configuration: configuration
}
}
output fn object = fn.outputs.result
output storage object = storage.outputs.result
output principal string = fn.outputs.principal
output functionAppName string = fn.outputs.functionAppName
output storageName string = storage.outputs.storageName