Skip to content

Commit c3f62d3

Browse files
committed
More
1 parent 1aaf506 commit c3f62d3

File tree

3 files changed

+43
-181
lines changed

3 files changed

+43
-181
lines changed

azure-stack/operator/azure-stack-app-service-overview.md

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,8 @@
22
title: Azure App Service on Azure Stack overview
33
description: Overview of Azure App Service and Azure Functions on Azure Stack Hub.
44
author: sethmanheim
5-
65
ms.topic: article
7-
ms.date: 05/05/2020
6+
ms.date: 01/24/2025
87
ms.author: sethm
98
ms.reviewer: anwestg
109
ms.lastreviewed: 01/13/2019
@@ -36,14 +35,14 @@ App Service offers several app types, each of which is intended to host a specif
3635
- [Web Apps](/azure/app-service/overview) for hosting websites, web apps and REST APIs.
3736
- [Azure Functions v1](/azure/azure-functions/functions-versions) for hosting event driven, serverless workloads.
3837

39-
The word *app* refers to the hosting resources dedicated to running a workload. Taking *web app* as an example, you're probably accustomed to thinking of a web app as both the compute resources and app code that together deliver functionality to a browser. In Azure App Service, a web app is the compute resource that Azure Stack Hub provides for hosting your app code.
38+
The word *app* refers to the hosting resources dedicated to running a workload. Taking *web app* as an example, you're probably accustomed to thinking of a web app as both the compute resources and app code that together deliver functionality to a browser. In Azure App Service, a web app is the compute resource that Azure Stack Hub provides to host your app code.
4039

4140
Your app can be composed of multiple App Service apps of different kinds. For example, if your app is composed of a web front end and a REST API back end, you can:
4241

4342
- Deploy both (front end and API) to a single web app.
4443
- Deploy your front-end code to a web app and your back-end code to an API app.
4544

