SV-276305r1150105_rule
V-276305
SRG-APP-000172-DB-000075
MSQL-D0-008300
CAT I
10
Run the following PowerShell script to set the Azure SQL Managed Instance MinimalTLSversion to the latest available TLS version:
##This is an example script##
$ResourceGroup = '<resource group name here>'
$ManagedInstance = '<Azure SQL Managed Instance name here>'
$TLSmax = (Get-Command -Name set-azsqlinstance -ParameterName 'minimaltlsversion').parameters['minimaltlsversion'].attributes.where({$_ -is [ValidateSet] }).ValidValues | Select-Object -Last 1
Set-AzSqlInstance -ResourceGroupName $ResourceGroup -Name $ManagedInstance -MinimalTlsVersion $TLSmax
References: https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/minimal-tls-version-configure?view=azuresql-mi
Verify the MinimalTLSversion using the following PowerShell script:
$Subscription = 'SubscriptionValueHere'
$Environment = 'EnvironmentTypeHere'
Connect-AzAccount -Subscription $Subscription -Environment $Environment
$ResourceGroup = 'ResourceGroupHere'
$ManagedInstance = 'ManagedInstanceHere'
$TLSmax = (Get-Command -Name set-azsqlinstance -ParameterName 'minimaltlsversion').parameters['minimaltlsversion'].attributes.where({$_ -is [ValidateSet] }).ValidValues Select-Object -Last 1
$TLScur = (Get-AzSqlInstance -ResourceGroupName $ResourceGroup -Name $ManagedInstance).MinimalTlsVersion
Write-Host "Latest TLS Version : [$TlSMax]"
Write-Host "Current TLS Version : [$TLScur]"
Verify that the minimum TLS version property is set to the latest available TLS version. If a less secure TLS version is set and not documented as required by the supported application, this is a finding.
V-276305
False
MSQL-D0-008300
Verify the MinimalTLSversion using the following PowerShell script:
$Subscription = 'SubscriptionValueHere'
$Environment = 'EnvironmentTypeHere'
Connect-AzAccount -Subscription $Subscription -Environment $Environment
$ResourceGroup = 'ResourceGroupHere'
$ManagedInstance = 'ManagedInstanceHere'
$TLSmax = (Get-Command -Name set-azsqlinstance -ParameterName 'minimaltlsversion').parameters['minimaltlsversion'].attributes.where({$_ -is [ValidateSet] }).ValidValues Select-Object -Last 1
$TLScur = (Get-AzSqlInstance -ResourceGroupName $ResourceGroup -Name $ManagedInstance).MinimalTlsVersion
Write-Host "Latest TLS Version : [$TlSMax]"
Write-Host "Current TLS Version : [$TLScur]"
Verify that the minimum TLS version property is set to the latest available TLS version. If a less secure TLS version is set and not documented as required by the supported application, this is a finding.
M
5711