Skip to content

Commit 09e746a

Browse files
authored
Merge pull request #8844 from MicrosoftDocs/main
Auto push to live 2025-04-30 02:31:05
2 parents 5fd6dfd + b68037d commit 09e746a

File tree

15 files changed

+374
-55
lines changed

15 files changed

+374
-55
lines changed

support/azure/app-service/faqs-app-service-linux.yml

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ metadata:
66
author: genlin
77
ms.topic: article
88
ms.service: azure-app-service
9-
ms.date: 04/16/2024
9+
ms.date: 04/30/2025
1010
ms.author: genli
1111
title: Azure App Service on Linux FAQ
1212
summary: |
@@ -82,14 +82,14 @@ sections:
8282
curl -X POST -u <user> --data-binary @<zipfile> https://{your-sitename}.scm.azurewebsites.net/api/zipdeploy
8383
```
8484
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.
8686
8787
- name: Language support
8888
questions:
8989
- question: |
9090
I want to use web sockets in my Node.js application, any special settings, or configurations to set?
9191
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:
9393
9494
```nodejs
9595
const io = require('socket.io')(server,{
@@ -116,7 +116,7 @@ sections:
116116
- question: |
117117
I'm using my own custom container. I want the platform to mount an SMB share to the `/home/` directory.
118118
answer: |
119-
If `WEBSITES_ENABLE_APP_SERVICE_STORAGE` setting is **unspecified** or set to *false*, the `/home/` directory **will not be shared** across scale instances, and files written **will not persist** across restarts. Explicitly setting `WEBSITES_ENABLE_APP_SERVICE_STORAGE` to *true* will enable the mount. Once this is set to true, if you wish to disable the mount, you need to explicitly set `WEBSITES_ENABLE_APP_SERVICE_STORAGE` to *false*.
119+
If `WEBSITES_ENABLE_APP_SERVICE_STORAGE` setting is **unspecified** or set to *false*, the `/home/` directory **won't be shared** across scale instances, and files written **won't persist** across restarts. Explicitly setting `WEBSITES_ENABLE_APP_SERVICE_STORAGE` to *true* enables the mount. Once this is set to true, if you wish to disable the mount, you need to explicitly set `WEBSITES_ENABLE_APP_SERVICE_STORAGE` to *false*.
120120
121121
- question: |
122122
My container fails to start with "no space left on device". What does this error mean?
@@ -126,28 +126,28 @@ sections:
126126
- 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.
127127
- Host disk space: The host disk space is used to store container images. It's managed by the platform through the docker storage driver.
128128
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.
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.
130130
131131
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.
132132
133-
The platform routinely cleans the host disk space to remove unused containers. If the container writes a large quantity of data outside of the `/home` directory or Bring Your Own Storage (BYOS), it will result in startup failures or runtime exceptions once the host disk space limit is exceeded.
133+
The platform routinely cleans the host disk space to remove unused containers. If the container writes a large quantity of data outside of the `/home` directory or Bring Your Own Storage (BYOS), it results in startup failures or runtime exceptions once the host disk space limit is exceeded.
134134
135135
We recommend that you keep your container images as small as possible and write data to the persistent storage or BYOS when running on Linux App Service. If not possible, you have to split the App Service plan because the host disk space is fixed and shared between all containers in the App Service Plan.
136136
137137
138138
- question: |
139139
My custom container takes a long time to start, and the platform restarts the container before it finishes starting up.
140140
answer: |
141-
You can configure the amount of time the platform will wait before it restarts your container. To do so, set the `WEBSITES_CONTAINER_START_TIME_LIMIT` app setting to the value you want. The default value is 230 seconds, and the maximum value is 1800 seconds.
141+
You can configure the amount of time the platform waits before restarting the container. To do so, set the `WEBSITES_CONTAINER_START_TIME_LIMIT` app setting to the value you want. The default value is 230 seconds, and the maximum value is 1800 seconds.
142142
- question: |
143143
What is the format for the private registry server URL?
144144
answer: |
145-
Provide the full registry URL, including `http://` or `https://`.
145+
Provide the full registry URL, including `https://`.
146146
147147
- question: |
148148
What is the format for the image name in the private registry option?
149149
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).
151151
152152
- question: |
153153
Can I expose more than one port on my custom container image?
@@ -174,14 +174,14 @@ sections:
174174
Can I use ASPNETCORE_URLS in the Docker image?
175175
answer: |
176176
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}
178178
179179
- name: Multi-container with Docker Compose
180180
questions:
181181
- question: |
182182
How do I configure Azure Container Registry (ACR) to use with multi-container?
183183
answer: |
184-
In order to use ACR with multi-container, **all container images** need to be hosted on the same ACR registry server. Once they are on the same registry server, you will need to create application settings and then update the Docker Compose configuration file to include the ACR image name.
184+
In order to use ACR with multi-container, **all container images** need to be hosted on the same ACR registry server. Once they are on the same registry server, you'll need to create application settings and then update the Docker Compose configuration file to include the ACR image name.
185185
186186
Create the following application settings:
187187
@@ -209,7 +209,7 @@ sections:
209209
- question: |
210210
How do I use depends_on?
211211
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.
213213
The example code below shows a Python app checking to see if a Redis container is running.
214214
```python
215215
import time
@@ -235,7 +235,7 @@ sections:
235235
app.run(host="0.0.0.0", port=80, debug=True)
236236
```
237237
## 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.
239239
> [!IMPORTANT]
240240
> 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.
241241
- name: Pricing and SLA
@@ -258,16 +258,16 @@ sections:
258258
259259
To make sure that the port is correctly configured on Azure App Services, see the question, *How do I specify the port in my Linux container?*
260260
- question: |
261-
Is it possible to increase the container warmup request timeout?
261+
Is it possible to increase the container warmup request time-out?
262262
answer:
263-
The warmup request by default fails after waiting 240 seconds for a reply from the container. You may increase the container warmup request timeout by adding the application setting `WEBSITES_CONTAINER_START_TIME_LIMIT` with a value between 240 and 1800 seconds.
263+
The warmup request by default fails after waiting 240 seconds for a reply from the container. You may increase the container warmup request time-out by adding the application setting `WEBSITES_CONTAINER_START_TIME_LIMIT` with a value between 240 and 1800 seconds.
264264
- question: |
265265
How do I specify the port in my Linux container?
266266
answer: |
267267
| Container type | Description | How to set/use port |
268268
|----------------|-------------|---------------------|
269269
| 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. |
271271
- question: |
272272
Can I use a file based database (like SQLite) with my Linux Webapp?
273273
answer: |

0 commit comments

Comments
 (0)