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: azure-stack/operator/azure-stack-app-service-overview.md
+5-6Lines changed: 5 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,9 +2,8 @@
2
2
title: Azure App Service on Azure Stack overview
3
3
description: Overview of Azure App Service and Azure Functions on Azure Stack Hub.
4
4
author: sethmanheim
5
-
6
5
ms.topic: article
7
-
ms.date: 05/05/2020
6
+
ms.date: 01/24/2025
8
7
ms.author: sethm
9
8
ms.reviewer: anwestg
10
9
ms.lastreviewed: 01/13/2019
@@ -36,14 +35,14 @@ App Service offers several app types, each of which is intended to host a specif
36
35
-[Web Apps](/azure/app-service/overview) for hosting websites, web apps and REST APIs.
37
36
-[Azure Functions v1](/azure/azure-functions/functions-versions) for hosting event driven, serverless workloads.
38
37
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.
40
39
41
40
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:
42
41
43
42
- Deploy both (front end and API) to a single web app.
44
43
- Deploy your front-end code to a web app and your back-end code to an API app.
45
44
46
-
[](media/azure-stack-app-service-overview/image01.png#lightbox)
45
+
[](media/azure-stack-app-service-overview/image01.png#lightbox)
47
46
48
47
## What is an App Service plan?
49
48
@@ -57,7 +56,7 @@ Azure App Service on Azure Stack Hub uses the same user interface that Azure App
57
56
58
57
## Next steps
59
58
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
+
60
61
-[Prerequisites for deploying App Service on Azure Stack Hub](azure-stack-app-service-before-you-get-started.md)
61
62
-[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).
Copy file name to clipboardExpand all lines: azure-stack/user/azure-stack-dev-start-howto-vm-nodejs.md
+29-34Lines changed: 29 additions & 34 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,9 +2,8 @@
2
2
title: Deploy Node.js app to VM in Azure Stack Hub
3
3
description: Deploy an Node.js app to Azure Stack Hub.
4
4
author: sethmanheim
5
-
6
5
ms.topic: how-to
7
-
ms.date: 8/20/2021
6
+
ms.date: 01/24/2025
8
7
ms.author: sethm
9
8
ms.reviewer: thoroet
10
9
ms.lastreviewed: 8/20/2021
@@ -13,59 +12,55 @@ ms.lastreviewed: 8/20/2021
13
12
# Keyword: Notdone: keyword noun phrase
14
13
---
15
14
16
-
17
-
18
15
# Deploy a Node.js web app to a VM in Azure Stack Hub
19
16
20
17
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.
21
18
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.
23
20
24
21
## Create a VM
25
22
26
23
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:
27
25
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. |
37
33
38
34
## Install Node
39
35
40
36
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:
41
38
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
+
```
49
44
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.
51
46
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:
53
48
54
-
```bash
55
-
node --version
56
-
```
49
+
```bash
50
+
node --version
51
+
```
57
52
58
53
## Scaffold a new application with the Express Generator
59
54
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`:
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.
67
62
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`:
69
64
70
65
```bash
71
66
cd myExpressApp
@@ -74,14 +69,14 @@ npm install
74
69
75
70
Run the application. From the terminal, start the application using the `npm start` command to start the server.
76
71
77
-
Go to your new server in a Web browser. You should see your running web application. You can find the URL foryour Linux VMin 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**.
78
73
79
-
```HTTP
74
+
```http
80
75
http://yourhostname.contoso.com:3000
81
76
```
82
77
83
78
## Next steps
84
79
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).
86
81
- 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