Skip to content

Commit 9467349

Browse files
committed
try 3 on dependent tabs
1 parent 36777e1 commit 9467349

File tree

1 file changed

+22
-8
lines changed

1 file changed

+22
-8
lines changed

articles/app-service/quickstart-python.md

Lines changed: 22 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -219,20 +219,18 @@ Having issues? Refer first to the [Troubleshooting guide](./configure-language-p
219219

220220
Based on the presence of certain files in your deployment, App Service automatically detects whether your app is a Django or Flask app and performs default steps to run your app. For apps based on other web frameworks like FastAPI, you need to configure a startup script for App Service to run your app; otherwise, App Service runs a default read-only app located in the *opt/defaultsite* folder. For details on how App Service runs Python apps, see [Configure a Linux Python app for Azure App Service](configure-language-python.md).
221221

222-
### [Flask](#tab/flask)
222+
### [Azure CLI](#tab/azure-cli/flask)
223223

224224
App Service automatically detects the presence of a Flask app. No additional configuration is needed.
225225

226-
### [Django](#tab/django)
226+
### [Azure CLI](#tab/azure-cli/django)
227227

228228
App Service automatically detects the presence of a Django app. No additional configuration is needed.
229229

230-
### [FastAPI](#tab/fastapi)
230+
### [Azure CLI](#tab/azure-cli/fastapi)
231231

232232
For FastAPI, you must configure a custom startup command for App Service to run your app.
233233

234-
#### [Azure CLI](#tab/azure-cli/fastapi)
235-
236234
First, configure the startup command using the [az webapp config set](/cli/azure/webapp/config#az-webapp-config-set) command.
237235

238236
```azurecli
@@ -250,20 +248,36 @@ az webapp restart \
250248
--resource-group $RESOURCE_GROUP_NAME
251249
```
252250

253-
#### [VS Code](#tab/vscode-aztools/fastapi)
251+
### [VS Code](#tab/vscode-aztools/flask)
252+
253+
App Service automatically detects the presence of a Flask app. No additional configuration is needed.
254+
255+
### [VS Code](#tab/vscode-aztools/django)
256+
257+
App Service automatically detects the presence of a Django app. No additional configuration is needed.
258+
259+
### [VS Code](#tab/vscode-aztools/fastapi)
254260

255261
Use Azure CLI or the Azure portal to configure the startup command.
256262

263+
### [Azure portal](#tab/azure-portal/flask)
264+
265+
App Service automatically detects the presence of a Flask app. No additional configuration is needed.
266+
267+
### [Azure portal](#tab/azure-portal/django)
268+
269+
App Service automatically detects the presence of a Django app. No additional configuration is needed.
270+
257271
#### [Azure portal](#tab/azure-portal/fastapi)
258272

273+
For FastAPI, you must configure a custom startup command for App Service to run your app.
274+
259275
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 *python main.py*. Then select **Save** to apply the changes. Wait for the notification that the settings have been updated before proceeding.
260276

261277
Next, restart the web app. Select the app's **Overview** page on the left menu. On the top menu, select **Restart**.
262278

263279
---
264280

265-
---
266-
267281
## 5 - Browse to the app
268282

269283
Browse to the deployed application in your web browser at the URL `http://<app-name>.azurewebsites.net`. If you see a default app page, wait a minute and refresh the browser.

0 commit comments

Comments
 (0)