Using Console
Using CLI
az login
.
az webapp list --query "[].{name:name, resourceGroup:resourceGroup}"
This command will list all the available App Services in your AZURE account along with their resource group.
az webapp config set --name <app-name> --resource-group <resource-group> --min-tls-version 1.2
Replace <app-name>
with the name of your chosen App Service and <resource-group>
with its resource group.
This command will set the minimum TLS version to 1.2 for the chosen App Service, which is the recommended version for secure communication.
az webapp config show --name <app-name> --resource-group <resource-group> --query "minTlsVersion"
This command will return the minimum TLS version set for the chosen App Service. If it returns “1.2”, then the remediation is successful.
Using Python
pip install azure