{"id":9293,"date":"2025-10-13T02:19:45","date_gmt":"2025-10-13T02:19:45","guid":{"rendered":"https:\/\/pariswells.com\/blog\/?p=9293"},"modified":"2025-10-13T02:19:46","modified_gmt":"2025-10-13T02:19:46","slug":"powershell-update-the-azure-storage-account-to-use-the-latest-tls-version-1-2","status":"publish","type":"post","link":"https:\/\/pariswells.com\/blog\/research\/powershell-update-the-azure-storage-account-to-use-the-latest-tls-version-1-2","title":{"rendered":"Powershell Update the Azure storage account to use the latest TLS version 1.2"},"content":{"rendered":"\n<pre class=\"wp-block-code\"><code class=\"\">\nConnect-AzAccount\n\n$storageAccounts = Get-AzStorageAccount\nforeach ($account in $storageAccounts) {\n    $resourceDetails = Get-AzResource -ResourceId $account.Id\n    if ($resourceDetails.Properties.minimumTlsVersion -ne \"TLS1_2\") {\n        Write-Output \"Updating TLS version for storage account: $($account.StorageAccountName)\"\n\n        # Update the storage account to use the latest TLS version\n        # uncomment the following line to actually update the storage account\n        #Set-AzStorageAccount -ResourceGroupName $account.ResourceGroupName -Name $account.StorageAccountName -MinimumTlsVersion \"TLS1_2\"\n    }\n}\nWrite-Output \"All storage accounts have been updated to use a minimum TLS version of 1.2\"<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-9293","post","type-post","status-publish","format-standard","hentry","category-research"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/posts\/9293","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/comments?post=9293"}],"version-history":[{"count":1,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/posts\/9293\/revisions"}],"predecessor-version":[{"id":9294,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/posts\/9293\/revisions\/9294"}],"wp:attachment":[{"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/media?parent=9293"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/categories?post=9293"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/tags?post=9293"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}