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...
I published with new profile. I was expecting to see function.json file.
CodePudding user response:
Restarting visual studio and redeploying the app fixed the issue. I really hate microsoft's technologies...
CodePudding user response:
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
fileMicrosoft.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:
- Disabled the Function and redeployed from local IDE.
- Published Several times by making function code changes through IDEs and CLI Commands.
- Checked the Kudu Site of my Function App for every publish/deploy.
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.