Hello Anatolii Zenkovych (CW),
Welcome to the Microsoft Q&A and thank you for posting your questions here.
I understand that your Azure function code is not invoked.
Since all 3 functions and (configuration, Always On, network/firewall, diagnostics) are failing without executing — they are just stuck for 30 minutes and time out — indicating misconfiguration at a more fundamental level. I will suggest the following to resolve the issues:
- If @FunctionName is missing or wrong Azure won't load your function. Ensure Java classes have @FunctionName with correct signatures. So that each of your 3 Java methods must have a correct structure. For an example:
package com.jda.jdp.umm.event.listener; import com.microsoft.azure.functions.annotation.*; import com.microsoft.azure.functions.*; public class GitHubEventListener { @FunctionName("GitHubHttpListener") public HttpResponseMessage run( @HttpTrigger(name = "req", methods = {HttpMethod.POST}, authLevel = AuthorizationLevel.FUNCTION) HttpRequestMessage<Optional<String>> request, final ExecutionContext context) { context.getLogger().info("GitHub event received."); return request.createResponseBuilder(HttpStatus.OK).body("OK").build(); } }
- Your function.json file must match exactly what the Java annotations define. For example, for HTTP trigger:
Mismatch between function.json and Java annotations is = no function invocation.{ "bindings": [ { "authLevel": "function", "type": "httpTrigger", "direction": "in", "name": "req", "methods": [ "post" ] }, { "type": "http", "direction": "out", "name": "$return" } ] }
- Check your host.json and AppSettings for Java runtime settings - https://learn.microsoft.com/en-us/azure/azure-functions/functions-develop-java
- Check Application Insights/Kudu Logs for binding load errors - https://learn.microsoft.com/en-us/azure/azure-functions/functions-monitoring?tabs=applicationinsights#view-logs-in-kudu
- Also, in sometimes EventGrid and Kafka triggers require you to enable Extension Bundles in host.json:
Without it, EventGrid/Kafka might not bind correctly at runtime."extensionBundle": { "id": "Microsoft.Azure.Functions.ExtensionBundle", "version": "[2.*, 3.0.0)" }
I hope this is helpful! Do not hesitate to let me know if you have any other questions or clarifications.
Please don't forget to close up the thread here by upvoting and accept it as an answer if it is helpful.