Skip to content

Commit 9089356

Browse files
authored
Merge pull request #224937 from chcomley/users/chcomley/front-door-30486
Refresh front-door-manual
2 parents 9f64a9c + 1e9ec20 commit 9089356

File tree

5 files changed

+50
-65
lines changed

5 files changed

+50
-65
lines changed

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

Lines changed: 50 additions & 65 deletions
Original file line numberDiff line numberDiff line change
@@ -5,58 +5,42 @@ services: static-web-apps
55
author: craigshoemaker
66
ms.service: static-web-apps
77
ms.topic: how-to
8-
ms.date: 07/05/2022
8+
ms.date: 01/24/2023
99
ms.author: cshoe
1010
---
1111

1212
# Tutorial: Manually configure Azure Front Door for Azure Static Web Apps
1313

14-
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.
14+
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-
19-
In this tutorial, you learn how to:
16+
In this tutorial, learn how to create an Azure Front Door Standard/Premium instance and associate Azure Front Door with your Azure Static Web Apps site.
2017

21-
> [!div class="checklist"]
22-
>
23-
> - Create an Azure Front Door Standard/Premium instance
24-
> - Associate Azure Front Door with your Azure Static Web Apps site
25-
26-
> [!NOTE]
27-
> This tutorial requires the Azure Static Web Apps Standard and Azure Front Door Standard / Premium plans.
18+
## Prerequisites
2819

