Skip to content

Commit 95b201a

Browse files
refresh
1 parent c5c3642 commit 95b201a

File tree

1 file changed

+30
-57
lines changed

1 file changed

+30
-57
lines changed

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

Lines changed: 30 additions & 57 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,7 @@ 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.
40+
1. The extension installs into Visual Studio Code.
4141

4242
## Create a static web app
4343

@@ -48,94 +48,65 @@ If you don't already have the [Azure Static Web Apps extension for Visual Studio
4848
> [!NOTE]
4949
> 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.
5050
51-
2. Select <kbd>F1</kbd> to open the Visual Studio Code command palette.
51+
1. Select <kbd>F1</kbd> to open the Visual Studio Code command palette.
5252

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

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

57-
# [No Framework](#tab/vanilla-javascript)
58-
59-
| Setting | Value |
60-
| --- | --- |
61-
| Name | Enter **my-first-static-web-app** |
62-
| Region | Select the region closest to you. |
63-
| Framework | Select **Custom**. |
64-
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**. |
72-
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**. |
57+
1. Select configuration values based on choice of framework.
8058

81-
# [React](#tab/react)
59+
1. Select your Azure subscription.
8260

83-
| Setting | Value |
84-
| --- | --- |
85-
| Name | Enter **my-first-static-web-app** |
86-
| Region | Select the region closest to you. |
87-
| Framework | Select **React**. |
61+
1. Enter **my-first-static-web-app** for the application name.
8862

89-
# [Vue](#tab/vue)
63+
1. Select the region closest to you.
9064

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.
65+
1. Enter the settings values that match your framework choice.
10066

10167
# [No Framework](#tab/vanilla-javascript)
10268

10369
| Setting | Value |
10470
| --- | --- |
105-
| Location of application code | Enter **/src** |
106-
| Build location | Enter **/src** |
71+
| Framework | Select **Custom**. |
72+
| Location of application code | Enter **/src**. |
73+
| Build location | Enter **/src**. |
10774

10875
# [Angular](#tab/angular)
10976

11077
| Setting | Value |
11178
| --- | --- |
112-
| Location of application code | Enter **/** |
113-
| Build location | Enter **dist/angular-basic** |
79+
| Framework | Select **Angular**. |
80+
| Location of application code | Enter **/**. |
81+
| Build location | Enter **dist/angular-basic**. |
11482

11583
# [Blazor](#tab/blazor)
11684

11785
| Setting | Value |
11886
| --- | --- |
119-
| Location of application code | Enter **Client** |
120-
| Build location | Enter **wwwroot** |
87+
| Framework | Select **Blazor**. |
88+
| Location of application code | Enter **Client**. |
89+
| Build location | Enter **wwwroot**. |
12190

12291
# [React](#tab/react)
12392

12493
| Setting | Value |
12594
| --- | --- |
126-
| Location of application code | Enter **/** |
127-
| Build location | Enter **build** |
95+
| Framework | Select **React**. |
96+
| Location of application code | Enter **/**. |
97+
| Build location | Enter **build**. |
12898

12999
# [Vue](#tab/vue)
130100

131101
| Setting | Value |
132102
| --- | --- |
133-
| Location of application code | Enter **/** |
134-
| Build location | Enter **dist** |
103+
| Framework | Select **Vue.js**. |
104+
| Location of application code | Enter **/**. |
105+
| Build location | Enter **dist**. |
135106

136107
---
137108

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

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

@@ -145,7 +116,9 @@ If you don't already have the [Azure Static Web Apps extension for Visual Studio
145116

146117
Once the deployment is complete, you can navigate directly to your website.
147118

148-
7. To view the website in the browser, right-click the project in the Static Web Apps extension, and select **Browse Site**.
119+
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.
120+
121+
1. To view the website in the browser, right-click the project in the Static Web Apps extension, and select **Browse Site**.
149122

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

0 commit comments

Comments
 (0)