No API interface shows after deployment

Jinda Wang 45 Reputation points
2023-11-08T16:44:58.6466667+00:00

Hi All,

I wrote some API interface, and they are working fine in my local machine. But when I tried to deployment to Azure cloud, the terminal was shown "Deployment successful" and "No HTTP triggers found".

This resulted in me not being able to find any of the interfaces I wrote in the dashboard. I don't know whether some configuration files I've written wrong.

local.settings.json

{
  "IsEncrypted": false,
  "Values": {
    "AzureWebJobsStorage": "UseDevelopmentStorage=true",
    "FUNCTIONS_WORKER_RUNTIME": "python",
    "AzureWebJobsFeatureFlags": "EnableWorkerIndexing"
  }
}

host.json

{
  "version": "2.0",
  "logging": {
    "applicationInsights": {
      "samplingSettings": {
        "isEnabled": true,
        "excludedTypes": "Request"
      }
    }
  },
  "extensionBundle": {
    "id": "Microsoft.Azure.Functions.ExtensionBundle",
    "version": "[3.*, 4.0.0)"
  }
}

User's image

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
{count} votes

1 answer

Sort by: Most helpful
  1. navba-MSFT 27,605 Reputation points Microsoft Employee Moderator
    2023-11-13T03:27:36.9533333+00:00

    @Jinda Wang Thanks for getting back and sharing an update.
    .
    Let's take a step back and try creating a new FunctionApp project in VSCode and then try pasting your code in it and then deploy.
    .
    Follow the below article:
    https://learn.microsoft.com/en-us/azure/azure-functions/create-first-function-vs-code-python?pivots=python-mode-decorators


Your answer

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