How might I create an upload & export function within my Azure AI Foundry deployed web app?

Max Torres 0 Reputation points
2025-02-11T16:48:21.7433333+00:00

Tried deploying web through Python as well as Python Flask app. Unable to deploy. Getting the attached error. Need assistance to deploy the app successfully.

Followed the steps in this documentation link (Quickstart: Deploy a Python (Django, Flask, or FastAPI) web app to Azure - Azure App Service | Microsoft Learn) which were the last steps before the failed attempt to deploy my app.

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

2 answers

Sort by: Most helpful
  1. Max Torres 0 Reputation points
    2025-02-11T21:18:31.6766667+00:00

    I deployed through Visual Studio using the Azure interface for the last three attempts. All deployment attempts take me the attached screenshot.

    The original error screenshot sent was for an app deployed through Azure AI Foundry, but I think this issue might be because of changes made to the app. I say this because, I was able to successfully deploy the same app via Azure AI Foundry and it is working.

    Are there issues with deploying via Visual Studio / Azure interface?

    0 comments No comments

  2. Laxman Reddy Revuri 3,655 Reputation points Microsoft External Staff
    2025-02-12T13:01:33.5733333+00:00

    Hi @Max Torres
    apologize for any inconvenience caused on this.
    Deploying via Visual Studio/Azure interface is generally reliable, but certain factors can affect the process. Since your app was successfully deployed via Azure AI Foundry, the issue is likely related to the deployment settings or environment in Visual Studio rather than the code itself.
    Azure deployment logs. Go to your Web App in the Azure portal, find the "Deployment Center," and view the logs. Look for specific error messages.

    Make sure your application settings in Azure are configured correctly for Python.

    Try deploying a very basic Flask app to see if the core deployment process works through Visual Studio. If that works, gradually add complexity back in.

    Confirm the Python version configured in your Azure App Service matches the one you're developing with.

    Verify your Flask app's app.py file has correctly defined routes and is in the root directory.

    Make sure that your code is up-to-date and there are no syntax errors.

    If Visual Studio continues to fail, try deploying using the Azure CLI or directly through the Azure portal. In the Azure portal, navigate to App Services, create a new web app, and use the Deployment Center.
    If Visual Studio keeps failing, deploy manually using Azure CLI:

    az webapp up --name <app-name> --resource-group <resource-group> --sku B1
    

    Or deploy via ZIP:

    az webapp deployment source config-zip --name <app-name> --resource-group <resource-group> --src <your_zip_file>.zip
    
    

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.