Skip to content

Azure Agent deployment issue with uvicorn #11

@jastill

Description

@jastill

When deploying to Azure with Python 11 the web app would restart due to missing uvicorn.
2025-10-07T01:53:24.4305166Z /opt/startup/startup.sh: 23: uvicorn: not found

SSH'ed in and uvicorn was there in the antenv/bin directory.

Had to change the startup command to the following:

python -m uvicorn app:app --host 0.0.0.0 --port 8000

The following Environment Variables were also added:\

az webapp config appsettings set -g -n --settings SCM_DO_BUILD_DURING_DEPLOYMENT=1 ENABLE_ORYX_BUILD=1 WEBSITES_PORT=8000 WEBSITE_RUN_FROM_PACKAGE=0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions