Remediation
From Azure Portalβ
- Login to Azure Portal using https://portal.azure.com.
- Go to
App Services
. - For each App Service.
- Under
Setting
section, click onConfiguration
. - Under the
General Settings
tab, setHTTPS Only
toOn
underPlatform Settings
.
From Azure CLIβ
To set HTTPS-only traffic value for an existing app, run the following command:
az webapp update --resource-group <RESOURCE_GROUP_NAME> --name <APP_NAME> --set httpsOnly=true
From PowerShellβ
Set-AzWebApp -ResourceGroupName <RESOURCE_GROUP_NAME> -Name <APP_NAME> -HttpsOnly $true