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/cdn/cdn-add-to-web-app.md
+23-26Lines changed: 23 additions & 26 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,30 +2,27 @@
2
2
title: Tutorial - Add Azure CDN to an Azure App Service web app | Microsoft Docs
3
3
description: In this tutorial, Azure Content Delivery Network (CDN) is added to an Azure App Service web app to cache and deliver your static files from servers close to your customers around the world.
4
4
services: cdn
5
-
documentationcenter: ''
6
5
author: duongau
7
-
manager: danielgi
8
-
editor: ''
9
-
6
+
manager: kumudd
10
7
ms.assetid:
11
8
ms.service: azure-cdn
12
9
ms.workload: tbd
13
10
ms.tgt_pltfrm: na
14
11
ms.topic: tutorial
15
-
ms.date: 05/14/2018
12
+
ms.date: 02/27/2023
16
13
ms.author: duau
17
14
ms.custom: mvc
18
-
19
15
---
16
+
20
17
# Tutorial: Add Azure CDN to an Azure App Service web app
21
18
22
-
This tutorial shows how to add [Azure Content Delivery Network (CDN)](cdn-overview.md) to a [web app in Azure App Service](../app-service/overview.md). Web apps is a service for hosting web applications, REST APIs, and mobile back ends.
19
+
This tutorial shows how to add [Azure Content Delivery Network (CDN)](cdn-overview.md) to a [web app in Azure App Service](../app-service/overview.md). Web apps are services for hosting web applications, REST APIs, and mobile back ends.
23
20
24
-
Here's the home page of the sample static HTML site that you'll work with:
21
+
Here's the home page of the sample static HTML site that you work with:
25
22
26
23

