MP.AZR.1029 Require HTTPS and TLS 1.2 for production App Service apps
Production App Service apps should redirect HTTP requests to HTTPS and require inbound TLS 1.2 or later. This custom test checks production Microsoft.Web/sites resources; deployment slots are excluded. It includes App Service web apps and Function Apps. It is not APRL-mapped and does not assess application-level TLS settings or certificates.
Remediation action:
- In the Azure portal, open the app and select TLS/SSL settings.
- Set HTTPS Only to On.
- Before raising the minimum inbound TLS version, inventory clients and confirm they support TLS 1.2 or later; older clients will be rejected.
- Test the TLS change in a staging slot or a representative non-production app, then roll it out gradually while monitoring client and application errors.
- After compatibility is confirmed, set Minimum Inbound TLS Version to 1.2 or later and save.
- Apply the same baseline to any deployment slots if required by your release process; slots are not evaluated by this test.
Using Azure CLI for a web app:
az webapp update --name <app> --resource-group <resource-group> --https-only true
Set the minimum TLS version in the app's TLS/SSL settings in the portal.
Related links
- Configure TLS/SSL settings in Azure App Service
- Configure the minimum TLS version for an App Service app
%TestResult%