20+
- An Azure account with an active subscription. [Create an account for free](https://azure.microsoft.com/free/?WT.mc_id=A261C142F)
21+
- An Azure Static Web Apps site. [Build your first static web app](get-started-portal.md)
22+
- Azure Static Web Apps Standard and Azure Front Door Standard / Premium plans. For more information, see [Static Web Apps pricing](https://azure.microsoft.com/pricing/details/app-service/static/)
23+
- Consider using [enterprise-grade edge](enterprise-edge.md) for faster page loads, enhanced security, and optimized reliability for global applications.
24+
<!--
2925
## Copy web app URL
3026
31-
1. Go to the Azure portal.
32-
33-
1. Open the static web app that you want to apply Azure Front Door.
34-
35-
1. Go to the *Overview* section.
36-
37-
1. Copy the *URL* to your clipboard for later use.
38-
39-
## Add Azure Front Door
40-
41-
When creating an Azure Front Door profile, you must select an origin from the same subscription as the selected the Front Door.
27+
1. Sign in to the [Azure portal](https://portal.azure.com).
4228
43-
1. Go to the Azure home screen.
29+
2. Open the static web app that you want to apply Azure Front Door.
4430
45-
1. Select **Create a resource**.
31+
3. Go to the *Overview* section.
4632
47-
1. Search for **Front Door**.
33+
4. Copy the *URL* to your clipboard for later use.
4834
49-
1. Select **Front Door and CDN profiles**.
35+
:::image type="content" source="media/front-door-manual/copy-url-static-web-app.png" alt-text="Screenshot of Static Web App Overview page.":::
36+
-->
5037

51-
1. Select **Create**.
38+
## Create an Azure Front Door
5239

53-
1. Select the **Azure Front Door** option.
54-
55-
1. Select the **Quick create** option.
56-
57-
1. Select **Continue to create a front door**.
58-
59-
1. In the *Basics* tab, enter the following values:
40+
1. Sign in to the [Azure portal](https://portal.azure.com).
41+
2. From the home page or the Azure menu, select **+ Create a resource**. Search for *Front Door and CDN profiles*, and then select **Create** > **Front Door and CDN profiles**.
42+
3. On the Compare offerings page, select **Quick create**, and then select **Continue to create a Front Door**.
43+
4. On the **Create a Front Door profile** page, enter or select the following settings.
6044

6145
| Setting | Value |
6246
|---|---|
@@ -73,13 +57,12 @@ When creating an Azure Front Door profile, you must select an origin from the sa
7357
| Compression | Select **Enable compression** |
7458
| WAF policy | Select **Create new** or select an existing Web Application Firewall policy from the dropdown if you want to enable this feature. |
7559

76-
1. Select **Review + create**.
77-
78-
1. Select **Create**.
60+
> [!NOTE]
61+
> When you create an Azure Front Door profile, you must select an origin from the same subscription the Front Door is created in.
7962
80-
The creation process may take a few minutes to complete.
81-
82-
1. Select **Go to resource**.
63+
5. Select **Review + create**, and then select **Create**. The creation process may take a few minutes to complete.
64+
6. When deployment completes, select **Go to resource**.
65+
7. [Add a condition](#add-a-condition).
8366

8467
## Disable cache for auth workflow
8568

@@ -90,61 +73,63 @@ Add the following settings to disable Front Door's caching policies from trying
9073

9174
### Add a condition
9275

93-
1. Under *Settings*, select **Rule set**.
94-
95-
1. Select **Add**.
76+
1. From your Front Door, under *Settings*, select **Rule set**.
9677

97-
1. In the *Rule set name* textbox, enter **Security**.
78+
2. Select **Add**.
9879

99-
1. In the *Rule name* textbox, enter **NoCacheAuthRequests**.
80+
3. In the *Rule set name* textbox, enter **Security**.
10081

101-
1. Select **Add a condition**.
82+
4. In the *Rule name* textbox, enter **NoCacheAuthRequests**.
10283

103-
1. Select **Request path**.
84+
5. Select **Add a condition**.
10485

105-
1. Select **Begins With** in the *Operator* drop-down.
86+
6. Select **Request path**.
10687

107-
1. Select the **Edit** link above the *Value* textbox.
88+
7. Select the *Operator* drop-down, and then **Begins With**.
10889

109-
1. Enter **/.auth** in the textbox.
90+
8. Select the **Edit** link above the *Value* textbox.
11091

111-
1. Select **Update**.
92+
9. Enter `/.auth` in the textbox, and then select **Update**.
11293

113-
1. Select the **No transform** option from the *Case transform* dropdown.
94+
10. Select no options from the *String transform* dropdown.
11495

11596
### Add an action
11697

11798
1. Select the **Add an action** dropdown.
11899

119-
1. Select **Route configuration override**.
100+
2. Select **Route configuration override**.
120101

121-
1. Select **Disabled** in the *Caching* dropdown.
102+
3. Select **Disabled** in the *Caching* dropdown.
122103

123-
2. Select **Save**.
104+
4. Select **Save**.
124105

125106
### Associate rule to an endpoint
126107

127-
Now that the rule is created, you apply the rule to a Front Door endpoint.
108+
Now that the rule is created, apply the rule to a Front Door endpoint.
128109

129-
1. Select the **Unassociated** link.
110+
1. From your Front Door, select **Rule set**, and then the **Unassociated** link.
130111

131-
1. Select the endpoint name to which you want to apply the caching rule.
112+
:::image type="content" source="media/front-door-manual/rule-set-select-unassociated.png" alt-text="Screenshot showing selections for Rule set and Unassociated links.":::
132113

133-
2. Select **Next**.
114+
2. Select the endpoint name to which you want to apply the caching rule, and then select **Next**.
134115

135116
3. Select **Associate**.
136117

118+
:::image type="content" source="media/front-door-manual/associate-route.png" alt-text="Screenshot showing highlighted button, Associate.":::
119+
137120
## Copy Front Door ID
138121

139122
Use the following steps to copy the Front Door instance's unique identifier.
140123

141-
1. Select the **Overview** link on the left-hand navigation.
124+
1. From your Front Door, select the **Overview** link on the left-hand navigation.
125+
126+
1. Copy the value labeled **Front Door ID** and paste it into a file for later use.
142127

143-
1. From the *Overview* window, copy the value labeled **Front Door ID** and paste it into a file for later use.
128+
:::image type="content" source="media/front-door-manual/copy-front-door-id.png" alt-text="Screenshot showing highlighted Overview item and highlighted Front Door ID number.":::
144129

145130
## Update static web app configuration
146131

147-
To complete the integration with Front Door, you need to update the application configuration file to:
132+
To complete the integration with Front Door, you need to update the application configuration file to do the following functions:
148133

149134
- Restrict traffic to your site only through Front Door
150135
- Restrict traffic to your site only from your Front Door instance
@@ -202,7 +187,7 @@ With this configuration, your site is no longer available via the generated `*.a
202187

203188
## Considerations
204189

205-
- **Custom domains**: Now that Front Door is managing your site, you no long use the Azure Static Web Apps custom domain feature. Azure Front Door has a separate process for adding a custom domain. Refer to [Add a custom domain to your Front Door](../frontdoor/front-door-custom-domain.md). When you add a custom domain to Front Door, you'll need to update your static web app configuration file to include it in the `allowedForwardedHosts` list.
190+
- **Custom domains**: Now that Front Door is managing your site, you no longer use the Azure Static Web Apps custom domain feature. Azure Front Door has a separate process for adding a custom domain. Refer to [Add a custom domain to your Front Door](../frontdoor/front-door-custom-domain.md). When you add a custom domain to Front Door, you'll need to update your static web app configuration file to include it in the `allowedForwardedHosts` list.
206191

207192
- **Traffic statistics**: By default, Azure Front Door configures [health probes](../frontdoor/front-door-health-probes.md) that may affect your traffic statistics. You may want to edit the default values for the [health probes](../frontdoor/front-door-health-probes.md).
208193

28.3 KB
Loading
53.2 KB
Loading
85.3 KB
Loading
59.8 KB
Loading

0 commit comments

Comments
 (0)