0

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.

9
  • @HariKrishna no, it needs to be read-only mode. my other functions are in read-only mode as well. Problem is function.json file(which is needed for running for functions) is missing. Commented Jan 31, 2023 at 11:26
  • Have you made any changes in function.json file after it's been generated? Commented Jan 31, 2023 at 11:31
  • @PravallikaKothaveerannagari no, I didn't make any changes. It was working fine after my first a couple of publishes. Then It stopped working. Commented Jan 31, 2023 at 11:32
  • Check if function.json file available or not in the kudu site of your function app Commented Jan 31, 2023 at 11:35
  • @PravallikaKothaveerannagari yes it is. { "generatedBy": "Microsoft.NET.Sdk.Functions.Generator-4.1.3", "configurationSource": "attributes", "bindings": [ { "type": "timerTrigger", "runOnStartup": true, "schedule": "*/3 * * * *", "useMonitor": true, "name": "myTimer" } ], "disabled": false, "scriptFile": "../bin/GetCreditLimitData.dll", "entryPoint": "UES.CRM.Backend.GetCreditLimitData.GetCreditLimitData.Run" } Commented Jan 31, 2023 at 11:40

2 Answers 2

1

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.

Sign up to request clarification or add additional context in comments.

Comments

1

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

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.