Protecting data in transit requires setting up secure channels between users and cloud services. Network traffic flows from the client to either Azure App Service or API Management, where transport layer security configurations encrypt the communication channel. To maintain high security, administrators must set the minimum protocol version to at least TLS 1.2 and disable legacy, insecure versions like TLS 1.0 and TLS 1.1. You can apply these settings using the Azure Portal or the Azure CLI depending on whether you prefer a graphical interface or command-line automation. Additionally, choosing strong, ECDHE-based cipher suites secures the connection against cryptographic weaknesses while legacy suites are phased out.
Securing custom domains requires active certificate management to prevent expired connections and trust issues. The workflow begins when you create or import a digital certificate inside Azure Key Vault, which serves as the centralized, secure storage. To establish a secure relationship, you must enable a managed identity on your App Service and grant it the Key Vault Certificate User role. This authorization allows the App Service to retrieve the certificate securely without using hardcoded credentials. Finally, you configure the App Service by selecting Private Certificates and binding the retrieved Key Vault certificate to your custom domain.
While standard TLS authenticates the server to the client, mutual TLS (mTLS) establishes two-way trust by authenticating the client as well. In API Management, you can enforce this secure relationship by validating incoming client certificates or applying an IP-filtering policy to limit access. The API gateway relies on trusted client certificate authority certificates that are securely stored in and retrieved from Key Vault. For containerized applications, developers can implement the spring-cloud-azure-starter-keyvault-jca library. This utility automatically builds mTLS bundles and applies them to RestTemplate or WebClient beans, ensuring that outbound application calls also use validated, mutually encrypted channels.
Are you a guardian of your domain? Lean how to leverage your aptitude in security to protect Microsoft Azure technologies, with a goal of earning the Microsoft Certified: Azure Security Engineer Associate certification!
Prepare and test your skills

Prepare and test your skills

You can set the minimum protocol version to at least TLS 1.2 and disable legacy versions TLS 1.0 and TLS 1.1 using the Azure Portal or the Azure CLI. Additionally, you should choose strong ECDHE-based cipher suites to secure the connection.
First, create or import a digital certificate inside Azure Key Vault. Then enable a managed identity on your App Service and grant it the Key Vault Certificate User role. Finally, configure the App Service by selecting Private Certificates and binding the retrieved Key Vault certificate to your custom domain.
In API Management, you can enforce mutual TLS by validating incoming client certificates or applying an IP-filtering policy. The API gateway uses trusted client certificate authority certificates that are securely stored in and retrieved from Key Vault.
For containerized applications, the spring-cloud-azure-starter-keyvault-jca library automatically builds mTLS bundles and applies them to RestTemplate or WebClient beans, ensuring that outbound application calls use validated, mutually encrypted channels.