46-
[![App Service overview with monitoring data](media/azure-stack-app-service-overview/image01.png "App Service overview with monitoring data")](media/azure-stack-app-service-overview/image01.png#lightbox)
45+
[![App Service overview with monitoring data](media/azure-stack-app-service-overview/image01.png "App Service overview with monitoring data")](media/azure-stack-app-service-overview/image01.png#lightbox)
4746

4847
## What is an App Service plan?
4948

@@ -57,7 +56,7 @@ Azure App Service on Azure Stack Hub uses the same user interface that Azure App
5756

5857
## Next steps
5958

59+
You can try out other [platform as a service (PaaS) services](service-plan-offer-subscription-overview.md), such as the [SQL Server resource provider](azure-stack-sql-resource-provider-deploy.md) and the [MySQL resource provider](azure-stack-mysql-resource-provider-deploy.md).
60+
6061
- [Prerequisites for deploying App Service on Azure Stack Hub](azure-stack-app-service-before-you-get-started.md)
6162
- [Install the Azure App Service resource provider](azure-stack-app-service-deploy.md)
62-
63-
You can also try out other [platform as a service (PaaS) services](service-plan-offer-subscription-overview.md), such as the [SQL Server resource provider](azure-stack-sql-resource-provider-deploy.md) and the [MySQL resource provider](azure-stack-mysql-resource-provider-deploy.md).

azure-stack/user/azure-stack-dev-start-howto-vm-nodejs.md

Lines changed: 29 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,8 @@
22
title: Deploy Node.js app to VM in Azure Stack Hub
33
description: Deploy an Node.js app to Azure Stack Hub.
44
author: sethmanheim
5-
65
ms.topic: how-to
7-
ms.date: 8/20/2021
6+
ms.date: 01/24/2025
87
ms.author: sethm
98
ms.reviewer: thoroet
109
ms.lastreviewed: 8/20/2021
@@ -13,59 +12,55 @@ ms.lastreviewed: 8/20/2021
1312
# Keyword: Notdone: keyword noun phrase
1413
---
1514

16-
17-
1815
# Deploy a Node.js web app to a VM in Azure Stack Hub
1916

2017
You can create a virtual machine (VM) to host a Node.js web app in Azure Stack Hub. In this article, set up a server, configure the server to host your Node.js web app, and then deploy the app to Azure Stack Hub.
2118

22-
If you are looking for general information about global Azure, see [Azure for JavaScript & Node.js developers](/azure/developer/javascript/). This article is for using Azure Stack Hub, an on-premises version of Azure.
19+
If you are looking for general information about global Azure, see [Azure for JavaScript and Node.js developers](/azure/developer/javascript/). This article is for using Azure Stack Hub, an on-premises version of Azure.
2320

2421
## Create a VM
2522

2623
1. Set up your VM in Azure Stack Hub by following the instructions in [Deploy a Linux VM to host a web app in Azure Stack Hub](azure-stack-dev-start-howto-deploy-linux.md).
24+
1. In the VM network pane, make sure that the following ports are accessible:
2725

28-
2. In the VM network pane, make sure that the following ports are accessible:
29-
30-
| Port | Protocol | Description |
31-
| --- | --- | --- |
32-
| 80 | HTTP | Hypertext Transfer Protocol (HTTP) is the protocol that's used to deliver webpages from servers. Clients connect via HTTP with a DNS name or IP address. |
33-
| 443 | HTTPS | Hypertext Transfer Protocol Secure (HTTPS) is a secure version of HTTP that requires a security certificate and allows for the encrypted transmission of information. |
34-
| 22 | SSH | Secure Shell (SSH) is an encrypted network protocol for secure communications. You use this connection with an SSH client to configure the VM and deploy the app. |
35-
| 3389 | RDP | Optional. The Remote Desktop Protocol (RDP) allows a remote desktop connection to use a graphic user interface on your machine. |
36-
| 3000 | Custom | The port that's used by the Node.js Express framework. For a production server, you route your traffic through 80 and 443. |
26+
| Port | Protocol | Description |
27+
| --- | --- | --- |
28+
| 80 | HTTP | Hypertext Transfer Protocol (HTTP) is the protocol that's used to deliver webpages from servers. Clients connect via HTTP with a DNS name or IP address. |
29+
| 443 | HTTPS | Hypertext Transfer Protocol Secure (HTTPS) is a secure version of HTTP that requires a security certificate and allows for the encrypted transmission of information. |
30+
| 22 | SSH | Secure Shell (SSH) is an encrypted network protocol for secure communications. You use this connection with an SSH client to configure the VM and deploy the app. |
31+
| 3389 | RDP | Optional. The Remote Desktop Protocol (RDP) allows a remote desktop connection to use a graphic user interface on your machine. |
32+
| 3000 | Custom | The port that's used by the Node.js Express framework. For a production server, you route your traffic through 80 and 443. |
3733

3834
## Install Node
3935

4036
1. Connect to your VM by using your SSH client. For instructions, see [Connect via SSH with PuTTY](azure-stack-dev-start-howto-ssh-public-key.md#connect-with-ssh-by-using-putty).
37+
1. At the bash prompt on your VM, enter the following command:
4138

42-
2. At the bash prompt on your VM, enter the following command:
43-
44-
```bash
45-
sudo apt-get update
46-
sudo apt-get install nodejs
47-
sudo apt-get install npm
48-
```
39+
```bash
40+
sudo apt-get update
41+
sudo apt-get install nodejs
42+
sudo apt-get install npm
43+
```
4944

50-
This also installs [NPM](https://www.npmjs.com/), a package manager for Node.js packages, or modules.
45+
These commands also install [NPM](https://www.npmjs.com/), a package manager for Node.js packages, or modules.
5146

52-
3. Validate your installation. While you're still connected to your VM in your SSH session, enter the following command:
47+
1. Validate your installation. While you're still connected to your VM in your SSH session, enter the following command:
5348

54-
```bash
55-
node --version
56-
```
49+
```bash
50+
node --version
51+
```
5752

5853
## Scaffold a new application with the Express Generator
5954

60-
[Express](https://www.expressjs.com/) is a popular framework for building and running Node.js applications. You can scaffold (create) a new Express application using the [Express Generator tool](https://expressjs.com/en/starter/generator.html). The Express Generator is shipped as an **npm** module and can be run directly (without installation) by using the npm command-line tool `npx`.
55+
[Express](https://www.expressjs.com/) is a popular framework for building and running Node.js applications. You can scaffold (create) a new Express application using the [Express Generator tool](https://expressjs.com/en/starter/generator.html). The Express Generator is shipped as an **npm** module and can be run directly (without installation) by using the npm command-line tool `npx`:
6156

6257
```bash
63-
npx express-generator myExpressApp --view pug --git
58+
npx express-generator myExpressApp --view pug --git
6459
```
6560

66-
The ` --view pug --git` parameters tell the generator to use the pug template engine (formerly known as `jade`) and to create a `.gitignore` file.
61+
The `--view pug --git` parameters tell the generator to use the pug template engine (formerly known as `jade`) and to create a `.gitignore` file.
6762

68-
To install all of the application's dependencies, go to the new folder and run npm install.
63+
To install all of the application's dependencies, go to the new folder and run `npm install`:
6964

7065
```bash
7166
cd myExpressApp
@@ -74,14 +69,14 @@ npm install
7469

7570
Run the application. From the terminal, start the application using the `npm start` command to start the server.
7671

77-
Go to your new server in a Web browser. You should see your running web application. You can find the URL for your Linux VM in the Azure Stack Hub user portal labeled **DNS name**.
72+
Go to your new server in a web browser. You should see your running web application. You can find the URL for your Linux VM in the Azure Stack Hub user portal, labeled **DNS name**.
7873

79-
```HTTP
74+
```http
8075
http://yourhostname.contoso.com:3000
8176
```
8277

8378
## Next steps
8479

85-
- Learn more about how to [develop for Azure Stack Hub](azure-stack-dev-start.md).
80+
- Learn about how to [develop for Azure Stack Hub](azure-stack-dev-start.md).
8681
- Learn about [common deployments for Azure Stack Hub as IaaS](azure-stack-dev-start-deploy-app.md).
87-
- To learn more about using Node.js with Azure, see [Azure for JavaScript & Node.js developers](/azure/developer/javascript/)
82+
- To learn about using Node.js with Azure, see [Azure for JavaScript & Node.js developers](/azure/developer/javascript/).

0 commit comments

Comments
 (0)