You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/frontdoor/migrate-cdn-to-front-door.md
+48-33Lines changed: 48 additions & 33 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,55 +2,67 @@
2
2
title: Migrate Azure CDN from Edgio to Azure Front Door
3
3
titleSuffix: Azure Content Delivery Network
4
4
description: Learn how to migrate your workloads from Azure CDN from Edgio to Azure Front Door using Azure Traffic Manager.
5
-
services: cdn
5
+
services: frontdoor
6
6
author: duongau
7
-
ms.service: azure-cdn
7
+
ms.service: azure-frontdoor
8
8
ms.topic: how-to
9
9
ms.date: 10/28/2024
10
10
ms.author: duau
11
11
---
12
12
13
13
# Migrate Azure CDN from Edgio to Azure Front Door
14
14
15
-
Azure CDN from Edgio will be retired on November 4, 2025. You must migrate your workload to Azure Front Door before this date to avoid service disruption. This article provides guidance on how to migrate your workloads from Azure CDN from Edgio to Azure Front Door using Azure Traffic Manager.
15
+
Azure CDN from Edgio will be retired on November 4, 2025. You must migrate your workload to Azure Front Door before this date to avoid service disruption. This article provides guidance on how to migrate your workloads from Azure CDN from Edgio to Azure Front Door using Azure Traffic Manager. The migration process in this article can also be used to migrate workloads from a legacy CDN to Azure Front Door.
16
16
17
-
Azure Traffic Manager initially routes all traffic to Azure CDN from Edgio. After you set up Azure Front Door, you can update the Traffic Manager profile to incrementally route traffic to Azure Front Door. This approach allows you to validate that Azure Front Door is compatible with your workloads before fully migrating.
17
+
Azure Traffic Manager initially routes all traffic to the Azure CDN from Edgio. After you set up Azure Front Door, you can update the Traffic Manager profile to incrementally route traffic to the Azure Front Door. This approach allows you to validate if Azure Front Door is compatible with your workloads before fully migrating.
18
+
19
+
We recommend that your plan this migration well in advance and test the functionality over the course of a few days to ensure a smooth transition.
18
20
19
21
## Prerequisites
20
22
21
-
- Create an inventory of your current endpoints, origin configurations, custom domains, caching rules, compression settings, and any custom rules set up in Azure CDN from Edgio.
22
-
- Set up a test environment on the existing CDN profile to test and validate the compatibility of Azure Front Door with your workloads.
23
-
- Utilize a system connected to the internet that can run Wget on Linux or Invoke-WebRequest on Windows using PowerShell.
24
-
- Access to a tool such as CatchPoint or ThousandEyes to monitor the availability of your URLs before and after the migration. These tools are the most ideal because they can monitor the availability of your URLs from different locations around the world. Webpagetest.org is another option, but it only provides a limited view of your URLs from a few locations.
23
+
- Review the [feature differences](front-door-cdn-comparison.md) between Azure CDN and Azure Front Door to determine if there are any compability gaps.
24
+
- You need access to a VM connected to the internet that can run Wget on Linux or Invoke-WebRequest on Windows using PowerShell.
25
+
- You need access to a monitoring tool such as CatchPoint or ThousandEyes to verify the availability of your URLs before and after the migration. These tools are the most ideal because they can monitor the availability of your URLs from different locations around the world. `webpagetest.org` is another option, but it only provides a limited view of your URLs from a few locations.
25
26
26
27
## Migrate your workloads
27
28
28
29
The followings steps assume you're using an Azure Blob Storage account as your origin. If you're using a different origin, adjust the steps accordingly.
29
30
31
+
:::image type="content" source="./media/migrate-cdn-to-front-door/cdn-traffic-manager.png" alt-text="Diagram of Azure Traffic Manager distributing traffic between Azure Front Door and Azure CDN from Edgio.":::
32
+
30
33
### Gather information
31
34
32
35
1. Collect the following information from your Azure CDN from Edgio profile:
36
+
37
+
- Endpoints
38
+
- Origin configurations
39
+
- Custom domains
33
40
- Caching settings
41
+
- Compression settings
34
42
- Web application firewall (WAF) settings
35
43
- Custom rules settings
36
44
37
-
1. Determine which version of Azure Front Door is suitable for your workloads. For more information, see [Azure Front Door comparison](../frontdoor/front-door-cdn-comparison.md).
45
+
1. Determine which tier of Azure Front Door is suitable for your workloads. For more information, see [Azure Front Door comparison](../frontdoor/front-door-cdn-comparison.md).
38
46
39
47
1. Review the origin settings in your Azure CDN from Edgio profile.
40
48
41
-
1. Determine a test URL with your Azure CDN from Edgio profile and perform a wget or Invoke-WebRequest to get the HTTP header information. Enter this URL into the monitoring tool to understand the geographic availability of your URL.
49
+
1. Determine a test URL with your Azure CDN from Edgio profile and perform a `wget` or `Invoke-WebRequest` to obtain the HTTP header information.
50
+
51
+
1. Enter the URL into the monitoring tool to understand the geographic availability of your URL.
42
52
43
53
### Set up Azure Front Door
44
54
45
55
1. From the Azure portal, select **+ Create a resource**, then search for **Front Door**.
46
56
47
-
1. Select **Create**.
57
+
1. Select **Front Door and CDN profiles** and then select **Create**.
48
58
49
-
1. Select **Azure Front Door** and then select **Custom create**.
59
+
1. On the *Compare offerings* pages, select **Azure Front Door** and then select **Custom create**.
60
+
61
+
1. Select **Continue to create a Front Door**.
50
62
51
63
1. Select the subscription and resource group. Enter a name for the Azure Front Door profile. Then select the tier that best suits your workloads and select the **Endpoint** tab.
52
64
53
-
1. Select **Add an endpoint**. Enter a name for the endpoint, then select **Add**.
65
+
1. Select **Add an endpoint**. Enter a name for the endpoint, then select **Add**. The endpoint name will look like `<endpointname>-<hash>.xxx.azurefd.net`.
54
66
55
67
1. Select **+ Add a route**. Enter a name for the route and note the **Domain** selected. Leave the **Patterns to match** and **Accepted protocols** as the default settings.
56
68
@@ -59,55 +71,51 @@ The followings steps assume you're using an Azure Blob Storage account as your o
59
71
60
72
1. Select **Add a new origin group**. Enter a name for the origin group and select the **+ Add an origin** button. Enter the origin name and select the origin type. This example uses Azure Blob Storage, so select **Storage** as the origin type. Select the hostname of the Azure Blob Storage account and leave the rest of the settings as default. Select **Add**.
61
73
74
+
:::image type="content" source="./media/migrate-cdn-to-front-door/add-origin.png" alt-text="Screenshot of adding an Azure Blob Storage as an origin to Azure Front Door.":::
75
+
62
76
1. Leave the rest of the settings as default and select **Add**.
63
77
64
78
1. If caching was enabled in your Azure CDN from Edgio profile, select **Enable caching** and set the caching rules.
65
79
66
80
> [!NOTE]
67
81
> Azure CDN from Edgio *Standard-cache* is equivalent to Azure Front Door *Ignore query string* caching.
68
82
69
-
1. Select **Enable compression** if you have compression enabled in your Azure CDN from Edgio profile.
70
-
71
-
> [!NOTE]
72
-
> Ensure the origin path matches the path in your Azure CDN from Edgio profile. If this isn't set correctly, the origin won't be able to serve the content and will return a 4xx error.
83
+
1. Select **Enable compression** if you have compression enabled in your Azure CDN from Edgio profile. Ensure the origin path matches the path in your Azure CDN from Edgio profile. If this isn't set correctly, the origin won't be able to serve the content and will return a 4xx error.
73
84
74
85
1. Select **Add** to create the route.
75
86
76
87
1. Select **+ Add a policy** to set up web application firewall (WAF) settings and set up custom rules you determined in the previous steps.
77
88
78
89
1. Select **Review + create** and then select **Create**.
79
90
80
-
1. Set up the custom domain for the Azure Front Door profile. For more information, see [Custom domains](../frontdoor/how-to-add-custom-domain.md).
81
-
82
-
> [!NOTE]
83
-
> You may have multiple custom domains in your Azure CDN from Edgio profile. Ensure you add all custom domains to the Azure Front Door profile and associate them with the correct routes.
91
+
1. Set up the custom domain for the Azure Front Door profile. For more information, see [Custom domains](../frontdoor/how-to-add-custom-domain.md). You may have multiple custom domains in your Azure CDN from Edgio profile. Ensure you add all custom domains to the Azure Front Door profile and associate them with the correct routes.
84
92
85
93
### Set up Traffic Manager
86
94
87
-
The steps in this section need to be repeated for each endpoint in your Azure CDN from Edgio profile.
95
+
The steps in this section need to be repeated for each endpoint in your Azure CDN from Edgio profile. It is critical that the health check is set up correctly to ensure that the Traffic Manager profile routes traffic to the Azure CDN or Azure Front Door.
88
96
89
97
1. From the Azure portal, select **+ Create a resource**, then search for **Traffic Manager profile**.
90
98
91
99
1. Enter a name for the Traffic Manager profile.
92
100
93
101
1. Select the routing method **Weighted**.
94
102
95
-
1. Select the same subscription and resource group as the Azure Front Door profile.
96
-
97
-
1. Select **Create**.
103
+
1. Select the same subscription and resource group as the Azure Front Door profile then select **Create**.
98
104
99
105
1. Select **Endpoints** from the left-hand menu, and then select **+ Add**.
100
106
101
107
1. For the **Type**, select **External endpoint**.
102
108
103
109
1. Enter a name for the endpoint and leave the **Enable Endpoint** checked.
104
110
105
-
1. Enter the **Fully-qualified domain name (FQDN)** of the Azure CDN from Edgio profile. For example, `your-domain.azureedge.net`.
111
+
1. Enter the **Fully-qualified domain name (FQDN)** of the Azure CDN from Edgio profile. For example, `yourdomain.azureedge.net`.
106
112
107
113
1. Set the **Weight** to 100.
108
114
109
115
1. For *Health check*, select **Always serve traffic**. This setting disables the health check and always routes traffic to the endpoint.
110
116
117
+
:::image type="content" source="./media/migrate-cdn-to-front-door/cdn-endpoint.png" alt-text="Screenshot of adding the Azure CDN from Edgio as an endpoint in Azure Traffic Manager.":::
118
+
111
119
1. Add another endpoint for the Azure Front Door profile and select **External endpoint**.
112
120
113
121
1. Enter a name for the endpoint and uncheck the **Enable Endpoint** setting.
@@ -118,15 +126,15 @@ The steps in this section need to be repeated for each endpoint in your Azure CD
118
126
119
127
1. Since the endpoint is disabled, the **Health check** setting isn't relevant.
120
128
121
-
### Internal testing of Traffic Manager
129
+
### Internal testing of Traffic Manager profile
122
130
123
-
1. Perform a DNS dig to test the Traffic Manager profile: `dig your-traffic-manager-name.trafficmanager.net`. The dig command should return the CNAME of the Azure CDN from Edgio profile: `your-old-CNAME.azureedge.net`.
131
+
1. Perform a DNS dig to test the Traffic Manager profile: `dig your-profile.trafficmanager.net`. The dig command should always return the CNAME of the Azure CDN from Edgio profile: `yourdomain.azureedge.net`.
124
132
125
133
1. Test the Azure Front Door profile by manually adding a DNS entry in your local hosts file pointing to the Azure Front Door profile:
126
134
127
135
1. Get the IP address of the Azure Front Door profile by performing a DNS dig.
128
136
129
-
1. Add a new line to your hosts file with the IP address followed by `get.helm.sh`
137
+
1. Add a new line to your hosts file with the IP address followed by a space and then `your-new-endpoint-name.azurefd.net`. For example, `203.0.113.254 your-new-endpoint-name.azurefd.net`.
130
138
131
139
1. For Windows, the hosts file is located at `C:\Windows\System32\drivers\etc\hosts`.
132
140
@@ -138,9 +146,11 @@ The steps in this section need to be repeated for each endpoint in your Azure CD
138
146
139
147
### Configure Traffic Manager with CNAME
140
148
149
+
We only recommend this step after you have fully tested the Azure Front Door profile and are confident that it is working as expected.
150
+
141
151
1. Sign into your DNS provider and locate the CNAME record for the Azure CDN from Edgio profile.
142
152
143
-
1. Locate the custom domain you want to migrate to Azure Front Door. and set the time-to-live (TTL) to 600 secs (10 minutes).
153
+
1. Locate the custom domain you want to migrate to Azure Front Door and set the time-to-live (TTL) to 600 secs (10 minutes).
144
154
145
155
1. Update the CNAME record to point to the Traffic Manager profile: `your-profile.trafficmanager.net`.
146
156
@@ -158,24 +168,29 @@ The initial traffic distribution starts by routing a small percentage of traffic
158
168
159
169
1. Start by routing 10% of the traffic to the Azure Front Door profile and the rest to the Azure CDN from Edgio profile.
160
170
161
-
1. Monitor the performance of the Azure Front Door profile and the Azure CDN from Edgio profile using the monitoring tool. Perform testing with Catchpoint and look for error rates and cache hit ratios in the logs.
171
+
1. Monitor the performance of the Azure Front Door profile and the Azure CDN from Edgio profile using the monitoring tool you set up earlier. Review your internal applications and systems logs to ensure that the Azure Front Door profile is working as expected. Look at metrics and logs to observe for 4xx/5xx errors, cache/byte hit ratios, and origin health.
162
172
163
173
> [!NOTE]
164
174
> If you don't have access to a third-party tool, you can use [Webpagetest](https://webpagetest.org) to verify the availability of your endpoint from a remote location. However, this tool only provides a limited view of your URLs from a few locations around the world, so you may not see any changes until you have fully shifted traffic to the Azure Front Door profile.
165
175
166
176
1. Gradually increase the traffic percentage to the Azure Front Door profile by 10% increments until all traffic is routed to the Azure Front Door profile. Ensure that you're testing and monitoring the performance of the Azure Front Door profile at each increment.
167
177
168
178
1. Once you're confident that the Azure Front Door profile is working as expected, update the Traffic Manager profile to route all traffic to the Azure Front Door profile.
169
-
1. Ensure the Azure Front Door endpoint is enabled, Weight is set to 100, and the health check is set to **Always serve traffic**.
179
+
180
+
1. Ensure the Azure Front Door endpoint is enabled, Weight is set to 100, and the health check is set to **Always serve traffic**.
181
+
170
182
1. Ensure the Azure CDN from Edgio endpoint is disabled.
171
183
172
184
### Remove Azure Traffic Manager
173
185
174
-
1. Sign in to your DNS provider. Change the CNAME record from the Traffic Manager profile to the Azure Front Door profile: `<endpoingname>-<hash>.xxx.azurefd.net`.
186
+
1. Sign in to your DNS provider. Change the CNAME record from the Traffic Manager profile to the Azure Front Door profile: `<endpointname>-<hash>.xxx.azurefd.net`.
175
187
176
188
1. Over the next few hours, begin testing using dig, and monitor using the monitoring tool to ensure the DNS is fully propagated correctly around the world.
177
189
178
190
1. Set the DNS TTL back to the original value (60 minutes).
179
191
192
+
At this stage you have fully migrated all traffic from Azure CDN from Edgio to Azure Front Door.
193
+
180
194
## Next steps
181
195
196
+
Learn about [best practices](best-practices.md) for Azure Front Door.
0 commit comments