Skip to main content

Remediation

From Azure Portalโ€‹

  1. Login to Azure Portal using https://portal.azure.com.
  2. Go to App Services.
  3. For each App Service.
  4. Under Setting section, click on Configuration.
  5. Under the General Settings tab, set HTTPS Only to On under Platform 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