skip to Main Content

I published my Azure Function, it run as expected. Then I updated the code a bit without changing any configurational value. Now my function.json file is missing in Azure and my function is not running…

enter image description here

enter image description here

I published with new profile. I was expecting to see function.json file.

2

Answers


  1. Chosen as BEST ANSWER

    Restarting visual studio and redeploying the app fixed the issue. I really hate microsoft's technologies...


  2. Glad @FurkanKaracan, that you have resolved the issue by restarting the IDE and redeploying it.

    • Function.json file missing issue will be caused if the function project is deployed with Runtime Issues.
    • That file is generated by the Function SDK in .csproj file Microsoft.NET.Sdk.Functions NuGet Package.
    • Any Changes to this file configuration code bindings are not allowed.

    I have checked the following test cases to make the function.json file missing in the Code+Test menu:

    1. Disabled the Function and redeployed from local IDE.
    2. Published Several times by making function code changes through IDEs and CLI Commands.
    3. Checked the Kudu Site of my Function App for every publish/deploy.

    enter image description here
    That file was visible perfectly how many times I redeploy the project to function app in the Azure Portal.

    As per my experience, it might be some deployment issues while publishing.
    Refer to this MS Doc for more info on function.json file.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search