-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdeploy.bicep
More file actions
72 lines (62 loc) · 1.52 KB
/
Copy pathdeploy.bicep
File metadata and controls
72 lines (62 loc) · 1.52 KB
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
param prefix string = 'mfappfile'
param location string = resourceGroup().location
var storageAccountName = '${prefix}${uniqueString(resourceGroup().id)}'
var mountPath = '/mounts/appservice'
resource storageAccount 'Microsoft.Storage/storageAccounts@2021-04-01' = {
name: storageAccountName
location: location
sku: {
name: 'Standard_LRS'
}
kind: 'StorageV2'
}
resource fileservices 'Microsoft.Storage/storageAccounts/fileServices@2021-09-01' = {
name: 'default'
parent: storageAccount
sku: {
name : 'Standard_RAGRS'
tier : 'Standard'
}
}
resource fileshare 'Microsoft.Storage/storageAccounts/fileServices/shares@2021-09-01' = {
name: 'appserviceshare'
parent: fileservices
properties: {
quota: 5120
accessTier : 'TransactionOptimized'
}
}
resource serverFarm 'Microsoft.Web/serverfarms@2020-06-01' = {
name: '${prefix}appplan'
location: location
sku: {
name: 'S1'
tier: 'Standard'
}
kind: 'app'
}
resource webApplication 'Microsoft.Web/sites@2021-03-01' = {
name: '${prefix}api'
location: location
properties: {
serverFarmId: serverFarm.id
siteConfig: {
appSettings: [
{
name: 'MountPath'
value: '../../..${mountPath}'
}
]
azureStorageAccounts: {
blobmount : {
type: 'AzureFiles'
accountName: storageAccount.name
shareName: fileshare.name
mountPath: mountPath
accessKey: storageAccount.listKeys().keys[0].value
}
}
}
}
kind: 'app'
}