0

Using the http trigger outlined here - https://learn.microsoft.com/en-us/azure/azure-functions/dotnet-isolated-process-guide

[Function("HttpFunction")]
        public static HttpResponseData Run([HttpTrigger(AuthorizationLevel.Anonymous, "get", "post", Route = null)] HttpRequestData req,
            FunctionContext executionContext)
        {
            var logger = executionContext.GetLogger("HttpFunction");
            logger.LogInformation("message logged");

            var response = req.CreateResponse(HttpStatusCode.OK);

            response.Headers.Add("Content-Type", "text/plain; charset=utf-8");

            response.WriteString("Welcome to .NET isolated worker !!");

            return response;
        }

I am able to trigger this using an http get however the function is then not subsequently run. What could be the blocking factor here?

HttpFunction HttpFunction trigger being called

CDWatson
  • 41
  • 4

1 Answers1

0
  • Place a breakpoint in the Function1.cs.

  • To run and execute the function, you need to open the URL - (ctrl+ click) on the URL.

enter image description here

  • Run the above URL.

enter image description here

  • Press function key + f5 ,Now you can see the function executed and messages are logged.

enter image description here

enter image description here

Harshitha
  • 3,784
  • 2
  • 4
  • 9