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