Skip to content

Commit

Permalink
Update minimum TLS version enforcement (Azure#702)
Browse files Browse the repository at this point in the history
Co-authored-by: Brooke Hamilton <[email protected]>
  • Loading branch information
lisamurphy-msft and brooke-hamilton authored Apr 7, 2022
1 parent 0bc11e3 commit afae16d
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 11 deletions.
24 changes: 15 additions & 9 deletions src/bicep/mlz.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"_generator": {
"name": "bicep",
"version": "0.4.1272.37030",
"templateHash": "18245260038507882468"
"templateHash": "8556276802199947364"
}
},
"parameters": {
Expand Down Expand Up @@ -1477,7 +1477,7 @@
"_generator": {
"name": "bicep",
"version": "0.4.1272.37030",
"templateHash": "5240539463340820565"
"templateHash": "5175281369698486584"
}
},
"parameters": {
Expand Down Expand Up @@ -1700,7 +1700,7 @@
"_generator": {
"name": "bicep",
"version": "0.4.1272.37030",
"templateHash": "3206702832865512735"
"templateHash": "3591431991821729793"
}
},
"parameters": {
Expand All @@ -1724,11 +1724,14 @@
"apiVersion": "2019-06-01",
"name": "[parameters('storageAccountName')]",
"location": "[parameters('location')]",
"kind": "Storage",
"kind": "StorageV2",
"sku": {
"name": "[parameters('skuName')]"
},
"tags": "[parameters('tags')]"
"tags": "[parameters('tags')]",
"properties": {
"minimumTlsVersion": "TLS1_2"
}
}
],
"outputs": {
Expand Down Expand Up @@ -3151,7 +3154,7 @@
"_generator": {
"name": "bicep",
"version": "0.4.1272.37030",
"templateHash": "11486064324027397618"
"templateHash": "329959409495701935"
}
},
"parameters": {
Expand Down Expand Up @@ -3260,7 +3263,7 @@
"_generator": {
"name": "bicep",
"version": "0.4.1272.37030",
"templateHash": "3206702832865512735"
"templateHash": "3591431991821729793"
}
},
"parameters": {
Expand All @@ -3284,11 +3287,14 @@
"apiVersion": "2019-06-01",
"name": "[parameters('storageAccountName')]",
"location": "[parameters('location')]",
"kind": "Storage",
"kind": "StorageV2",
"sku": {
"name": "[parameters('skuName')]"
},
"tags": "[parameters('tags')]"
"tags": "[parameters('tags')]",
"properties": {
"minimumTlsVersion": "TLS1_2"
}
}
],
"outputs": {
Expand Down
6 changes: 4 additions & 2 deletions src/bicep/modules/storage-account.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,13 @@ param tags object = {}
resource storageAccount 'Microsoft.Storage/storageAccounts@2019-06-01' = {
name: storageAccountName
location: location
kind: 'Storage'
kind: 'StorageV2'
sku: {
name: skuName
}
tags: tags
properties: {
minimumTlsVersion: 'TLS1_2'
}
}

output id string = storageAccount.id
1 change: 1 addition & 0 deletions src/terraform/modules/virtual-network/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,6 @@ resource "azurerm_storage_account" "loganalytics" {
account_tier = "Standard"
account_replication_type = "LRS"
enable_https_traffic_only = true
min_tls_version = "TLS1_2"
tags = var.tags
}

0 comments on commit afae16d

Please sign in to comment.