Description
Greetings !!
takolota1

I'm new to Azure in general, but im having a problem.

VS is not able to identify my Azure Suscription when I try to create the function on VS, instead i created one from the Portal. Then I deployed to that particular created Function App. It does seems to display well, but at the end says: "No http triggers found".



Problem Summary
After deploying a Python 3.11 (also tried with 3.9) Azure Function App from VS Code (Zip Deploy), deployment succeeds but the portal shows "No HTTP triggers found" and the Functions list is empty.

Context
  • Resource type: Function App – Linux, Consumption plan
  • Region: Canada Central
  • Runtime stack: Python 3.11 (set in General settings)
  • App settings:
    • FUNCTIONS_WORKER_RUNTIME=python
    • FUNCTIONS_EXTENSION_VERSION=~4
  • Application Insights: Enabled (or specify if not)
How I deployed
  • Created the Function App in the Azure Portal (not in VS Code).
  • Published from VS Code using Deploy to Function App (Zip Deploy).
  • Deployment log ends with "No HTTP triggers found".
Minimal reproducible code
host.json
{
  "version": "2.0"
}
requirements.txt
azure-functions
function_app.py (Python v2 model)
import azure.functions as func

app = func.FunctionApp(http_auth_level=func.AuthLevel.FUNCTION)

@app.function_name("ping")
@app.route(route="ping", methods=["GET","POST"])
def ping(req: func.HttpRequest) -> func.HttpResponse:
    return func.HttpResponse("pong", status_code=200)

Folder structure (root of the zip)
/host.json
/requirements.txt
/function_app.py

Steps already tried
  • Restarted the Function App from the portal.
  • Used Sync triggers in the portal’s Deployment Center.
  • Checked App Files — confirmed host.json and function_app.py are in /home/site/wwwroot.
  • Deleted local folder except the 3 files above and redeployed.
  • Tried publishing using the downloaded publish profile with zipdeploy.
Screenshots provided
  • Functions tab showing no function listed (no “ping” function).
  • App Files showing only host.json, requirements.txt, and function_app.py in /wwwroot.
  • General settings with Python 3.11 selected and also tried with 3.9.
  • Application settings showing the two required function settings.
  • Log Stream not active.

 
Note: All sensitive info like subscription IDs, tenant IDs, storage names/keys, publish profiles, and function keys have been removed.





Output:
 
12:50:41 PM nxint-replacetext-api: Creating zip package...
12:50:41 PM nxint-replacetext-api: Adding 4 files to zip package...
12:50:41 PM nxint-replacetext-api: ....\Azure Functions\File And Utility Functions\.funcignore
12:50:41 PM nxint-replacetext-api: ....\Azure Functions\File And Utility Functions\requirements.txt
12:50:41 PM nxint-replacetext-api: ....\Azure Functions\File And Utility Functions\host.json
12:50:41 PM nxint-replacetext-api: ....\Azure Functions\File And Utility Functions\function_app.py
12:50:41 PM nxint-replacetext-api: Zip package size: 69.1 kB
12:50:42 PM nxint-replacetext-api: Fetching changes.
12:50:43 PM nxint-replacetext-api: Cleaning up temp folders from previous zip deployments and extracting pushed zip file /tmp/zipdeploy/8718eda2-9c35-4f75-8da8-e48d10eade28.zip (0.07 MB) to /tmp/zipdeploy/extracted
12:50:45 PM nxint-replacetext-api: Updating submodules.
12:50:46 PM nxint-replacetext-api: Preparing deployment for commit id '3f569e45-5'.
12:50:46 PM nxint-replacetext-api: PreDeployment: context.CleanOutputPath False
12:50:46 PM nxint-replacetext-api: PreDeployment: context.OutputPath /home/site/wwwroot
12:50:46 PM nxint-replacetext-api: Repository path is /tmp/zipdeploy/extracted
12:50:46 PM nxint-replacetext-api: Running oryx build...
12:50:46 PM nxint-replacetext-api: Command: oryx build /tmp/zipdeploy/extracted -o /home/site/wwwroot --platform python --platform-version 3.11 -p packagedir=.python_packages/lib/site-packages
12:50:46 PM nxint-replacetext-api: Operation performed by Microsoft Oryx, https://github.com/Microsoft/Oryx
12:50:46 PM nxint-replacetext-api: You can report issues at https://github.com/Microsoft/Oryx/issues
12:50:46 PM nxint-replacetext-api: Oryx Version: 0.2.20230210.1, Commit: a49c8f6b8abbe95b4356552c4c884dea7fd0d86e, ReleaseTagName: 20230210.1
12:50:46 PM nxint-replacetext-api: Build Operation ID: 8a7ee484711c23a4
12:50:46 PM nxint-replacetext-api: Repository Commit : 3f569e45-587a-457b-a9be-e9a744c5337f
12:50:46 PM nxint-replacetext-api: OS Type           : bullseye
12:50:46 PM nxint-replacetext-api: Image Type        : githubactions
12:50:46 PM nxint-replacetext-api: Detecting platforms...
12:50:47 PM nxint-replacetext-api: Detected following platforms:
12:50:47 PM nxint-replacetext-api:   python: 3.11.13
12:50:47 PM nxint-replacetext-api: Version '3.11.13' of platform 'python' is not installed. Generating script to install it...
12:50:47 PM nxint-replacetext-api: Source directory     : /tmp/zipdeploy/extracted
12:50:47 PM nxint-replacetext-api: Destination directory: /home/site/wwwroot
12:50:47 PM nxint-replacetext-api: Downloading and extracting 'python' version '3.11.13' to '/tmp/oryx/platforms/python/3.11.13'...
12:50:47 PM nxint-replacetext-api: Detected image debian flavor: bullseye.
12:50:59 PM nxint-replacetext-api: Syncing triggers...
12:51:00 PM nxint-replacetext-api: Querying triggers...
12:51:02 PM nxint-replacetext-api: No HTTP triggers found.