-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathstorage-file-share.bicep
37 lines (33 loc) · 1.13 KB
/
storage-file-share.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
@description('Name of the resource.')
param name string
@description('Name for the Storage Account associated with the file share.')
param storageAccountName string
@description('Name for the File Service associated with the file share.')
param fileServiceName string
@description('Access tier for the File Share. Defaults to Hot.')
@allowed([
'Hot'
'Cool'
'Premium'
'TransactionOptimized'
])
param accessTier string = 'Hot'
resource fileService 'Microsoft.Storage/storageAccounts/fileServices@2023-05-01' existing = {
name: '${storageAccountName}/${fileServiceName}'
}
resource fileShare 'Microsoft.Storage/storageAccounts/fileServices/shares@2023-05-01' = {
name: name
parent: fileService
properties: {
accessTier: accessTier
enabledProtocols: 'SMB'
metadata: {}
shareQuota: 5120
}
}
@description('The deployed Storage file share resource.')
output resource resource = fileShare
@description('ID for the deployed Storage file share resource.')
output id string = fileShare.id
@description('Name for the deployed Storage file share resource.')
output name string = fileShare.name