Skip to content

Commit 169c28a

Browse files
Merge pull request #279179 from craigshoemaker/patch-10
[Static Web Apps] Update: Troubleshooting (freshness)
2 parents 6fc5924 + 905aa98 commit 169c28a

File tree

1 file changed

+22
-11
lines changed

1 file changed

+22
-11
lines changed

articles/static-web-apps/troubleshooting.md

Lines changed: 22 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ services: static-web-apps
55
author: geektrainer
66
ms.service: static-web-apps
77
ms.topic: conceptual
8-
ms.date: 04/07/2021
8+
ms.date: 06/25/2024
99
ms.author: chrhar
1010
---
1111

@@ -23,17 +23,20 @@ npm run build # if specified in package.json
2323
npm run build:azure # if specified in package.json
2424
```
2525

26-
Any errors raised by this process are logged in the GitHub workflow run.
26+
Any errors raised by this process are logged in the GitHub workflow run. To view the logs generated by build action, use the following steps.
2727

2828
1. Go to the GitHub repository for your static web app.
29+
2930
1. Select **Actions**.
3031

3132
> [!NOTE]
3233
> Any failed workflow runs display with a red *X* rather than a green check mark.
3334
34-
2. Select the link for the workflow run you wish to validate.
35-
3. Select **Build and Deploy Job** to open the details of the deployment
36-
4. Select **Build And Deploy** to display the log
35+
1. Select the link for the workflow run you wish to validate.
36+
37+
1. Select **Build and Deploy Job** to open the details of the deployment.
38+
39+
1. Select **Build And Deploy** to display the log.
3740

3841
![Screenshot of the deployment log for a static web app](./media/troubleshooting/build-deploy-log.png)
3942

@@ -42,7 +45,7 @@ Any errors raised by this process are logged in the GitHub workflow run.
4245
> [!NOTE]
4346
> Some warning error messages may display in red, such as notes about *.oryx_prod_node_modules* and *workspace*. These are part of the normal deployment process.
4447
45-
If any packages fail to install or other issues are raised you'll see the original error messages here, as if you ran the `npm` commands locally.
48+
If any packages fail to install or other issues are raised, the original error messages are available here.
4649

4750
### Confirm folder configuration
4851

@@ -75,18 +78,22 @@ Use [Application Insights](../azure-monitor/app/app-insights-overview.md) to fin
7578
> You can only view error messages that are generated after Application Insights is installed.
7679
7780
1. Inside the Azure portal, open the **Resource Group** associated with your static web app.
78-
1. Select the Application Insights instance, which has the same name as your static web app (if created using the steps above).
81+
82+
1. Select the Application Insights instance, which has the same name as your static web app (if created using the previous steps).
83+
7984
1. Under *Investigate*, select **Failures**.
80-
1. Scroll down to *Drill into* on the right.
81-
2. In the lower right corner, under *Drill into*, a button displays the number of recently failed operations.
85+
86+
1. Go down to *Drill into* on the right.
87+
88+
1. Under *Drill into*, a button displays the number of recently failed operations.
8289

8390
![Screenshot of the failures screen](./media/troubleshooting/app-insights-errors.png)
8491

85-
3. Select **x Operations** to open a panel displaying the recent failed operations.
92+
1. Select **x Operations** to open a panel displaying the recent failed operations.
8693

8794
![Screenshot of the operations screen](./media/troubleshooting/app-insights-operations.png)
8895

89-
4. Explore an error by selecting one from the list.
96+
1. Explore an error by selecting one from the list.
9097

9198
![Screenshot of the error details screen](./media/troubleshooting/app-insights-details.png)
9299

@@ -99,15 +106,19 @@ Application Settings are key/value pairs that set environment variables for your
99106
When deploying, double check any environment variables are set as Application Settings.
100107

101108
1. Open your static web app in the Azure portal.
109+
102110
1. Select **Configuration**. The *Configuration* screen displays the list of all Application Settings.
103111

104112
![Screenshot of the Configuration screen on a static web app](media/troubleshooting/app-settings.png)
105113

106114
Use the following steps to add a new variable.
107115

108116
1. Select **Add**.
117+
109118
1. Set the **Name**.
119+
110120
1. Set the **Value**.
121+
111122
1. Select **OK**.
112123
1. Select **Save**.
113124

0 commit comments

Comments
 (0)