Visual Studio is having trouble creating a new Azure Function. Instead of the Azure Function icon, it's showing the C# icon

Akshay Kumar 0 Reputation points
2025-03-17T15:41:02.7433333+00:00

I'm trying to create a new Azure function in Visual Studio, but I'm encountering an issue. When I attempt to create the function, instead of the Azure Function icon, it displays the C# icon. This is preventing me from properly setting up the Azure Function project. Has anyone experienced this issue before? Any solutions or suggestions would be appreciated!

Unhandled exception. System.InvalidOperationException: Configuration is missing the 'HostEndpoint' information. Please ensure an entry with the key 'Functions:Worker:HostEndpoint' is present in your configuration.
Azure Functions
Azure Functions

An Azure service that provides an event-driven serverless compute platform.


1 answer

Sort by: Oldest
  1. David Young 0 Reputation points
    2026-09-07T00:56:11.3766667+00:00

    I have been noticing that there is a difference in behavior between running a Azure function app project between VS 2022 and VS2026, and finally have hit a solution.

    I think the issue is due to VS2026 requires a installation of Azure SDK workload i.e. "Azure and AI development" while VS2022 doesn't require it and can detect a Azure function app project with having the equivalent workload installed.

    So give installing "Azure and AI development" workload on VS2026 via the VS installer a go.

    PS: I was noticing that the my Azure function app project icon looked wrong on VS2026 , i.e. not lightning bolt, and was not handling the local.settings.json as I expected

    User's image

    Was this answer helpful?

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.