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: support/azure/app-service/faqs-app-service-linux.yml
+9-9Lines changed: 9 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,7 @@ metadata:
6
6
author: genlin
7
7
ms.topic: article
8
8
ms.service: azure-app-service
9
-
ms.date: 04/16/2024
9
+
ms.date: 04/24/2025
10
10
ms.author: genli
11
11
title: Azure App Service on Linux FAQ
12
12
summary: |
@@ -82,14 +82,14 @@ sections:
82
82
curl -X POST -u <user> --data-binary @<zipfile> https://{your-sitename}.scm.azurewebsites.net/api/zipdeploy
83
83
```
84
84
85
-
If you get an error that the `curl` command is not found, make sure you install curl by using `apt-get install curl` before you run the previous `curl` command.
85
+
If you get an error that the `curl` command isn't found, make sure you install curl by using `apt-get install curl` before you run the previous `curl` command.
86
86
87
87
- name: Language support
88
88
questions:
89
89
- question: |
90
90
I want to use web sockets in my Node.js application, any special settings, or configurations to set?
91
91
answer: |
92
-
Yes, disable `perMessageDeflate` in your server-side Node.js code. For example, if you are using socket.io, use the following code:
92
+
Yes, disable `perMessageDeflate` in your server-side Node.js code. For example, if you're using socket.io, use the following code:
93
93
94
94
```nodejs
95
95
const io = require('socket.io')(server,{
@@ -126,7 +126,7 @@ sections:
126
126
- File system storage: The file system storage is included in the App Service plan quota. It's used when files are saved to the persistent storage that's rooted in the `/home` directory.
127
127
- Host disk space: The host disk space is used to store container images. It's managed by the platform through the docker storage driver.
128
128
129
-
The host disk space is separate from the file system storage quota. It's not expandable and there is a 15GB limit for each instance. It's used to store any custom images on the worker. You might be able to use larger than 15 GBs depending on the exact availability of host disk space, but this isn't guaranteed.
129
+
The host disk space is separate from the file system storage quota. It's not expandable and there is a 15-GB limit for each instance. It's used to store any custom images on the worker. You might be able to use larger than 15 GBs depending on the exact availability of host disk space, but this isn't guaranteed.
130
130
131
131
If the container's writable layer saves data outside of the `/home` directory or a [mounted azure storage path](/azure/app-service/configure-connect-to-azure-storage?tabs=portal&pivots=container-linux), the host disk space will also be consumed.
132
132
@@ -147,7 +147,7 @@ sections:
147
147
- question: |
148
148
What is the format for the image name in the private registry option?
149
149
answer: |
150
-
Add the full image name, including the private registry URL (for example, myacr.azurecr.io/dotnet:latest). Image names that use a custom port [cannot be entered through the portal](https://feedback.azure.com/d365community/). To set `docker-custom-image-name`, use the [`az` command-line tool](/cli/azure/webapp/config/container#az_webapp_config_container_set).
150
+
Add the full image name, including the private registry URL (for example, myacr.azurecr.io/dotnet:latest). Image names that use a custom port [can't be entered through the portal](https://feedback.azure.com/d365community/). To set `docker-custom-image-name`, use the [`az` command-line tool](/cli/azure/webapp/config/container#az_webapp_config_container_set).
151
151
152
152
- question: |
153
153
Can I expose more than one port on my custom container image?
@@ -174,7 +174,7 @@ sections:
174
174
Can I use ASPNETCORE_URLS in the Docker image?
175
175
answer: |
176
176
Yes, overwrite the environmental variable before .NET core app starts.
177
-
E.g. In the init.sh script: export ASPNETCORE_URLS={Your value}
177
+
E.g., In the init.sh script: export ASPNETCORE_URLS={Your value}
178
178
179
179
- name: Multi-container with Docker Compose
180
180
questions:
@@ -209,7 +209,7 @@ sections:
209
209
- question: |
210
210
How do I use depends_on?
211
211
answer: |
212
-
The `depends_on` option is *unsupported* on App Service and it'll be ignored. Just as the [control startup and shutdown recommendation from Docker](https://docs.docker.com/compose/startup-order/), App Service Multi-container apps should check dependencies through application code - both at startup and disconnection.
212
+
The `depends_on` option is *unsupported* on App Service and is ignored. Just as the [control startup and shutdown recommendation from Docker](https://docs.docker.com/compose/startup-order/), App Service Multi-container apps should check dependencies through application code - both at startup and disconnection.
213
213
The example code below shows a Python app checking to see if a Redis container is running.
214
214
```python
215
215
import time
@@ -235,7 +235,7 @@ sections:
235
235
app.run(host="0.0.0.0", port=80, debug=True)
236
236
```
237
237
## Web Sockets
238
-
Web Sockets are supported on Linux apps. The `webSocketsEnabled` ARM setting does not apply to Linux apps since Web Sockets are always enabled for Linux.
238
+
Web Sockets are supported on Linux apps. The `webSocketsEnabled` ARM setting doesn't apply to Linux apps since Web Sockets are always enabled for Linux.
239
239
> [!IMPORTANT]
240
240
> Web Sockets are now supported for Linux apps on Free App Service plans. We support up to five web socket connections on Free App Service plans. Exceeding this limit results in an HTTP 429 (Too Many Requests) response.
241
241
- name: Pricing and SLA
@@ -267,7 +267,7 @@ sections:
267
267
| Container type | Description | How to set/use port |
| Built-in containers | If you select a language/framework version for a Linux app, a predefined container is selected for you. | To point your app code to the right port, use the PORT environment variable. |
270
-
| Custom containers | You have full control over the container. | App Service has no control about which port your container listens on. What it does need is to know which port to forward requests to. If your container listens to port 80 or 8080, App Service is able to automatically detect it. If it listens to any other port, you need to set the WEBSITES_PORT app setting to the port number, and App Service forwards requests to that port in the container. The WEBSITES_PORT app setting does not have any effect within the container, and you can’t access it as an environment variable within the container. |
270
+
| Custom containers | You have full control over the container. | App Service has no control about which port your container listens on. What it does need is to know which port to forward requests to. If your container listens to port 80 or 8080, App Service is able to automatically detect it. If it listens to any other port, you need to set the WEBSITES_PORT app setting to the port number, and App Service forwards requests to that port in the container. The WEBSITES_PORT app setting doesn't have any effect within the container, and you can’t access it as an environment variable within the container. |
271
271
- question: |
272
272
Can I use a file based database (like SQLite) with my Linux Webapp?
0 commit comments