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-app-dev-net.md
+22-23Lines changed: 22 additions & 23 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,27 +3,26 @@ title: Get started with the Azure CDN Library for .NET | Microsoft Docs
3
3
description: Learn how to write .NET applications to manage Azure CDN using Visual Studio.
4
4
services: cdn
5
5
documentationcenter: .net
6
-
author: zhangmanling
7
-
manager: erikre
8
-
editor: ''
9
-
6
+
author: duongau
7
+
manager: kumudd
10
8
ms.assetid: 63cf4101-92e7-49dd-a155-a90e54a792ca
11
9
ms.service: azure-cdn
12
10
ms.workload: tbd
13
11
ms.tgt_pltfrm: na
14
12
ms.topic: how-to
15
-
ms.date: 01/23/2017
16
-
ms.author: mazha
13
+
ms.date: 02/27/2023
14
+
ms.author: duau
17
15
ms.custom: "has-adal-ref, devx-track-csharp"
18
16
---
17
+
19
18
# Get started with the Azure CDN Library for .NET
20
19
> [!div class="op_single_selector"]
21
20
> *[Node.js](cdn-app-dev-node.md)
22
21
> *[.NET](cdn-app-dev-net.md)
23
22
>
24
23
>
25
24
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.
27
26
28
27
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.
29
28
@@ -34,19 +33,19 @@ You need Visual Studio 2015 to complete this tutorial. [Visual Studio Community
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.
39
38
40
39
> [!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).
42
41
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**.
2. Weneedtodefinesomeconstantsourmethodswilluse. Inthe `Program` class, but before the `Main` method, add the following. Be sure to replace the placeholders, including the **<anglebrackets>**, withyourownvaluesasneeded.
73
+
2. Weneedtodefinesomeconstantsourmethodsuse. Inthe `Program` class, but before the `Main` method, add the following code blocks. Be sure to replace the placeholders, including the **<anglebrackets>**, withyourownvaluesasneeded.
75
74
76
75
```csharp
77
76
//Tenant app constants
@@ -86,7 +85,7 @@ Let's get the basic structure of our program written.
Be sure to replace `<redirect URI>` with the redirect URI you entered when you registered the application in Azure AD.
190
189
191
190
## 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.
> 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.
293
292
>
294
293
>
295
294
296
295
## Delete CDN profiles and endpoints
297
-
The last methods will delete our endpoint and profile.
Copy file name to clipboardExpand all lines: articles/cdn/cdn-standard-rules-engine-match-conditions.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,10 +3,10 @@ title: Match conditions in the Standard rules engine for Azure CDN | Microsoft D
3
3
description: Reference documentation for match conditions in the Standard rules engine for Azure Content Delivery Network (Azure CDN).
4
4
services: cdn
5
5
author: duongau
6
-
6
+
manager: kumudd
7
7
ms.service: azure-cdn
8
8
ms.topic: article
9
-
ms.date: 11/01/2019
9
+
ms.date: 02/27/2023
10
10
ms.author: duau
11
11
12
12
---
@@ -64,7 +64,7 @@ String | [Standard operator list](#standard-operator-list) | String, Int | No tr
64
64
- Cookie name comparisons are case-insensitive.
65
65
- To specify multiple cookie values, use a single space between each cookie value.
66
66
- 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".
0 commit comments