27
24
28
-
What you'll learn:
25
+
What you learn:
29
26
30
27
> [!div class="checklist"]
31
28
> * Create a CDN endpoint.
@@ -44,29 +41,29 @@ To complete this tutorial:
44
41
45
42
## Create the web app
46
43
47
-
To create the web app that you'll work with, follow the [static HTML quickstart](../app-service/quickstart-html.md) through the **Browse to the app** step.
44
+
To create the web app that you work with, follow the [static HTML quickstart](../app-service/quickstart-html.md) through the **Browse to the app** step.
48
45
49
-
## Log in to the Azure portal
46
+
## Sign in to the Azure portal
50
47
51
48
Open a browser and navigate to the [Azure portal](https://portal.azure.com).
52
49
53
50
### Dynamic site acceleration optimization
54
51
If you want to optimize your CDN endpoint for dynamic site acceleration (DSA), you should use the [CDN portal](cdn-create-new-endpoint.md) to create your profile and endpoint. With [DSA optimization](cdn-dynamic-site-acceleration.md), the performance of web pages with dynamic content is measurably improved. For instructions about how to optimize a CDN endpoint for DSA from the CDN portal, see [CDN endpoint configuration to accelerate delivery of dynamic files](cdn-dynamic-site-acceleration.md#cdn-endpoint-configuration-to-accelerate-delivery-of-dynamic-files).
55
-
Otherwise, if you don't want to optimize your new endpoint, you can use the web app portal to create it by following the steps in the next section. Note that for **Azure CDN from Verizon** profiles, you cannot change the optimization of a CDN endpoint after it has been created.
52
+
Otherwise, if you don't want to optimize your new endpoint, you can use the web app portal to create it by following the steps in the next section. For **Azure CDN from Verizon** profiles, you can't change the optimization of a CDN endpoint after it has been created.
56
53
57
54
## Create a CDN profile and endpoint
58
55
59
56
In the left navigation, select **App Services**, and then select the app that you created in the [static HTML quickstart](../app-service/quickstart-html.md).
60
57
61
-

58
+
:::image type="content" source="./media/cdn-add-to-web-app/portal-select-app-services.png" alt-text="Screenshot of select an App Service app in the portal.":::
62
59
63
-
In the **App Service** page, in the **Settings** section, select **Networking > Configure Azure CDN for your app**.
60
+
In the **App Service** page, in the **Settings** section, select **Networking > Azure CDN**.
64
61
65
-

62
+
:::image type="content" source="./media/cdn-add-to-web-app/portal-select-cdn.png" alt-text="Screenshot of select Azure CDN from networking setting of an App Service.":::
66
63
67
64
In the **Azure Content Delivery Network** page, provide the **New endpoint** settings as specified in the table.
68
65
69
-

66
+
:::image type="content" source="./media/cdn-add-to-web-app/portal-new-endpoint.png" alt-text="Screenshot of create Azure CDN profile and endpoint in the portal.":::
70
67
71
68
| Setting | Suggested value | Description |
72
69
| ------- | --------------- | ----------- |
@@ -78,7 +75,7 @@ Select **Create** to create a CDN profile.
78
75
79
76
Azure creates the profile and endpoint. The new endpoint appears in the **Endpoints** list, and when it's provisioned, the status is **Running**.
80
77
81
-

78
+
:::image type="content" source="./media/cdn-add-to-web-app/portal-new-endpoint-in-list.png" alt-text="Screenshot of new Azure CDN endpoint in list.":::
:::image type="content" source="./media/cdn-add-to-web-app/portal-select-group.png" alt-text="Screenshot of selecting resource group from left menu pane in the portal.":::
160
157
161
158
In the list of resources, select your CDN endpoint.
:::image type="content" source="./media/cdn-add-to-web-app/portal-select-purge.png" alt-text="Screenshot of purge button in an Azure CDN profile.":::
168
165
169
166
Enter the content paths you want to purge. You can pass a complete file path to purge an individual file, or a path segment to purge and refresh all content in a folder. Because you changed *index.html*, ensure that is in one of the paths.
:::image type="content" source="./media/cdn-add-to-web-app/app-service-web-purge-cdn.png" alt-text="Screenshot of purge page in an Azure CDN profile.":::
174
171
175
172
### Verify that the CDN is updated
176
173
177
174
Wait until the purge request finishes processing, which is typically a couple of minutes. To see the current status, select the bell icon at the top of the page.
:::image type="content" source="./media/cdn-add-to-web-app/portal-purge-notification.png" alt-text="Screenshot of purge notification for an Azure CDN profile.":::
180
177
181
-
When you browse to the CDN endpoint URL for *index.html*, you'll see the *V2* that you added to the title on the home page, which indicates that the CDN cache has been refreshed.
178
+
When you browse to the CDN endpoint URL for *index.html*, you see the *V2* that you added to the title on the home page, which indicates that the CDN cache has been refreshed.
182
179
183
180
```
184
181
http://<endpointname>.azureedge.net/index.html
@@ -196,7 +193,7 @@ Azure CDN offers the following caching behavior options:
196
193
* Bypass caching for query strings
197
194
* Cache every unique URL
198
195
199
-
The first option is the default, which means there is only one cached version of an asset regardless of the query string in the URL.
196
+
The first option is the default, which means there's only one cached version of an asset regardless of the query string in the URL.
200
197
201
198
In this section of the tutorial, you change the caching behavior to cache every unique URL.
202
199
@@ -208,7 +205,7 @@ Select **Cache every unique URL** from the **Query string caching behavior** dro
:::image type="content" source="./media/cdn-add-to-web-app/portal-select-caching-behavior.png" alt-text="Screenshot of cache rules settings for an Azure CDN profile.":::
Copy file name to clipboardExpand all lines: articles/cdn/cdn-billing.md
+12-15Lines changed: 12 additions & 15 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,17 +2,13 @@
2
2
title: Understanding Azure CDN billing | Microsoft Docs
3
3
description: Learn about the billing structure for content hosted by Azure Content Delivery Network, including billing regions, delivery charges, and to manage costs.
4
4
services: cdn
5
-
documentationcenter: ''
6
5
author: duongau
7
-
manager: danielgi
8
-
editor: ''
9
-
10
-
ms.assetid:
6
+
manager: kumudd
11
7
ms.service: azure-cdn
12
8
ms.workload: media
13
9
ms.tgt_pltfrm: na
14
10
ms.topic: article
15
-
ms.date: 09/13/2019
11
+
ms.date: 02/27/2023
16
12
ms.author: duau
17
13
18
14
---
@@ -21,6 +17,7 @@ ms.author: duau
21
17
This FAQ describes the billing structure for content hosted by Azure Content Delivery Network (CDN).
22
18
23
19
## What is a billing region?
20
+
24
21
A billing region is a geographic area used to determine what rate is charged for delivery of objects from Azure CDN. The current billing zones and their regions are as follows:
25
22
26
23
- Zone 1: North America, Europe, Middle East, and Africa
@@ -38,17 +35,17 @@ For information about point-of-presence (POP) regions, see [Azure CDN POP locati
38
35
For information about Azure CDN pricing, see [Content Delivery Network pricing](https://azure.microsoft.com/pricing/details/cdn/).
39
36
40
37
## How are delivery charges calculated by region?
41
-
The Azure CDN billing region is based on the location of the source server delivering the content to the end user. The destination (physical location) of the client is not considered the billing region.
38
+
The Azure CDN billing region is based on the location of the source server delivering the content to the end user. The destination (physical location) of the client isn't considered the billing region.
42
39
43
-
For example, if a user located in Mexico issues a request and this request is serviced by a server located in a United States POP due to peering or traffic conditions, the billing region will be the United States.
40
+
For example, if a user located in Mexico issues a request and this request gets serviced by a server located in a United States POP due to peering or traffic conditions, the billing region is the United States.
44
41
45
42
## What is a billable Azure CDN transaction?
46
-
Any HTTP(S) request that terminates at the CDN is a billable event, which includes all response types: success, failure, or other. However, different responses may generate different traffic amounts. For example, *304 Not Modified* and other header-only responses generate little traffic because they are a small header response; similarly, error responses (for example, *404 Not Found*) are billable but incur a small cost because of the tiny response payload.
43
+
Any HTTP(S) request that terminates at the CDN is a billable event, which includes all response types: success, failure, or other. However, different responses may generate different traffic amounts. For example, *304 Not Modified* and other header-only responses generate little traffic because they're a small header response. Similarly, error responses (for example, *404 Not Found*) are billable but incur a small cost because of the tiny response payload.
47
44
48
45
## What other Azure costs are associated with Azure CDN use?
49
46
Using Azure CDN also incurs some usage charges on the services used as the origin for your objects. These costs are typically a small fraction of the overall CDN usage cost.
50
47
51
-
If you are using Azure Blob storage as the origin for your content, you also incur the following storage charges for cache fills:
48
+
If you're using Azure Blob storage as the origin for your content, you also incur the following storage charges for cache fills:
52
49
53
50
- Actual GB used: The actual storage of your source objects.
54
51
@@ -57,11 +54,11 @@ If you are using Azure Blob storage as the origin for your content, you also inc
57
54
- Transfers in GB: The amount of data transferred to fill the CDN caches.
58
55
59
56
> [!NOTE]
60
-
> Starting October 2019, If you are using Azure CDN from Microsoft, the cost of data transfer from Origins hosted in Azure to CDN PoPs is free of charge. Azure CDN from Verizon and Azure CDN from Akamai are subject to the rates described below.
57
+
> Starting October 2019, If you are using Azure CDN from Microsoft, the cost of data transfer from Origins hosted in Azure to CDN PoPs is free of charge. Azure CDN from Verizon and Azure CDN from Akamai are subject to the rates described as followed.
61
58
62
59
For more information about Azure Storage billing, see [Plan and manage costs for Azure Storage](../storage/common/storage-plan-manage-costs.md).
63
60
64
-
If you are using *hosted service delivery*, you will incur charges as follows:
61
+
If you're using *hosted service delivery*, you incur charges as follows:
65
62
66
63
- Azure compute time: The compute instances that act as the origin.
67
64
@@ -74,16 +71,16 @@ If your client uses byte-range requests (regardless of origin service), the foll
74
71
- When a request arrives for only part of an object (by specifying a byte-range header), the CDN may fetch the entire object into its cache. As a result, even though the billable transaction from the CDN is for a partial response, the billable transaction from the origin may involve the full size of the object.
75
72
76
73
## How much transfer activity occurs to support the cache?
77
-
Each time a CDN POP needs to fill its cache, it makes a request to the origin for the object being cached. As a result, the origin incurs a billable transaction on every cache miss. The number of cache misses depends on a number of factors:
74
+
Each time a CDN POP needs to fill its cache, it makes a request to the origin for the object being cached. As a result, the origin incurs a billable transaction on every cache miss. The number of cache misses depends on many factors:
78
75
79
-
- How cacheable the content is: If the content has high TTL (time-to-live)/expiration values and is accessed frequently so it stays popular in cache, then the vast majority of the load is handled by the CDN. A typical good cache-hit ratio is well over 90%, meaning that less than 10% of client requests have to return to origin, either for a cache miss or object refresh.
76
+
- How cacheable the content is: If the content has high TTL (time-to-live)/expiration values and is accessed frequently so it stays popular in cache, then most of the load gets handled by the CDN. A typical good cache-hit ratio is well over 90%, meaning that less than 10% of client requests have to return to origin, either for a cache miss or object refresh.
80
77
81
78
- How many nodes need to load the object: Each time a node loads an object from the origin, it incurs a billable transaction. As a result, more global content (accessed from more nodes) results in more billable transactions.
82
79
83
80
- TTL influence: A higher TTL for an object means it needs to be fetched from the origin less frequently. It also means clients, such as browsers, can cache the object longer, which can reduce the transactions to the CDN.
84
81
85
82
## Which origin services are eligible for free data transfer with Azure CDN from Microsoft?
86
-
If you use one of the following Azure services as your CDN origin, you will not be charged from Data transfer from the Origin to the CDN PoPs.
83
+
If you use one of the following Azure services as your CDN origin, you don't get charged from Data transfer from the Origin to the CDN PoPs.
Copy file name to clipboardExpand all lines: articles/cdn/cdn-optimization-overview.md
+3-4Lines changed: 3 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,11 +2,10 @@
2
2
title: Optimize Azure CDN for the type of content delivery
3
3
description: Learn how Azure Content Delivery Network can optimize delivery based on type of content. Optimization best practices improve performance and origin offload.
4
4
services: cdn
5
-
documentationcenter: ''
6
5
author: duongau
7
6
ms.service: azure-cdn
8
7
ms.topic: how-to
9
-
ms.date: 03/25/2019
8
+
ms.date: 02/27/2023
10
9
ms.author: duau
11
10
---
12
11
# Optimize Azure CDN for the type of content delivery
@@ -107,13 +106,13 @@ For more information about media streaming optimization, see [Media streaming op
107
106
108
107
For **Azure CDN Standard from Akamai** profiles, large file downloads are optimized for content larger than 10 MB. If your average file size is smaller than 10 MB, use general web delivery. If your average files sizes are consistently larger than 10 MB, it might be more efficient to create a separate endpoint for large files. For example, firmware or software updates typically are large files. To deliver files larger than 1.8 GB, the large file download optimization is required.
109
108
110
-
For **Azure CDN Standard from Microsoft**, **Azure CDN Standard from Verizon**, and **Azure CDN Premium from Verizon** profiles, use the general web delivery optimization type to deliver large file download content. There is no limitation on file download size.
109
+
For **Azure CDN Standard from Microsoft**, **Azure CDN Standard from Verizon**, and **Azure CDN Premium from Verizon** profiles, use the general web delivery optimization type to deliver large file download content. There's no limitation on file download size.
111
110
112
111
For more information about large file optimization, see [Large file optimization](cdn-large-file-optimization.md).
113
112
114
113
### Dynamic site acceleration
115
114
116
-
Dynamic site acceleration (DSA) is available for **Azure CDN Standard from Akamai**, **Azure CDN Standard from Verizon**, and **Azure CDN Premium from Verizon** profiles. This optimization involves an additional fee to use; for more information, see [Content Delivery Network pricing](https://azure.microsoft.com/pricing/details/cdn/).
115
+
Dynamic site acceleration (DSA) is available for **Azure CDN Standard from Akamai**, **Azure CDN Standard from Verizon**, and **Azure CDN Premium from Verizon** profiles. This optimization involves an extra fee to use; for more information, see [Content Delivery Network pricing](https://azure.microsoft.com/pricing/details/cdn/).
117
116
118
117
> [!NOTE]
119
118
> Dynamic site acceleration from Microsoft is offered via [Azure Front Door Service](../frontdoor/front-door-overview.md) which is a global [anycast](https://en.wikipedia.org/wiki/Anycast) service leveraging Microsoft's private global network to deliver your app workloads.
Copy file name to clipboardExpand all lines: articles/cdn/cdn-standard-rules-engine-reference.md
+3-4Lines changed: 3 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,10 +3,9 @@ title: Standard rules engine reference for Azure CDN | Microsoft Docs
3
3
description: Reference documentation for match conditions and actions in the Standard rules engine for Azure Content Delivery Network (Azure CDN).
4
4
services: cdn
5
5
author: duongau
6
-
7
6
ms.service: azure-cdn
8
7
ms.topic: article
9
-
ms.date: 07/31/2021
8
+
ms.date: 02/23/2023
10
9
ms.author: duau
11
10
12
11
---
@@ -15,7 +14,7 @@ ms.author: duau
15
14
16
15
In the [Standard rules engine](cdn-standard-rules-engine.md) for Azure Content Delivery Network (Azure CDN), a rule consists of one or more match conditions and an action. This article provides detailed descriptions of the match conditions and features that are available in the Standard rules engine for Azure CDN.
17
16
18
-
The rules engine is designed to be the final authority on how specific types of requests are processed by Standard Azure CDN.
17
+
The rules engine is designed to be the final authority on how specific types of requests get processed by Standard Azure CDN.
19
18
20
19
**Common uses for the rules**:
21
20
@@ -29,7 +28,7 @@ To define a rule in the rules engine, set [match conditions](cdn-standard-rules-
Each rule can have up to ten match conditions and five actions. Each Azure CDN endpoint can have up to 25 rules.
31
+
Each rule can have up to 10 match conditions and 5 actions. Each Azure CDN endpoint can have up to 25 rules.
33
32
34
33
Included in this limit is a default *global rule*. The global rule doesn't have match conditions; actions that are defined in a global rule always triggered.
0 commit comments