You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/static-web-apps/get-started-cli.md
+14-13Lines changed: 14 additions & 13 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,29 +5,30 @@ services: static-web-apps
5
5
author: craigshoemaker
6
6
ms.service: static-web-apps
7
7
ms.topic: quickstart
8
-
ms.date: 11/17/2021
8
+
ms.date: 08/03/2022
9
9
ms.author: cshoe
10
10
ms.custom: mode-api, devx-track-azurecli
11
11
ms.devlang: azurecli
12
12
---
13
13
14
14
# Quickstart: Building your first static site using the Azure CLI
15
15
16
-
Azure Static Web Apps publishes a website to a production environment by building apps from a GitHub repository. In this quickstart, you deploy a web application to Azure Static Web apps using the Azure CLI.
16
+
Azure Static Web Apps publishes websites to production by building apps from a code repository.
17
17
18
-
If you don't have an Azure subscription, [create a free trial account](https://azure.microsoft.com/free).
18
+
In this quickstart, you deploy a web application to Azure Static Web apps using the Azure CLI.
19
19
20
20
## Prerequisites
21
21
22
22
-[GitHub](https://github.com) account
23
-
-[Azure](https://portal.azure.com) account
23
+
-[Azure](https://portal.azure.com) account.
24
+
- If you don't have an Azure subscription, you can [create a free trial account](https://azure.microsoft.com/free).
24
25
-[Azure CLI](/cli/azure/install-azure-cli) installed (version 2.29.0 or higher)
25
26
26
27
[!INCLUDE [create repository from template](../../includes/static-web-apps-get-started-create-repo.md)]
27
28
28
-
## Create a static web app
29
+
## Deploy a static web app
29
30
30
-
Now that the repository is created, you can create a static web app from the Azure CLI.
31
+
Now that the repository is generated from the template, you can deploy the app as a static web app from the Azure CLI.
31
32
32
33
1. Sign in to the Azure CLI by using the following command.
33
34
@@ -45,13 +46,13 @@ Now that the repository is created, you can create a static web app from the Azu
45
46
46
47
1. Create a variable to hold your GitHub user name.
47
48
49
+
Before you execute the following command, replace the placeholder `<YOUR_GITHUB_USER_NAME>` with your GitHub user name.
50
+
48
51
```bash
49
52
GITHUB_USER_NAME=<YOUR_GITHUB_USER_NAME>
50
53
```
51
54
52
-
Replace the placeholder `<YOUR_GITHUB_USER_NAME>` with your GitHub user name.
53
-
54
-
1. Create a new static web app from your repository.
55
+
1. Deploy a new static web app from your repository.
55
56
56
57
# [No Framework](#tab/vanilla-javascript)
57
58
@@ -127,7 +128,7 @@ Now that the repository is created, you can create a static web app from the Azu
127
128
> [!IMPORTANT]
128
129
> The URL passed to the `--source` parameter must not include the `.git` suffix.
129
130
130
-
As you execute this command, the CLI starts GitHub interactive login experience. Look for a line in your console that resembles the following message.
131
+
As you execute this command, the CLI starts the GitHub interactive log in experience. Look for a line in your console that resembles the following message.
131
132
132
133
> Please navigate to `https://github.com/login/device` and enter the user code 329B-3945 to activate and retrieve your GitHub personal access token.
133
134
@@ -141,7 +142,7 @@ Now that the repository is created, you can create a static web app from the Azu
141
142
142
143
## View the website
143
144
144
-
There are two aspects to deploying a static app. The first operation creates the underlying Azure resources that make up your app. The second is a GitHub Actions workflow that builds and publishes your application.
145
+
There are two aspects to deploying a static app. The first operation creates the underlying Azure resources that make up your app. The second is a workflow that builds and publishes your application.
145
146
146
147
Before you can navigate to your new static site, the deployment build must first finish running.
147
148
@@ -155,7 +156,7 @@ Before you can navigate to your new static site, the deployment build must first
155
156
156
157
The output of this command returns the URL to your GitHub repository.
157
158
158
-
1. Copy the **repository URL** and paste it into the browser.
159
+
1. Copy the **repository URL** and paste it into your browser.
159
160
160
161
1. Select the **Actions** tab.
161
162
@@ -171,7 +172,7 @@ Before you can navigate to your new static site, the deployment build must first
171
172
--query "defaultHostname"
172
173
```
173
174
174
-
Copy the URL into the browser and navigate to your website.
175
+
Copy the URL into your browser to navigate to your website.
Copy file name to clipboardExpand all lines: includes/static-web-apps-get-started-create-repo.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,7 +8,7 @@ ms.author: cshoe
8
8
9
9
## Create a repository
10
10
11
-
This article uses a GitHub template repository to make it easy for you to get started. The template features a starter app used to deploy using Azure Static Web Apps.
11
+
This article uses a GitHub template repository to make it easy for you to get started. The template features a starter app to deploy to Azure Static Web Apps.
0 commit comments