Skip to content

Commit afd22eb

Browse files
committed
remove tls1.0, tls1.1 completely
1 parent d012873 commit afd22eb

5 files changed

Lines changed: 36 additions & 546 deletions

File tree

src/azure-cli/azure/cli/command_modules/storage/_breaking_change.py

Lines changed: 0 additions & 14 deletions
This file was deleted.

src/azure-cli/azure/cli/command_modules/storage/_params.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -388,10 +388,10 @@ def load_arguments(self, _): # pylint: disable=too-many-locals, too-many-statem
388388
'be configured for public access. Note that setting this property to true does '
389389
'not enable anonymous access to any data in the account. The additional step of configuring the '
390390
'public access setting for a container is required to enable anonymous access.')
391-
c.argument('min_tls_version', arg_type=get_enum_type(t_tls_version),
391+
c.argument('min_tls_version', arg_type=get_enum_type(['TLS1_2', 'TLS1_3']),
392392
help='The minimum TLS version to be permitted on requests to storage. '
393-
' Values TLS1_0 and TLS1_1 have been retired on 2026/02/03 and will be removed on 2026/03/03.'
394-
' Microsoft recommends setting MinimumTlsVersion to TLS1_2')
393+
'Values TLS1_0 and TLS1_1 have been retired on 2026/02/03.'
394+
'Microsoft recommends setting MinimumTlsVersion to TLS1_2')
395395
c.argument('allow_shared_key_access', allow_shared_key_access_type)
396396
c.argument('edge_zone', edge_zone_type)
397397
c.argument('identity_type', arg_type=get_enum_type(t_identity_type), arg_group='Identity',
@@ -507,10 +507,10 @@ def load_arguments(self, _): # pylint: disable=too-many-locals, too-many-statem
507507
'in the account may be configured for public access. Note that setting this property to true does '
508508
'not enable anonymous access to any data in the account. The additional step of configuring the '
509509
'public access setting for a container is required to enable anonymous access.')
510-
c.argument('min_tls_version', arg_type=get_enum_type(t_tls_version),
510+
c.argument('min_tls_version', arg_type=get_enum_type(['TLS1_2', 'TLS1_3']),
511511
help='The minimum TLS version to be permitted on requests to storage. '
512-
' Values TLS1_0 and TLS1_1 have been retired on 2026/02/03 and will be removed on 2026/03/03.'
513-
' Microsoft recommends setting MinimumTlsVersion to TLS1_2')
512+
'Values TLS1_0 and TLS1_1 have been retired on 2026/02/03. '
513+
'Microsoft recommends setting MinimumTlsVersion to TLS1_2')
514514
c.argument('allow_shared_key_access', allow_shared_key_access_type)
515515
c.argument('identity_type', arg_type=get_enum_type(t_identity_type), arg_group='Identity',
516516
help='The identity type.')

src/azure-cli/azure/cli/command_modules/storage/operations/account.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -261,9 +261,6 @@ def create_storage_account(cmd, resource_group_name, account_name, sku=None, loc
261261
params.encryption.require_infrastructure_encryption = require_infrastructure_encryption
262262

263263
if min_tls_version:
264-
if min_tls_version in ['TLS1_0', 'TLS1_1']:
265-
logger.warning('TLS 1.0 and TLS 1.1 have been retired on 2026/02/03, will use TLS 1.2 instead.')
266-
min_tls_version = 'TLS1_2'
267264
params.minimum_tls_version = min_tls_version
268265

269266
if allow_shared_key_access is not None:
@@ -685,9 +682,6 @@ def update_storage_account(cmd, instance, sku=None, tags=None, custom_domain=Non
685682
params.allow_blob_public_access = allow_blob_public_access
686683

687684
if min_tls_version:
688-
if min_tls_version in ['TLS1_0', 'TLS1_1']:
689-
logger.warning('TLS 1.0 and TLS 1.1 have been retired on 2026/02/03, will use TLS 1.2 instead.')
690-
min_tls_version = 'TLS1_2'
691685
params.minimum_tls_version = min_tls_version
692686

693687
if allow_shared_key_access is not None:

0 commit comments

Comments
 (0)