Skip to content

Commit f15077f

Browse files
committed
azurerm_storage_account - Remove TLS1_3 as an valid value for min_tls_version
1 parent 7ffd981 commit f15077f

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed

internal/services/storage/storage_account_resource.go

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1248,10 +1248,14 @@ func resourceStorageAccount() *pluginsdk.Resource {
12481248
}
12491249

12501250
resource.Schema["min_tls_version"] = &pluginsdk.Schema{
1251-
Type: pluginsdk.TypeString,
1252-
Optional: true,
1253-
Default: string(storageaccounts.MinimumTlsVersionTLSOneTwo),
1254-
ValidateFunc: validation.StringInSlice(storageaccounts.PossibleValuesForMinimumTlsVersion(), false),
1251+
Type: pluginsdk.TypeString,
1252+
Optional: true,
1253+
Default: string(storageaccounts.MinimumTlsVersionTLSOneTwo),
1254+
ValidateFunc: validation.StringInSlice([]string{
1255+
string(storageaccounts.MinimumTlsVersionTLSOneZero),
1256+
string(storageaccounts.MinimumTlsVersionTLSOneOne),
1257+
string(storageaccounts.MinimumTlsVersionTLSOneTwo),
1258+
}, false),
12551259
}
12561260

12571261
resource.Schema["queue_properties"] = &pluginsdk.Schema{

website/docs/r/storage_account.html.markdown

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ The following arguments are supported:
104104

105105
* `https_traffic_only_enabled` - (Optional) Boolean flag which forces HTTPS if enabled, see [here](https://docs.microsoft.com/azure/storage/storage-require-secure-transfer/) for more information. Defaults to `true`.
106106

107-
* `min_tls_version` - (Optional) The minimum supported TLS version for the storage account. Possible values are `TLS1_0`, `TLS1_1`, `TLS1_2` and `TLS1_3`. Defaults to `TLS1_2` for new storage accounts.
107+
* `min_tls_version` - (Optional) The minimum supported TLS version for the storage account. Possible values are `TLS1_0`, `TLS1_1` and `TLS1_2`. Defaults to `TLS1_2` for new storage accounts.
108108

109109
~> **Note:** Azure Services will require TLS 1.2+ by August 2025, please see this [announcement](https://azure.microsoft.com/en-us/updates/v2/update-retirement-tls1-0-tls1-1-versions-azure-services/) for more.
110110

0 commit comments

Comments
 (0)