Skip to content

Commit f277771

Browse files
authored
Explicitly set https required (#581)
1 parent b4c45b1 commit f277771

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

infra/core/storage/storage-account.bicep

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ param deleteRetentionPolicy object = {}
1313
param dnsEndpointType string = 'Standard'
1414
param kind string = 'StorageV2'
1515
param minimumTlsVersion string = 'TLS1_2'
16+
param requireHttpsConnection bool = true
1617
@allowed([ 'Enabled', 'Disabled' ])
1718
param publicNetworkAccess string = 'Disabled'
1819
param sku object = { name: 'Standard_LRS' }
@@ -38,6 +39,7 @@ resource storage 'Microsoft.Storage/storageAccounts@2022-05-01' = {
3839
defaultAction: 'Allow'
3940
}
4041
publicNetworkAccess: publicNetworkAccess
42+
supportsHttpsTrafficOnly: requireHttpsConnection
4143
}
4244

4345
resource blobServices 'blobServices' = if (!empty(containers)) {

0 commit comments

Comments
 (0)