startup-command is not a valid input for Windows web app or with publish-profile auth scheme

Farès 0 Reputation points
2023-10-05T21:50:06.5833333+00:00

I have a python app (streamlit app) deployed on App Service using GitHub Actions.

  • when I set the startup-command from the azure web app. -> it works
  • when I set it in the yaml file, I get the error below and the deployment fails

I understand I cannot set startup-command when I have "publish-profile auth scheme". But why I can do it on the azure web app ? and how I can app service know how to start the app ?

The error :

##[debug]Result: '***'
##[debug]Loading env
Run azure/webapps-deploy@v2
::add-mask::***
::add-mask::***
Error: Deployment Failed, Error: startup-command is not a valid input for Windows web app or with publish-profile auth scheme.
##[debug]Deployment failed
##[debug]Node Action run completed with exit code 1
##

Yaml extract :


Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
8,960 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. SnehaAgrawal-MSFT 22,706 Reputation points Moderator
    2023-10-10T10:32:14.1666667+00:00

    @Farès Thanks for reaching here! Could you confirm if the azure web app is on linux?

    For windows azure python web app deployment see- Quickstart: Deploy a Python (Django or Flask) web app to Azure App Service

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.