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/app-service/quickstart-nodejs.md
+52-43Lines changed: 52 additions & 43 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -40,7 +40,7 @@ This quickstart configures an App Service app in the **Free** tier and incurs no
40
40
41
41
- Have an Azure account with an active subscription. [Create an account for free](https://azure.microsoft.com/free/?utm_source=campaign&utm_campaign=vscode-tutorial-app-service-extension&mktingSource=vscode-tutorial-app-service-extension).
42
42
- Install [Node.js and npm](https://nodejs.org). Run the command `node --version` to verify that Node.js is installed.
43
-
- Have a FTP client (for example, [Visual Studio](https://www.visualstudio.com/vs/community/), [Cyberduck](https://cyberduck.io/), or [WinSCP](https://winscp.net/index.php)), to connect to your app.
43
+
- Have a FTP client (for example, [FileZilla)(https://filezilla-project.org)), to connect to your app.
44
44
45
45
::: zone-end
46
46
## Create your Node.js application locally
@@ -77,41 +77,7 @@ In this step, you create a starter Node.js application and make sure it runs on
77
77
> [!div class="nextstepaction"]
78
78
> [I ran into an issue](https://www.research.net/r/PWZWZ52?tutorial=node-deployment-azure-app-service&step=create-app)
Sign in to the Azure portal at https://portal.azure.com.
86
-
87
-
### Create app
88
-
89
-
1. Type **app services** in the search.
90
-
1. Under **Services**, select **App Service**.
91
-
1. In the **App Services** page, select **Create**.
92
-
1. In the **Basics** tab, under **Project details**, make sure the correct subscription is selected and then choose to **Create new** resource group. Type *myResourceGroup* for the name.
93
-
94
-
:::image type="content" source="./media/quickstart-nodejs/project-details.png" alt-text="Screenshot of the Project details section showing where you select the Azure subscription and the resource group for the web app":::
95
-
96
-
1. Under **Instance details**, type a globally unique name for your web app and select **Code**. Choose *Node 14 LTS* **Runtime stack**, an **Operating System**, and a **Region** you want to serve your app from.
97
-
98
-
:::image type="content" source="./media/quickstart-nodejs/instance-details.png" alt-text="Screenshot of the Instance details section where you provide a name for the virtual machine and select its region, image and size":::
99
-
100
-
1. Under **App Service Plan**, choose to **Create new** App Service Plan. Type *myAppServicePlan* for the name.
101
80
102
-
:::image type="content" source="./media/quickstart-nodejs/app-service-plan-details.png" alt-text="Screenshot of the Administrator account section where you provide the administrator username and password":::
103
-
104
-
1. Select the **Review + create** button at the bottom of the page.
105
-
106
-
:::image type="content" source="./media/quickstart-nodejs/review-create.png" alt-text="Screenshot showing the Review and create button at the bottom of the page":::
107
-
108
-
1. After validation runs, select the **Create** button at the bottom of the page.
109
-
110
-
1. After deployment is complete, select **Go to resource**.
111
-
112
-
:::image type="content" source="./media/quickstart-nodejs/next-steps.png" alt-text="Screenshot showing the next step of going to the resource":::
113
-
114
-
::: zone-end
115
81
## Deploy to Azure
116
82
117
83
Before you continue, ensure that you have all the prerequisites installed and configured.
@@ -255,15 +221,45 @@ You can launch the app at http://<app-name>.azurewebsites.net
Sign in to the Azure portal at https://portal.azure.com.
258
227
259
-
This section shows you how to use FTP or FTPS to deploy your web app.
228
+
### Create Azure resources
260
229
261
-
The FTP/S endpoint for your app is already active. No configuration is necessary to enable FTP/S deployment.
230
+
1. Type **app services** in the search. Under **Services**, select **App Service**.
262
231
263
-
### Get deployment credentials
232
+
:::image type="content" source="https://via.placeholder.com/794x200.png?text=Azure portal search details" alt-text="Screenshot of portal search":::
233
+
234
+
1. In the **App Services** page, select **Create**.
235
+
1. In the **Basics** tab, under **Project details**, make sure the correct subscription is selected and then choose to **Create new** resource group. Type *myResourceGroup* for the name.
236
+
237
+
:::image type="content" source="./media/quickstart-nodejs/project-details.png" alt-text="Screenshot of the Project details section showing where you select the Azure subscription and the resource group for the web app":::
238
+
239
+
1. Under **Instance details**, type a globally unique name for your web app and select **Code**. Choose *Node 14 LTS* **Runtime stack**, an **Operating System**, and a **Region** you want to serve your app from.
240
+
241
+
:::image type="content" source="./media/quickstart-nodejs/instance-details.png" alt-text="Screenshot of the Instance details section where you provide a name for the virtual machine and select its region, image and size":::
242
+
243
+
1. Under **App Service Plan**, choose to **Create new** App Service Plan. Type *myAppServicePlan* for the name.
244
+
245
+
:::image type="content" source="./media/quickstart-nodejs/app-service-plan-details.png" alt-text="Screenshot of the Administrator account section where you provide the administrator username and password":::
246
+
247
+
1. Select the **Review + create** button at the bottom of the page.
248
+
249
+
:::image type="content" source="./media/quickstart-nodejs/review-create.png" alt-text="Screenshot showing the Review and create button at the bottom of the page":::
250
+
251
+
1. After validation runs, select the **Create** button at the bottom of the page.
252
+
253
+
1. After deployment is complete, select **Go to resource**.
254
+
255
+
:::image type="content" source="./media/quickstart-nodejs/next-steps.png" alt-text="Screenshot showing the next step of going to the resource":::
256
+
257
+
### Deploy files with FTP
264
258
265
259
1. Follow the instructions at [Configure deployment credentials for Azure App Service](deploy-configure-credentials.md) to copy the application-scope credentials or set the user-scope credentials. You can connect to the FTP/S endpoint of your app using either credentials.
1. Craft the FTP username in the following format, depending on your choice of credential scope:
268
264
269
265
| Application-scope | User-scope |
@@ -280,9 +276,12 @@ In the same management page for your app where you copied the deployment credent
280
276
281
277
### Deploy files to Azure
282
278
283
-
1. From your FTP client (for example, [Visual Studio](https://www.visualstudio.com/vs/community/), [Cyberduck](https://cyberduck.io/), or [WinSCP](https://winscp.net/index.php)), use the connection information you gathered to connect to your app.
284
-
2. Copy your files and their respective directory structure to the [**/site/wwwroot** directory](https://github.com/projectkudu/kudu/wiki/File-structure-on-azure) in Azure.
285
-
3. Browse to your app's URL to verify the app is running properly.
279
+
1. From your FTP client (for example, [FileZilla](https://www.filezilla-project.org/), use the connection information you gathered to connect to your app.
280
+
281
+
1. Copy your files and their respective directory structure to the [**/site/wwwroot** directory](https://github.com/projectkudu/kudu/wiki/File-structure-on-azure) in Azure.
282
+
:::image type="content" source="https://via.placeholder.com/794x200.png?text=Copy files and structure" alt-text="Copy files and structure":::
283
+
284
+
1. Browse to your app's URL to verify the app is running properly.
286
285
287
286
::: zone-end
288
287
## Redeploy updates
@@ -380,7 +379,11 @@ To stop log streaming at any time, press **Ctrl**+**C** in the terminal.
380
379
381
380
You can access the console logs generated from inside the app and the container in which it runs. You can stream log output (calls to `console.log()`) from the Node.js app directly in the Azure portal.
382
381
383
-
1. On the **App Service** page for your app, click **Log stream**.
382
+
1. Go to the **App Service** page for your app.
383
+
384
+
:::image type="content" source="https://via.placeholder.com/794x200.png?text=App service page" alt-text="App Service page":::
385
+
386
+
1. Scroll to the *Monitoring* section and click **Log stream**.
384
387
385
388
:::image type="content" source="./media/quickstart-nodejs/log-stream.png" alt-text="Screenshot of Log stream in Azure App service.":::
386
389
@@ -446,7 +449,13 @@ The `--no-wait` argument allows the command to return before the operation is co
446
449
447
450
When no longer needed, you can delete the resource group, App service, and all related resources.
448
451
449
-
Go to the resource group for the App Service, thenselectDelete resource group. Confirm the name of the resource group to finish deleting the resources.
452
+
1. In the search, type*myResourceGroup*.
453
+
454
+
:::image type="content" source="https://via.placeholder.com/794x200.png?text=App service page" alt-text="App Service page":::
455
+
456
+
1. Go to the resource group, thenselectDelete resource group. Confirm the name of the resource group to finish deleting the resources.
0 commit comments