Skip to content

Commit f68fb85

Browse files
committed
Added includes and screenshots for configuring startup from portal
1 parent 2181d32 commit f68fb85

7 files changed

+27
-3
lines changed
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
---
2+
author: JimacoMS4
3+
ms.author: v-jibrannian
4+
ms.topic: include
5+
ms.date: 07/02/7024
6+
---
7+
First, you need to configure a startup command in Azure App Service. Navigate to page for the App Service instance in the Azure portal.<br>
8+
<br>
9+
1. Select **Configuraiton** under the **Setting** heading in the menu on the left side of the page.
10+
1. Make sure the **General settings** tab is selected.
11+
1. In the **Startup Command** field, enter *gunicorn -w 2 -k uvicorn.workers.UvicornWorker -b 0.0.0.0:8000 main:app*.
12+
1. Select **Save** to save your changes.
13+
1. Wait for the notification that the settings have been updated before proceeding.
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
author: JimacoMS4
3+
ms.author: v-jibrannian
4+
ms.topic: include
5+
ms.date: 07/02/7024
6+
---
7+
Next, you need to restart the web app.<br>
8+
<br>
9+
1. Select **Overview** in the menu on the left side of the page.
10+
1. On the top menu, select **Restart**.
12 KB
Loading
63.4 KB
Loading
7.13 KB
Loading
26.4 KB
Loading

articles/app-service/quickstart-python.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -272,9 +272,10 @@ App Service automatically detects the presence of a Django app. No additional co
272272

273273
For FastAPI, you must configure a custom startup command for App Service to run your app. Set the following command to start Gunicorn with 2 Uvicorn worker processes: `gunicorn -w 2 -k uvicorn.workers.UvicornWorker -b 0.0.0.0:8000 main:app`.
274274

275-
First, configure the startup command. Under **Settings**, on the left menu, select the app's **Configuration** page, then select **General settings**. In the **Startup Command** field, enter *gunicorn -w 2 -k uvicorn.workers.UvicornWorker -b 0.0.0.0:8000 main:app*. Then select **Save** to apply the changes. Wait for the notification that the settings have been updated before proceeding.
276-
277-
Next, restart the web app. Select the app's **Overview** page on the left menu. On the top menu, select **Restart**.
275+
| Instructions | Screenshot |
276+
|:----------------|-----------:|
277+
| [!INCLUDE [Configure startup command from Azure portal 1](./includes/quickstart-python/configure-startup-azure-portal-1.md)] | :::image type="content" source="./media/quickstart-python/configure-startup-azure-portal-1-240px.png" alt-text="A screenshot of the location in the Azure portal where to configure the startup command." lightbox="./media/quickstart-python/configure-startup-azure-portal-1.png"::: |
278+
| [!INCLUDE [Configure startup command from Azure portal 2](./includes/quickstart-python/configure-startup-azure-portal-2.md)] | :::image type="content" source="./media/quickstart-python/configure-startup-azure-portal-2-240px.png" alt-text="A screenshot of how to reset the web app in the Azure portal." lightbox="./media/quickstart-python/configure-startup-azure-portal-2.png"::: |
278279

279280
---
280281

0 commit comments

Comments
 (0)