0

I have .net 6 isolated function docker container that works locally but not in azure. The docker file copies the build output binaries to the home/site/wwwroot directory of the container based on the image mcr.microsoft.com/azure-functions/dotnet-isolated:4-dotnet-isolated6.0.

When I look at the live log stream I can see enter image description here

the configuration is setup correctly as far as I can see but I don't have full access. its setup as dotnet-isolated and functions version 4. I can see its pointing at the right docker image.

I'm not sure what else to check troubleshoot why it doesn't start properly. Are the files in the correct location in the docker file? does it need anything else that I have missed?

Any advice will be greatly appreciated.

Thanks

2
  • Look at this MS Doc as it is saying that HTTP 204 Status - No Content is the default response for functions 2.x and above versions and we have to modify the http response - those steps given in that document. Commented Dec 29, 2022 at 18:07
  • Thanks i should have mentioned that this is for a timer trigger only so there is no http triggers Commented Dec 30, 2022 at 9:19

1 Answer 1

0

Thanks, i should have mentioned that this is for a timer trigger only so there is no http triggers

In the Azure Functions:

  • For the Http Triggers, response comes in Http Status Codes.
  • For Timer Triggers, failed responses can be thrown in the form of exceptions but not the status codes.

I found an article in dontcodetired site where the author mentioned that we can write the status code manually which returns automatically during some situations which is taken care of by Azure Functions Runtime.

One of those situations is returning the status codes automatically in the case of failed operation like without the exception, function completes the execution without proper result which is a kind of internal server problem- it means the request of (any trigger type) is processed/succeeded but without proper response or operation result.

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

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.