Skip to main content

Azure Functions: Develop and Debug Using Visual Studio

·213 words·1 min
Keith Hodo
Author
Keith Hodo
Solutions Architect at AWS. Writing about cloud, agentic AI, and the journey.

Admittedly, the Function that we created yesterday doesn’t do a whole lot more than respond to an incoming HTTP request with “Hello” and a name. Let’s add a little bit of complexity to our demo by creating a new function using Visual Studio.

Prerequisites
#

Download the “Hello World” Function
#

Navigate to your Azure Functions App in the portal. Click Platform Features → Advanced tools (Kudu) → Debug console → Powershell. Navigate to “site” and download the contents of wwwroot as a .zip file.

Azure Function Main Page
Azure Functions Platform Features
Kudu Home Screen
Kudu Download wwwroot

Adding our Hello Function to a Solution
#

Create an empty solution in Visual Studio. You can either:

Visual Studio Solution Setup
  1. Create a native Azure Function project (simplest approach) — copy the wwwroot contents into it and start debugging with F5.
  2. Create an empty ASP.Net Web Application following Microsoft’s recommendation to use class libraries.

Either way, you can debug locally using F5 and test with Postman using your local URL.

Conclusion
#

We’ve gone from hosting our Hello World Function on Azure App Service to being able to develop and debug locally.

What’s next: