Skip to content

Commit f35340c

Browse files
Merge pull request #270922 from craigshoemaker/swa/qs-vscode-04-24
[Static Web Apps] Update: Visual Studio Quickstart
2 parents e82c2c4 + 0264094 commit f35340c

File tree

1 file changed

+28
-58
lines changed

1 file changed

+28
-58
lines changed

articles/static-web-apps/getting-started.md

Lines changed: 28 additions & 58 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@ services: static-web-apps
55
author: craigshoemaker
66
ms.service: static-web-apps
77
ms.topic: quickstart
8-
ms.date: 08/10/2023
8+
ms.date: 04/02/2024
99
ms.author: cshoe
1010
ms.custom: mode-other
1111
---
1212

13-
# Quickstart: Building your first static site with Azure Static Web Apps
13+
# Quickstart: Build your first static site with Azure Static Web Apps
1414

1515
Azure Static Web Apps publishes a website by building an app from a code repository. In this quickstart, you deploy an application to Azure Static Web apps using the Visual Studio Code extension.
1616

@@ -37,7 +37,6 @@ If you don't already have the [Azure Static Web Apps extension for Visual Studio
3737
1. Select **View** > **Extensions**.
3838
1. In the **Search Extensions in Marketplace**, type **Azure Static Web Apps**.
3939
1. Select **Install** for **Azure Static Web Apps**.
40-
2. The extension installs into Visual Studio Code.
4140

4241
## Create a static web app
4342

@@ -48,104 +47,75 @@ If you don't already have the [Azure Static Web Apps extension for Visual Studio
4847
> [!NOTE]
4948
> You are required to sign in to Azure and GitHub in Visual Studio Code to continue. If you are not already authenticated, the extension prompts you to sign in to both services during the creation process.
5049
51-
2. Select <kbd>F1</kbd> to open the Visual Studio Code command palette.
50+
1. Select <kbd>F1</kbd> to open the Visual Studio Code command palette.
5251

53-
3. Enter **Create static web app** in the command box.
52+
1. Enter **Create static web app** in the command box.
5453

55-
4. Select *Azure Static Web Apps: Create static web app...*.
54+
1. Select *Azure Static Web Apps: Create static web app...*.
5655

57-
# [No Framework](#tab/vanilla-javascript)
56+
1. Select your Azure subscription.
5857

59-
| Setting | Value |
60-
| --- | --- |
61-
| Name | Enter **my-first-static-web-app** |
62-
| Region | Select the region closest to you. |
63-
| Framework | Select **Custom**. |
58+
1. Enter **my-first-static-web-app** for the application name.
6459

65-
# [Angular](#tab/angular)
66-
67-
| Setting | Value |
68-
| --- | --- |
69-
| Name | Enter **my-first-static-web-app** |
70-
| Region | Select the region closest to you. |
71-
| Framework | Select **Angular**. |
60+
1. Select the region closest to you.
7261

73-
# [Blazor](#tab/blazor)
74-
75-
| Setting | Value |
76-
| --- | --- |
77-
| Name | Enter **my-first-static-web-app** |
78-
| Region | Select the region closest to you. |
79-
| Framework | Select **Blazor**. |
80-
81-
# [React](#tab/react)
82-
83-
| Setting | Value |
84-
| --- | --- |
85-
| Name | Enter **my-first-static-web-app** |
86-
| Region | Select the region closest to you. |
87-
| Framework | Select **React**. |
88-
89-
# [Vue](#tab/vue)
90-
91-
| Setting | Value |
92-
| --- | --- |
93-
| Name | Enter **my-first-static-web-app** |
94-
| Region | Select the region closest to you. |
95-
| Framework | Select **Vue.js**. |
96-
97-
---
98-
99-
5. Enter the settings values that match your framework preset choice.
62+
1. Enter the settings values that match your framework choice.
10063

10164
# [No Framework](#tab/vanilla-javascript)
10265

10366
| Setting | Value |
10467
| --- | --- |
105-
| Location of application code | Enter **/src** |
106-
| Build location | Enter **/src** |
68+
| Framework | Select **Custom** |
69+
| Location of application code | Enter `/src` |
70+
| Build location | Enter `/src` |
10771

10872
# [Angular](#tab/angular)
10973

11074
| Setting | Value |
11175
| --- | --- |
112-
| Location of application code | Enter **/** |
113-
| Build location | Enter **dist/angular-basic** |
76+
| Framework | Select **Angular** |
77+
| Location of application code | Enter `/` |
78+
| Build location | Enter `dist/angular-basic` |
11479

11580
# [Blazor](#tab/blazor)
11681

11782
| Setting | Value |
11883
| --- | --- |
119-
| Location of application code | Enter **Client** |
120-
| Build location | Enter **wwwroot** |
84+
| Framework | Select **Blazor** |
85+
| Location of application code | Enter `Client` |
86+
| Build location | Enter `wwwroot` |
12187

12288
# [React](#tab/react)
12389

12490
| Setting | Value |
12591
| --- | --- |
126-
| Location of application code | Enter **/** |
127-
| Build location | Enter **build** |
92+
| Framework | Select **React** |
93+
| Location of application code | Enter `/` |
94+
| Build location | Enter `build` |
12895

12996
# [Vue](#tab/vue)
13097

13198
| Setting | Value |
13299
| --- | --- |
133-
| Location of application code | Enter **/** |
134-
| Build location | Enter **dist** |
100+
| Framework | Select **Vue.js** |
101+
| Location of application code | Enter `/` |
102+
| Build location | Enter `dist` |
135103

136104
---
137105

138-
6. Once the app is created, a confirmation notification is shown in Visual Studio Code.
106+
1. Once the app is created, a confirmation notification is shown in Visual Studio Code.
139107

140108
:::image type="content" source="media/getting-started/extension-confirmation.png" alt-text="Created confirmation":::
141109

110+
If GitHub presents you with a button labeled **Enable Actions on this repository**, select the button to allow the build action to run on your repository.
111+
142112
As the deployment is in progress, the Visual Studio Code extension reports the build status to you.
143113

144114
:::image type="content" source="media/getting-started/extension-waiting-for-deployment.png" alt-text="Waiting for deployment":::
145115

146116
Once the deployment is complete, you can navigate directly to your website.
147117

148-
7. To view the website in the browser, right-click the project in the Static Web Apps extension, and select **Browse Site**.
118+
1. To view the website in the browser, right-click the project in the Static Web Apps extension, and select **Browse Site**.
149119

150120
:::image type="content" source="media/getting-started/extension-browse-site.png" alt-text="Browse site":::
151121

0 commit comments

Comments
 (0)