Introduction to Azure Functions Pt. 3 - Creating the Azure Function resources
Tags: azure, serverless, dotnet, devops
Published: 2019-11-11 17:15:22

---
title: Introduction to Azure Functions Pt. 3 - Creating the Azure Function resources
published: true
description: 
tags: azure, serverless, dotnet, devops
series: Introduction to Azure Functions
---

## Introduction
In this post we will be creating resources in Azure that will be used to run the `SayHello` Azure Function we created in our `HelloAzure.Functions` project.

## Prerequisites
A Microsoft Azure account. Sign up for an account [here](https://azure.microsoft.com/en-us/free/). I am using the free tier of azure.

## Creating the Azure Function resources
We will be creating a few resource in Azure to facilitate execution of the `SayHello` Azure Function.

- Azure Resource Group
    - A resource group is a collection of resources in Azure. All the resources we manually create (and any resource dependencies that are automatically created) will be added to this group.
- Function App
    - A Function App allows us to group related functions together into one unit and manage deployments, resource sharing, and more.

### Creating an Azure Resource Group
1. Login to the Azure portal if you are not yet logged in.
2. Navigate to the Resource Groups list and click on _Create resource group_.
    ![](https://i.imgur.com/ycT8jMA.png)
3. In the Create a resource group wizard ensure you have selected **Free Trial** under _Subscription_.
4. Under _Resource group_ name your group `HelloAzureGroup`.
    ![](https://i.imgur.com/LoRnlTX.png)
5. Skip tags and move on to _Review + create_.
6. Ensure the resource group details are correct and Click on _Create_.
    ![](https://i.imgur.com/8GwLZYa.png) 
7. Back on the Resource groups list you should now have a new Resource group named `HelloAzureGroup`
    ![](https://i.imgur.com/qpxFbIq.png) 

### Creating a Function App
1. Login to the Azure portal if you are not yet logged in.
2. Navigate to the Function Apps list and click on _Create undefined_
    ![](https://i.imgur.com/aWMB9vj.png)
3. In the Function App wizard ensure you have selected **Free Trial** under _Subscription_.
4. Under _Resource Group_ select **HelloAzureGroup**
    ![](https://i.imgur.com/CuI0Btv.png)
5. Under _Function App name_ name your function app `HelloAzureFunctionApp-<GUID>`
    ![](https://i.imgur.com/0ureBJW.png)
    1. A function app in Azure must have a unique name, which is why we postfix the name with a GUID.
6. Under _Publish_ ensure **Code** is selected.
7. Under _Runtime stack_ select **.NET Core**.
    ![](https://i.imgur.com/bK6iy45.png)
8. Select whatever region is appropriate for you (I selected **Central US**).
9. You may skip Hosting, Monitoring, and Tags.
10. Ensure your function app details are correct and click on _Create_.
    ![](https://i.imgur.com/opb9vDz.png)
11. Back on the Function App list you should now have a new Function app named `HelloAzureFunctionApp-<GUID>`
    ![](https://i.imgur.com/hwNTjWt.png) 

## Recap
In this post we created resources in Azure that will be used to run the `SayHello` Azure Function. We created an Azure Resource Group to contain the resources we create, and resource dependencies that are automatically created. We also created a Function App to deploy our function project to.

The next step is deploying the Azure Function.