Skip to content

Commit c73940d

Browse files
Merge pull request #210395 from craigshoemaker/swa/afd-updates
[Static Web Apps] Azure Front Door tutorial updates
2 parents e4106eb + 3d479ba commit c73940d

File tree

1 file changed

+25
-16
lines changed

1 file changed

+25
-16
lines changed

articles/static-web-apps/front-door-manual.md

Lines changed: 25 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ ms.author: cshoe
1313

1414
Learn to add [Azure Front Door](../frontdoor/front-door-overview.md) as the CDN for your static web app. Azure Front Door is a scalable and secure entry point for fast delivery of your web applications.
1515

16+
> [!NOTE]
17+
> Consider using [enterprise-grade edge](enterprise-edge.md) for faster page loads, enhanced security, and optimized reliability for global applications.
18+
1619
In this tutorial, you learn how to:
1720

1821
> [!div class="checklist"]
@@ -37,7 +40,7 @@ In this tutorial, you learn how to:
3740

3841
When creating an Azure Front Door profile, you must select an origin from the same subscription as the selected the Front Door.
3942

40-
1. Navigate to the Azure home screen.
43+
1. Navigate to the Azure portal home.
4144

4245
1. Select **Create a resource**.
4346

@@ -47,11 +50,11 @@ When creating an Azure Front Door profile, you must select an origin from the sa
4750

4851
1. Select **Create**.
4952

50-
1. Select the **Azure Front Door Standard/Premium** option.
53+
1. Select the **Azure Front Door** option.
5154

5255
1. Select the **Quick create** option.
5356

54-
1. Select the **Continue to create a front door** button.
57+
1. Select the **Continue to create a Front Door** button.
5558

5659
1. In the *Basics* tab, enter the following values:
5760

@@ -63,15 +66,17 @@ When creating an Azure Front Door profile, you must select an origin from the sa
6366
| Name | Enter **my-static-web-app-front-door**. |
6467
| Tier | Select **Standard**. |
6568
| Endpoint name | Enter a unique name for your Front Door host. |
66-
| Origin type | Select **Custom**. |
67-
| Origin host name | Enter the hostname of your static web app that you set aside from the beginning of this tutorial. Make sure your value does not include a trailing slash or protocol. (For example, `desert-rain-04056.azurestaticapps.net`) |
68-
| Origin type | Select **Custom**. |
69-
| Origin host name | Enter the host name for your website. For example, `contoso.com`. |
69+
| Origin type | Select **Static Web App**. |
70+
| Origin host name | Select the host name of your static web app from the dropdown. |
7071
| Caching | Check the **Enable caching** checkbox. |
72+
| Query string caching behavior | Select **Use Query String** |
73+
| Compression | Select **Enable compression** |
7174
| WAF policy | Select **Create new** or select an existing Web Application Firewall policy from the dropdown if you want to enable this feature. |
7275

7376
1. Select **Review + create**.
7477

78+
The validation process may take a moment to complete before you can continue.
79+
7580
1. Select **Create**.
7681

7782
The creation process may take a few minutes to complete.
@@ -99,16 +104,14 @@ Add the following settings to disable Front Door's caching policies from trying
99104

100105
1. Select **Request path**.
101106

102-
1. Select **Begins With** in the *Operator* drop down.
107+
1. Select **Begins With** in the *Operator* drop-down.
103108

104109
1. Select the **Edit** link above the *Value* textbox.
105110

106111
1. Enter **/.auth** in the textbox.
107112

108113
1. Select the **Update** button.
109114

110-
1. Select the **No transform** option from the *Case transform* dropdown.
111-
112115
### Add an action
113116

114117
1. Select the **Add an action** dropdown.
@@ -125,7 +128,7 @@ Now that the rule is created, you apply the rule to a Front Door endpoint.
125128

126129
1. Select the **Unassociated** link.
127130

128-
1. Select the Endpoint name to which you want to apply the caching rule.
131+
1. Select the endpoint name to which you want to apply the caching rule.
129132

130133
1. Select the **Next** button.
131134

@@ -181,11 +184,17 @@ Open the [staticwebapp.config.json](configuration.md) file for your site and mak
181184

182185
```json
183186
{
184-
"route": "/members",
185-
"allowedRoles": ["authenticated, members"],
186-
"headers": {
187-
"Cache-Control": "no-store"
188-
}
187+
...
188+
"routes": [
189+
{
190+
"route": "/members",
191+
"allowedRoles": ["authenticated", "members"],
192+
"headers": {
193+
"Cache-Control": "no-store"
194+
}
195+
}
196+
]
197+
...
189198
}
190199
```
191200

0 commit comments

Comments
 (0)