Skip to content

Commit d3b8687

Browse files
feat(FN-1501): add new collections and fileshare to bicep infra (#2369)
1 parent a442477 commit d3b8687

File tree

2 files changed

+51
-1
lines changed

2 files changed

+51
-1
lines changed

infrastructure/resource_group_level/modules/cosmosdb.bicep

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -482,6 +482,46 @@ var collectionsArray = [
482482
]
483483
}
484484
}
485+
}
486+
{
487+
name: 'utilisationData'
488+
properties: {
489+
resource: {
490+
id: 'utilisationData'
491+
shardKey: {
492+
_id: 'Hash'
493+
}
494+
indexes: [
495+
{
496+
key: {
497+
keys: [
498+
'_id'
499+
]
500+
}
501+
}
502+
]
503+
}
504+
}
505+
}
506+
{
507+
name: 'utilisationReports'
508+
properties: {
509+
resource: {
510+
id: 'utilisationReports'
511+
shardKey: {
512+
_id: 'Hash'
513+
}
514+
indexes: [
515+
{
516+
key: {
517+
keys: [
518+
'_id'
519+
]
520+
}
521+
}
522+
]
523+
}
524+
}
485525
}
486526
]
487527

infrastructure/resource_group_level/modules/storage.bicep

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ resource defaultBlobService 'Microsoft.Storage/storageAccounts/blobServices@2022
136136
resource defaultFileService 'Microsoft.Storage/storageAccounts/fileServices@2022-09-01' = {
137137
parent: storageAccount
138138
name: 'default'
139-
// TODO:FN-693 Note that the extant envrionments don't have
139+
// TODO:FN-693 Note that the extant environments don't have
140140
// 7 day soft deletes enabled. We may want to enable this functionality.
141141
properties: {
142142
shareDeleteRetentionPolicy: {
@@ -189,6 +189,16 @@ resource portalFileShare 'Microsoft.Storage/storageAccounts/fileServices/shares@
189189
}
190190
}
191191

192+
resource utilisationReportsFileShare 'Microsoft.Storage/storageAccounts/fileServices/shares@2022-09-01' = {
193+
parent: defaultFileService
194+
name: 'utilisation-reports'
195+
properties: {
196+
accessTier: 'TransactionOptimized'
197+
shareQuota: 5120
198+
enabledProtocols: 'SMB'
199+
}
200+
}
201+
192202
resource queues 'Microsoft.Storage/storageAccounts/queueServices/queues@2022-09-01' = [for queueName in queueNames: {
193203
parent: queueService
194204
name: queueName

0 commit comments

Comments
 (0)