Installing "Azure management" or ASP.NET libraries alone isn't enough. You must install the Azure Development workload. To check or install it:
- Open Visual Studio Installer
- Click Modify next to Visual Studio 2022
- Go to the Workloads tab
- Ensure "Azure Development" is checked
- Click Modify to install missing components
You may also want to use Visual Studio Installer to install additional tools:
- Scroll to "Individual Components"
- Search for and check:
- Azure Functions and Web Jobs Tools
- .NET Core cross-platform development
- .NET SDKs (e.g., .NET 6, .NET 7) (depending on your target framework)
Then, when creating a new project:
- Use the Search bar and type:
Azure Functions
- If not visible, try:
- Closing/reopening Visual Studio
- Checking for updates via Help > Check for Updates
If the Visual Studio template still doesn’t appear, you can create a function app using the .NET CLI:
dotnet new func -n MyFunctionApp
Then open the generated folder in Visual Studio.
If the above response helps answer your question, remember to "Accept Answer" so that others in the community facing similar issues can easily find the solution. Your contribution is highly appreciated.
hth
Marcin