|
| 1 | +--- |
| 2 | +title: Tutorial - Integrate Azure Spring Cloud with Azure Load Balance Solutions |
| 3 | +description: How to integrate Azure Spring Cloud with Azure Load Balance Solutions |
| 4 | +author: MikeDodaro |
| 5 | +ms.author: brendm |
| 6 | +ms.service: spring-cloud |
| 7 | +ms.topic: how-to |
| 8 | +ms.date: 04/20/2020 |
| 9 | +--- |
| 10 | + |
| 11 | +# Integrate Azure Spring Cloud with Azure Load Balance Solutions |
| 12 | + |
| 13 | +Azure Spring Cloud supports microservices on Azure. Increasing business can require multiple data centers with management of multiple instances of Azure Spring Cloud. |
| 14 | + |
| 15 | +Azure already provides different load-balance solutions. There are three options to integrate Azure Spring Cloud with Azure load-balance solutions: |
| 16 | + |
| 17 | +1. Integrate Azure Spring Cloud with Azure Traffic Manager |
| 18 | +2. Integrate Azure Spring Cloud with Azure App Gateway |
| 19 | +3. Integrate Azure Spring Cloud with Azure Front Door |
| 20 | + |
| 21 | +## Prerequisites |
| 22 | + |
| 23 | +* Azure Spring Cloud: [How to create an Azure spring cloud service](https://docs.microsoft.com/azure/spring-cloud/spring-cloud-quickstart-launch-app-portal) |
| 24 | +* Azure Traffic Manager: [How to create a traffic manager](https://docs.microsoft.com/azure/traffic-manager/quickstart-create-traffic-manager-profile/) |
| 25 | +* Azure App Gateway: [How to create an application gateway](https://docs.microsoft.com/azure/application-gateway/quick-create-portal) |
| 26 | +* Azure Front Door: [How to create a front door](https://docs.microsoft.com/azure/frontdoor/quickstart-create-front-door) |
| 27 | + |
| 28 | +## Integrate Azure Spring Cloud with Azure Traffic Manager |
| 29 | + |
| 30 | +To integrate Azure spring cloud with Traffic Manager, add its public endpoints as traffic manager’s endpoints and then configure custom domain for both traffic manager and Azure spring cloud. |
| 31 | + |
| 32 | +### Add Endpoint in Traffic Manager |
| 33 | +Add endpoints in traffic manager: |
| 34 | +1. Specify **Type** to be *External endpoint*. |
| 35 | +1. Input fully qualified domain name (FQDN) of each Azure spring cloud public endpoint. |
| 36 | +1. Click **OK**. |
| 37 | + |
| 38 | +  |
| 39 | +  |
| 40 | + |
| 41 | +### Configure Custom Domain |
| 42 | +To finish the configuration: |
| 43 | +1. Sign in to the website of your domain provider, and create a CNAME record mapping from your custom domain to traffic manager’s Azure default domain name. |
| 44 | + |
| 45 | +1. Add above custom domain binding to traffic manager to Azure spring cloud corresponding app service and upload SSL certificate there. |
| 46 | + |
| 47 | +  |
| 48 | + |
| 49 | +## Integrate Azure Spring Cloud with Azure App Gateway |
| 50 | + |
| 51 | +To integrate with azure spring cloud service, complete the following configurations: |
| 52 | + |
| 53 | +### Configure Backend Pool |
| 54 | +1. Specify **Target type** as *IP address* or *FQDN*. |
| 55 | +1. Enter your Azure spring cloud public endpoints. |
| 56 | + |
| 57 | +  |
| 58 | + |
| 59 | +### Add Custom Probe |
| 60 | +1. Select **Health Probes** then **Add** to open custom **Probe** dialog. |
| 61 | +1. The key point is to select *Yes* for **Pick host name from backend HTTP settings** option. |
| 62 | + |
| 63 | +  |
| 64 | + |
| 65 | +### Configure Http Setting |
| 66 | +1. Select **Http Settings** then **Add** to add an HTTP setting. |
| 67 | +1. **Override with new host name:** select *Yes*. |
| 68 | +1. **Host name override**: select **Pick host name from backend target**. |
| 69 | +1. **Use custom probe**: select *Yes* and pick the custom probe created above. |
| 70 | + |
| 71 | +  |
| 72 | + |
| 73 | +## Integrate Azure Spring Cloud with Azure Front Door |
| 74 | + |
| 75 | +To integrate with Azure Spring Cloud service and configure backend pool, |
| 76 | +1. **Add backend pool**. |
| 77 | +1. Specify the backend endpoint by adding host. |
| 78 | + |
| 79 | +  |
| 80 | + |
| 81 | +1. Specify **backend host type** as *custom host*. |
| 82 | +1. Input FQDN of your Azure Spring Cloud public endpoints in **backend host name**. |
| 83 | +1. Accept the **backend host header** default, which is the same as **backend host name**. |
| 84 | + |
| 85 | +  |
| 86 | + |
| 87 | +## Next steps |
| 88 | +* [How to create a traffic manager](https://docs.microsoft.com/azure/traffic-manager/quickstart-create-traffic-manager-profile/) |
| 89 | +* [How to create an application gateway](https://docs.microsoft.com/azure/application-gateway/quick-create-portal) |
| 90 | +* [How to create a front door](https://docs.microsoft.com/azure/frontdoor/quickstart-create-front-door) |
0 commit comments