Skip to content

Commit e45492e

Browse files
authored
Merge pull request #409 from microsoft/psl-stg-sfi-fix
fix: Added Minimal TLS version for storage account
2 parents 57593d8 + dafc77f commit e45492e

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

Deployment/bicep/azurestorageaccount.bicep

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,13 @@ param skuName string = 'Standard_LRS'
1010
@description('The kind of the storage account')
1111
param kind string = 'StorageV2'
1212

13+
@allowed([
14+
'TLS1_2'
15+
'TLS1_3'
16+
])
17+
@description('Optional. Set the minimum TLS version on request to storage. The TLS versions 1.0 and 1.1 are deprecated and not supported anymore.')
18+
param minimumTlsVersion string = 'TLS1_2'
19+
1320
resource storageAccount 'Microsoft.Storage/storageAccounts@2021-04-01' = {
1421
name: storageAccountName
1522
location: location
@@ -19,6 +26,7 @@ resource storageAccount 'Microsoft.Storage/storageAccounts@2021-04-01' = {
1926
kind: kind
2027
properties: {
2128
accessTier: 'Hot'
29+
minimumTlsVersion: minimumTlsVersion
2230
}
2331
}
2432

0 commit comments

Comments
 (0)