# Azure: Front Door and Application Gateway have different TLS defaults.

- Kind: guide (not rated)
- Action: Check the settings for the Azure service that accepts your visitors’ connections.
- Added: 2026-12-03
- Updated: 2026-12-03
- Web page: https://tldrtls.com/azure/

## Settings by Azure service

Find the service behind your public hostname. Front Door sets TLS policy per custom domain, while Application Gateway uses a gateway policy. If you run both, each handles a separate connection.

| Service | Set this | If you do nothing |
| --- | --- | --- |
| Front Door (Standard, Premium) | Keep `TLSv1.2_2023` and the `Standard` key exchange policy | Those two. TLS 1.2 and 1.3, post-quantum key exchange offered |
| Application Gateway v2 | `AppGwSslPolicy20220101S`, or a `CustomV2` policy with minimum `TLSv1_3` | `AppGwSslPolicy20220101`, which allows CBC ciphers. Gateways made with an old API version get a TLS 1.0 policy |
| App Service | Nothing yet | Post-quantum key exchange is being rolled out |

## Front Door

Front Door only speaks TLS 1.2 and 1.3. Two separate settings on each custom domain control the rest.

- **TLS policy** sets versions and ciphers. The default, `TLSv1.2_2023`, allows only GCM ciphers. `TLSv1.2_2022` adds CBC ciphers back, so move off it. TLS 1.3 is always on.
- **TLS key exchange policy** sets the groups. The default, `Standard`, includes X25519MLKEM768. It reached general availability in November 2026.

Both are under **Domains** in the Front Door profile in the portal.

Post-quantum key exchange covers the client to Front Door. The connection from Front Door to your origin is separate and this setting does not change it.

Front Door classic can't choose ciphers. Microsoft's advice is to migrate to Standard or Premium.

## Application Gateway

Use the v2 SKU. TLS 1.3 exists only there.

- **TLS 1.2 still needed:** `AppGwSslPolicy20220101S`. TLS 1.2 and 1.3 with GCM ciphers only.
- **TLS 1.3 only:** a `CustomV2` policy with the minimum version set to `TLSv1_3`.

See what a gateway uses:

```sh
az network application-gateway ssl-policy show \
    -g RESOURCE_GROUP --gateway-name GATEWAY_NAME
```

Set the predefined policy:

```sh
az network application-gateway ssl-policy set \
    -g RESOURCE_GROUP --gateway-name GATEWAY_NAME \
    --policy-type Predefined -n AppGwSslPolicy20220101S
```

Or TLS 1.3 only:

```sh
az network application-gateway ssl-policy set \
    -g RESOURCE_GROUP --gateway-name GATEWAY_NAME \
    --policy-type CustomV2 --min-protocol-version TLSv1_3
```

Microsoft ended TLS 1.0 and 1.1 on Application Gateway on 31 August 2025.

We found nothing in Microsoft's documentation about [post-quantum key exchange](https://tldrtls.com/post-quantum-key-exchange.md) on Application Gateway. If that matters to you, put Front Door in front of it.

## App Service and Functions

Microsoft said on 9 November 2026 that it had started rolling out X25519MLKEM768 for inbound connections to App Service, region by region. There is no switch. Run the check below to see whether your app has it yet.

## Check the result

Replace `example.com` with your public hostname. With OpenSSL 3.5 or later, the first command asks specifically for hybrid key exchange. Look for `X25519MLKEM768` as the negotiated group. The second ([get weeb](https://tldrtls.com/checking-tools.md)) shows which TLS versions it accepts.

```sh
openssl s_client -connect example.com:443 -groups X25519MLKEM768 -brief </dev/null
weeb probe example.com --fix
```

## Sources

1. [Microsoft Learn: TLS policy overview for Azure Application Gateway](https://learn.microsoft.com/en-us/azure/application-gateway/application-gateway-ssl-policy-overview) (fetched 2026-12-03)
2. [Microsoft Learn: az network application-gateway ssl-policy](https://learn.microsoft.com/en-us/cli/azure/network/application-gateway/ssl-policy) (fetched 2026-12-03)
3. [Microsoft Learn: Configure an Azure Front Door TLS policy](https://learn.microsoft.com/en-us/azure/frontdoor/tls-policy) (fetched 2026-12-03)
4. [Microsoft Learn: Azure Front Door TLS key exchange policy](https://learn.microsoft.com/en-us/azure/frontdoor/tls-key-exchange-policy) (fetched 2026-12-03)
5. [Microsoft Learn: TLS encryption with Azure Front Door](https://learn.microsoft.com/en-us/azure/frontdoor/end-to-end-tls) (fetched 2026-12-03)
6. [Azure App Service team: Preparing App Service and Functions TLS for post-quantum cryptography](https://azure.github.io/AppService/2026/11/09/post-quantum-tls-app-service-azure-functions.html) (fetched 2026-12-03)

## Changelog

- 2026-12-03: Clarified where to apply the policy and how to read the endpoint check.
- 2026-12-03: First version. Names taken from Microsoft documentation on this date. Commands not run by us.
