skip to Main Content

I have deployed a function app and there are no functions visible:

No functions found

In Kodu what I can see seems correct (the files are under wwwroot):

function app debugger

In the app files tab. I can see two folder separators that I’m guessing this could be the problem:

App files

I have WEBSITE_RUN_FROM_PACKAGE disabled and I’m deploying with:

az functionapp deployment source config-zip -g <resource-group> -n <app-name> --src ./deploy.zip

2

Answers


  1. Chosen as BEST ANSWER

    After trying millions of things, this is what did it for me:

    My folder structure is the following:

    dist <-- this folder is present if you use TypeScript
    │   └── src
    │       ├── dal
    │       ├── functions
    │       │    └── <MY FUNCTIONS ARE HERE>
    │       └── shared
    ├── host.json
    └── package.json
    

    One of my changes was in the host.json:

      // ...
      "extensionBundle": {
        "id": "Microsoft.Azure.Functions.ExtensionBundle",
        "version": "[4.0.0, 5.0.0)" <-- upgraded the version
      }
    

    Another thing I did was to upgrade everything (Azure CLI, function core tools, etc.).

    And finally, I saw this in the docs:

    During preview, the v4 model requires you to set the app setting AzureWebJobsFeatureFlags to EnableWorkerIndexing. For more information, see Enable v4 programming model.

    To create it I needed to run:

    az functionapp config appsettings set --name <FUNCTION_APP_NAME> 
    --resource-group <RESOURCE_GROUP_NAME> 
    --settings AzureWebJobsFeatureFlags=EnableWorkerIndexing
    

    Then I restarted the function app and it finally worked.


  2. I have deployed the Azure Function with the given command.

    Even Iam unable to see the Functions in the Function tab of the deployed Azure Function.

    In the app files tab. I can see two folder separators that I’m guessing this could be the problem:

    In App files only configuration files will be available.

    enter image description here

    • To check and run the deployed function, Navigate to the App Service Editor(Preview).

    enter image description here

    • Click on Open Editor, you can see the deployed Functions.
    • Select and Run the Function, Output is shown on Right Pane.

    enter image description here

    My package.json file:

    {
      "name": "nodefunction",
      "version": "1.0.0",
      "description": "",
      "scripts": {
        "start": "func start",
        "test": "echo "No tests yet...""
      },
      "dependencies": {
        "@azure/functions": "^4.0.0-alpha.7"
      },
      "devDependencies": {},
      "main": "src/functions/*.js"
    }
    
    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search