Create Your First Azure Function App from Visual Studio

Sardar Mudassar Ali Khan
3 min readJun 28, 2023

To create your first Azure Function App from Visual Studio, follow these steps:

  1. Launch Visual Studio and ensure you have the latest Azure development workload installed. You can install it by going to “Tools” -> “Get Tools and Features” and selecting the Azure development workload during installation.

2. Once Visual Studio is open, go to “File” -> “New” -> “Project” to create a new project.

3. In the “Create a new project” window, search for “Azure Functions” in the search bar. Select “Azure Functions” from the project templates.

4. Choose the desired project type for your Azure Functions app, such as C# or JavaScript. Select the appropriate language from the list.

5. Next, you’ll be prompted to choose the template for your Azure Function. You can select from various templates, such as HTTP trigger, Timer trigger, Blob trigger, etc. Choose the template that suits your application needs and click “Next.”

6. Provide a name and location for your project and click “Create” to create the project.

7. Once the project is created, you’ll see the Azure Functions project structure in the Solution Explorer.

8-Run the Project by pressing the F5

9.OutPut in a Browser

8. Right-click on the project in the Solution Explorer and select “Publish” to publish your Function App to Azure.

9. In the “Publish” window, select “Azure Function App” as the target. If you haven’t signed into your Azure account, you’ll be prompted to sign in.

10. After signing in, select the subscription, resource group, and function app name for your app. You can create a new function app or choose an existing one. Click “Create” to continue.

11. Choose the hosting plan for your function app. You can select between a consumption plan (pay-per-execution) or an app service plan (dedicated resources). Configure the settings as per your requirements and click “Next.”

12. In the next window, review and configure the application settings, such as storage connection, authentication, etc. You can also configure advanced settings like managed identity and application insights. Once done, click “Finish.”

13. Visual Studio will start deploying your function app to Azure. You can monitor the deployment progress in the “Output” window.

14. Once the deployment is complete, you’ll see a success message, and you can access your Azure Function App in the Azure portal.

Congratulations! You have created your first Azure Function App from Visual Studio. You can now start adding functions to your app and implement the desired functionality.



Sardar Mudassar Ali Khan

8x-Microsoft Certified Senior Software Engineer | MCT|MCT |Microsoft Certified Cloud Solution Architect | Microsoft Certified Cloud Developer | Technical Author