Home > Back-end >  How to extract TLS 1.X of all app services/web app running Azure
How to extract TLS 1.X of all app services/web app running Azure

Time:07-30

I'm currently searching away to extract a list of app services/web apps which are still using old TLS 1.0/1.1 from Azure.

Could you please help me with with?

Many thanks,

Patrick

CodePudding user response:

I tried in my environment. Please try the below powershell command to list all the apps with their tls minimum versions of "1.1 "or "1.0"

$groupname = "groupname”
$apps = Get-AzWebApp -ResourceGroupName $groupname
$names = $apps.Name
foreach($name in $names){
    $tls = (Get-AzWebApp -ResourceGroupName $groupname -Name $name).SiteConfig.MinTlsVersion

if ($tls -eq “1.1” -Or  $tls -eq “1.0”) {

    Write-Host "minTlsVersion of web app" $name "is" $tls
}
}

Output :

enter image description here

  • Related