Deploying a python dash app as an Azure webapp, with custom startup

Scott Erik 0 Reputation points
2023-05-01T11:55:08.1233333+00:00

I am trying to deploy a dash app using an Azure web app. In my head this should be so straight forward and yet I can't for the life of me figure this out.

  1. I have an Azure web app named demo.
  2. I have a resource group named my_group.
  3. I have a Python package here
  4. The dash app is part of the Python package, once you install the package, a CLI becomes available to launch the app, along with a toy file to be used with the app.

I just want the VM that Azure spins up to run the following commands, which work perfectly fine on a local computer:

#!/bin/bash
git clone https://github.com/lina-usc/pylossless.git
cd pylossless
pip install -e .
pip install -e .[dash]
pylossless_qc --filepath assets/test_data/sub-s01/eeg/sub-s01_task-faceO_eeg.edf --disable_buttons

FWIW I have tried putting the above commands into a startup.sh file in my project root directory (called demo), set this file as the startup command, and then with azure CLI, ran:

az webapp up --name demo --resource-group my_group --sku B1 --runtime "PYTHON|3.8"

But this returns a zip deployment failed error and the logs don't give me much information to work off of..

I can't figure out how to do this. What am I missing? Can anyone point me in the right direction?

Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
6,003 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Scott Erik 0 Reputation points
    2023-05-01T20:02:45.4933333+00:00

    This worked for me:

    1. Sign into the Azure portal.
    2. From the home page, click on subscriptions (near the top).
    3. Select your subscription.
    4. On the right-hand side, select, Cancel subscription
    0 comments No comments