Skip to content

Commit 279c28e

Browse files
authored
Merge pull request #228826 from duongau/cdnfreshness7
CDN freshness review (Batch 7)
2 parents a391c68 + 69cf75f commit 279c28e

6 files changed

+68
-62
lines changed

articles/cdn/cdn-app-dev-net.md

Lines changed: 22 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -3,27 +3,26 @@ title: Get started with the Azure CDN Library for .NET | Microsoft Docs
33
description: Learn how to write .NET applications to manage Azure CDN using Visual Studio.
44
services: cdn
55
documentationcenter: .net
6-
author: zhangmanling
7-
manager: erikre
8-
editor: ''
9-
6+
author: duongau
7+
manager: kumudd
108
ms.assetid: 63cf4101-92e7-49dd-a155-a90e54a792ca
119
ms.service: azure-cdn
1210
ms.workload: tbd
1311
ms.tgt_pltfrm: na
1412
ms.topic: how-to
15-
ms.date: 01/23/2017
16-
ms.author: mazha
13+
ms.date: 02/27/2023
14+
ms.author: duau
1715
ms.custom: "has-adal-ref, devx-track-csharp"
1816
---
17+
1918
# Get started with the Azure CDN Library for .NET
2019
> [!div class="op_single_selector"]
2120
> * [Node.js](cdn-app-dev-node.md)
2221
> * [.NET](cdn-app-dev-net.md)
2322
>
2423
>
2524
26-
You can use the [Azure CDN Library for .NET](/dotnet/api/overview/azure/cdn) to automate creation and management of CDN profiles and endpoints. This tutorial walks through the creation of a simple .NET console application that demonstrates several of the available operations. This tutorial is not intended to describe all aspects of the Azure CDN Library for .NET in detail.
25+
You can use the [Azure CDN Library for .NET](/dotnet/api/overview/azure/cdn) to automate creation and management of CDN profiles and endpoints. This tutorial walks through the creation of a simple .NET console application that demonstrates several of the available operations. This tutorial isn't intended to describe all aspects of the Azure CDN Library for .NET in detail.
2726

2827
You need Visual Studio 2015 to complete this tutorial. [Visual Studio Community 2015](https://www.visualstudio.com/products/visual-studio-community-vs.aspx) is freely available for download.
2928

@@ -34,19 +33,19 @@ You need Visual Studio 2015 to complete this tutorial. [Visual Studio Community
3433
3534
[!INCLUDE [cdn-app-dev-prep](../../includes/cdn-app-dev-prep.md)]
3635

37-
## Create your project and add Nuget packages
36+
## Create your project and add NuGet packages
3837
Now that we've created a resource group for our CDN profiles and given our Azure AD application permission to manage CDN profiles and endpoints within that group, we can start creating our application.
3938

4039
> [!IMPORTANT]
41-
> The [Microsoft.IdentityModel.Clients.ActiveDirectory](https://www.nuget.org/packages/Microsoft.IdentityModel.Clients.ActiveDirectory) NuGet package and Azure AD Authentication Library (ADAL) have been deprecated. No new features have been added since June 30, 2020. We strongly encourage you to upgrade, see the [migration guide](../active-directory/develop/msal-migration.md) for more details.
40+
> The [Microsoft.IdentityModel.Clients.ActiveDirectory](https://www.nuget.org/packages/Microsoft.IdentityModel.Clients.ActiveDirectory) NuGet package and Azure AD Authentication Library (ADAL) have been deprecated. No new features have been added since June 30, 2020. We strongly encourage you to upgrade. For more information, see the [migration guide](../active-directory/develop/msal-migration.md).
4241
43-
From within Visual Studio 2015, click **File**, **New**, **Project...** to open the new project dialog. Expand **Visual C#**, then select **Windows** in the pane on the left. Click **Console Application** in the center pane. Name your project, then click **OK**.
42+
From within Visual Studio 2015, select **File**, **New**, **Project...** to open the new project dialog. Expand **Visual C#**, then select **Windows** in the pane on the left. Select **Console Application** in the center pane. Name your project, then select **OK**.
4443

4544
![New Project](./media/cdn-app-dev-net/cdn-new-project.png)
4645

47-
Our project is going to use some Azure libraries contained in Nuget packages. Let's add those to the project.
46+
Our project is going to use some Azure libraries contained in NuGet packages. Let's add those libraries to the project.
4847

49-
1. Click the **Tools** menu, **Nuget Package Manager**, then **Package Manager Console**.
48+
1. Select the **Tools** menu, **Nuget Package Manager**, then **Package Manager Console**.
5049

5150
![Manage Nuget Packages](./media/cdn-app-dev-net/cdn-manage-nuget.png)
5251
2. In the Package Manager Console, execute the following command to install the **Active Directory Authentication Library (ADAL)**:
@@ -59,7 +58,7 @@ Our project is going to use some Azure libraries contained in Nuget packages. L
5958
## Directives, constants, main method, and helper methods
6059
Let's get the basic structure of our program written.
6160

62-
1. Back in the Program.cs tab, replace the `using` directives at the top with the following:
61+
1. Back in the Program.cs tab, replace the `using` directives at the top with the following command:
6362

6463
```csharp
6564
using System;
@@ -71,7 +70,7 @@ Let's get the basic structure of our program written.
7170
using Microsoft.IdentityModel.Clients.ActiveDirectory;
7271
using Microsoft.Rest;
7372
```
74-
2. We need to define some constants our methods will use. In the `Program` class, but before the `Main` method, add the following. Be sure to replace the placeholders, including the **<angle brackets>**, with your own values as needed.
73+
2. We need to define some constants our methods use. In the `Program` class, but before the `Main` method, add the following code blocks. Be sure to replace the placeholders, including the **<angle brackets>**, with your own values as needed.
7574

7675
```csharp
7776
//Tenant app constants
@@ -86,7 +85,7 @@ Let's get the basic structure of our program written.
8685
private const string resourceGroupName = "CdnConsoleTutorial";
8786
private const string resourceLocation = "<YOUR PREFERRED AZURE LOCATION, SUCH AS Central US>";
8887
```
89-
3. Also at the class level, define these two variables. We'll use these later to determine if our profile and endpoint already exist.
88+
3. Also at the class level, define these two variables. We use these variables later to determine if our profile and endpoint already exist.
9089

9190
```csharp
9291
static bool profileAlreadyExists = false;
@@ -154,7 +153,7 @@ Let's get the basic structure of our program written.
154153
Now that the basic structure of our program is written, we should create the methods called by the `Main` method.
155154

156155
## Authentication
157-
Before we can use the Azure CDN Management Library, we need to authenticate our service principal and obtain an authentication token. This method uses ADAL to retrieve the token.
156+
Before we can use the Azure CDN Management Library, we need to authenticate our service principal and obtain an authentication token. This method uses Active Directory Authentication Library to retrieve the token.
158157

159158
```csharp
160159
private static AuthenticationResult GetAccessToken()
@@ -168,7 +167,7 @@ private static AuthenticationResult GetAccessToken()
168167
}
169168
```
170169

171-
If you are using individual user authentication, the `GetAccessToken` method will look slightly different.
170+
If you're using individual user authentication, the `GetAccessToken` method looks slightly different.
172171

173172
> [!IMPORTANT]
174173
> Only use this code sample if you are choosing to have individual user authentication instead of a service principal.
@@ -189,7 +188,7 @@ private static AuthenticationResult GetAccessToken()
189188
Be sure to replace `<redirect URI>` with the redirect URI you entered when you registered the application in Azure AD.
190189

191190
## List CDN profiles and endpoints
192-
Now we're ready to perform CDN operations. The first thing our method does is list all the profiles and endpoints in our resource group, and if it finds a match for the profile and endpoint names specified in our constants, makes a note of that for later so we don't try to create duplicates.
191+
Now we're ready to perform CDN operations. The first thing our method does is list all the profiles and endpoints in our resource group, and if it finds a match for the profile and endpoint names specified in our constants, makes a note for later so we don't try to create duplicates.
193192

194193
```csharp
195194
private static void ListProfilesAndEndpoints(CdnManagementClient cdn)
@@ -223,7 +222,7 @@ private static void ListProfilesAndEndpoints(CdnManagementClient cdn)
223222
```
224223

225224
## Create CDN profiles and endpoints
226-
Next, we'll create a profile.
225+
Next, we create a profile.
227226

228227
```csharp
229228
private static void CreateCdnProfile(CdnManagementClient cdn)
@@ -242,7 +241,7 @@ private static void CreateCdnProfile(CdnManagementClient cdn)
242241
}
243242
```
244243

245-
Once the profile is created, we'll create an endpoint.
244+
Once the profile is created, we create an endpoint.
246245

247246
```csharp
248247
private static void CreateCdnEndpoint(CdnManagementClient cdn)
@@ -289,12 +288,12 @@ private static void PromptPurgeCdnEndpoint(CdnManagementClient cdn)
289288
```
290289

291290
> [!NOTE]
292-
> In the example above, the string `/*` denotes that I want to purge everything in the root of the endpoint path. This is equivalent to checking **Purge All** in the Azure portal's "purge" dialog. In the `CreateCdnProfile` method, I created our profile as an **Azure CDN from Verizon** profile using the code `Sku = new Sku(SkuName.StandardVerizon)`, so this will be successful. However, **Azure CDN from Akamai** profiles do not support **Purge All**, so if I was using an Akamai profile for this tutorial, I would need to include specific paths to purge.
291+
> In the example previously, the string `/*` denotes that I want to purge everything in the root of the endpoint path. This is equivalent to checking **Purge All** in the Azure portal's "purge" dialog. In the `CreateCdnProfile` method, I created our profile as an **Azure CDN from Verizon** profile using the code `Sku = new Sku(SkuName.StandardVerizon)`, so this will be successful. However, **Azure CDN from Akamai** profiles do not support **Purge All**, so if I was using an Akamai profile for this tutorial, I would need to include specific paths to purge.
293292
>
294293
>
295294
296295
## Delete CDN profiles and endpoints
297-
The last methods will delete our endpoint and profile.
296+
The last methods delete our endpoint and profile.
298297

299298
```csharp
300299
private static void PromptDeleteCdnEndpoint(CdnManagementClient cdn)
@@ -336,6 +335,6 @@ We can then confirm the prompts to run the rest of the program.
336335
## Next Steps
337336
To see the completed project from this walkthrough, [download the sample](https://code.msdn.microsoft.com/Azure-CDN-Management-1f2fba2c).
338337

339-
To find additional documentation on the Azure CDN Management Library for .NET, view the [reference on MSDN](/dotnet/api/overview/azure/cdn).
338+
To find more documentation on the Azure CDN Management Library for .NET, view the [reference on MSDN](/dotnet/api/overview/azure/cdn).
340339

341340
Manage your CDN resources with [PowerShell](cdn-manage-powershell.md).

articles/cdn/cdn-pop-abbreviations.md

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,21 +2,19 @@
22
title: Azure CDN POP locations by abbreviation | Microsoft Docs
33
description: This article lists Azure CDN POP locations, sorted by POP abbreviation, for Azure CDN from Verizon.
44
services: cdn
5-
documentationcenter: ''
65
author: duongau
7-
manager: danielgi
8-
editor: ''
9-
ms.assetid:
6+
manager: kumudd
107
ms.service: azure-cdn
118
ms.workload: media
129
ms.tgt_pltfrm: na
1310
ms.topic: article
14-
ms.date: 05/18/2021
11+
ms.date: 02/27/2023
1512
ms.author: duau
1613
ms.custom: references_regions
1714

1815
---
1916
# Azure CDN POP locations by abbreviation
17+
2018
> [!div class="op_single_selector"]
2119
> * [POP locations by region](cdn-pop-locations.md)
2220
> * [Microsoft POP locations by abbreviation](microsoft-pop-abbreviations.md)

articles/cdn/cdn-standard-rules-engine-match-conditions.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@ title: Match conditions in the Standard rules engine for Azure CDN | Microsoft D
33
description: Reference documentation for match conditions in the Standard rules engine for Azure Content Delivery Network (Azure CDN).
44
services: cdn
55
author: duongau
6-
6+
manager: kumudd
77
ms.service: azure-cdn
88
ms.topic: article
9-
ms.date: 11/01/2019
9+
ms.date: 02/27/2023
1010
ms.author: duau
1111

1212
---
@@ -64,7 +64,7 @@ String | [Standard operator list](#standard-operator-list) | String, Int | No tr
6464
- Cookie name comparisons are case-insensitive.
6565
- To specify multiple cookie values, use a single space between each cookie value.
6666
- Cookie values can take advantage of wildcard values.
67-
- If a wildcard value hasn't been specified, only an exact match satisfies this match condition. For example, "Value" will match "Value" but not "Value1".
67+
- If a wildcard value hasn't been specified, only an exact match satisfies this match condition. For example, "Value" matches "Value" but not "Value1".
6868

6969
### Post argument
7070

0 commit comments

Comments
 (0)