File tree Expand file tree Collapse file tree 3 files changed +14
-0
lines changed Expand file tree Collapse file tree 3 files changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -25,12 +25,19 @@ param publicNetworkAccess string = 'Enabled'
25
25
param sku object = { name : 'Standard_LRS' }
26
26
@allowed ([ 'None' , 'AzureServices' ])
27
27
param bypass string = 'AzureServices'
28
+ param storageInfrastructureEncryption string = 'Disabled'
28
29
29
30
var networkAcls = (publicNetworkAccess == 'Enabled' ) ? {
30
31
bypass : bypass
31
32
defaultAction : 'Allow'
32
33
} : { defaultAction : 'Deny' }
33
34
35
+ var encryption = (storageInfrastructureEncryption == 'Enabled' ) ? {
36
+ requireInfrastructureEncryption : true
37
+ } : {
38
+ requireInfrastructureEncryption : false
39
+ }
40
+
34
41
resource storage 'Microsoft.Storage/storageAccounts@2022-05-01' = {
35
42
name : name
36
43
location : location
@@ -49,6 +56,7 @@ resource storage 'Microsoft.Storage/storageAccounts@2022-05-01' = {
49
56
networkAcls : networkAcls
50
57
publicNetworkAccess : publicNetworkAccess
51
58
supportsHttpsTrafficOnly : supportsHttpsTrafficOnly
59
+ encryption : encryption
52
60
}
53
61
54
62
resource blobServices 'blobServices' = if (!empty (containers )) {
Original file line number Diff line number Diff line change @@ -36,6 +36,7 @@ param storageResourceGroupName string = '' // Set in main.parameters.json
36
36
param storageResourceGroupLocation string = location
37
37
param storageContainerName string = 'content'
38
38
param storageSkuName string // Set in main.parameters.json
39
+ param storageInfrastructureEncryption string // Set in main.parameters.json
39
40
40
41
param userStorageAccountName string = ''
41
42
param userStorageContainerName string = 'user-content'
@@ -662,6 +663,7 @@ module storage 'core/storage/storage-account.bicep' = {
662
663
publicAccess : 'None'
663
664
}
664
665
]
666
+ storageInfrastructureEncryption : storageInfrastructureEncryption
665
667
}
666
668
}
667
669
@@ -688,6 +690,7 @@ module userStorage 'core/storage/storage-account.bicep' = if (useUserUpload) {
688
690
publicAccess : 'None'
689
691
}
690
692
]
693
+ storageInfrastructureEncryption : storageInfrastructureEncryption
691
694
}
692
695
}
693
696
Original file line number Diff line number Diff line change 80
80
"storageSkuName" : {
81
81
"value" : " ${AZURE_STORAGE_SKU=Standard_LRS}"
82
82
},
83
+ "storageInfrastructureEncryption" : {
84
+ "value" : " ${AZURE_STORAGE_INFRA_ENCRYPTION}"
85
+ },
83
86
"appServicePlanName" : {
84
87
"value" : " ${AZURE_APP_SERVICE_PLAN}"
85
88
},
You can’t perform that action at this time.
0 commit comments