DEV Community

Jacob Smith
Jacob Smith

Posted on

Introduction to Azure Functions Pt. 3 - Creating the Azure Function resources

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. 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.
  3. In the Create a resource group wizard ensure you have selected Free Trial under Subscription.
  4. Under Resource group name your group HelloAzureGroup.
  5. Skip tags and move on to Review + create.
  6. Ensure the resource group details are correct and Click on Create.
  7. Back on the Resource groups list you should now have a new Resource group named HelloAzureGroup

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
  3. In the Function App wizard ensure you have selected Free Trial under Subscription.
  4. Under Resource Group select HelloAzureGroup
  5. Under Function App name name your function app HelloAzureFunctionApp-<GUID>
    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.
  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.
  11. Back on the Function App list you should now have a new Function app named HelloAzureFunctionApp-<GUID>

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.

Top comments (0)