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
- Login to the Azure portal if you are not yet logged in.
- Navigate to the Resource Groups list and click on Create resource group.
- In the Create a resource group wizard ensure you have selected Free Trial under Subscription.
- Under Resource group name your group
HelloAzureGroup
. - Skip tags and move on to Review + create.
- Ensure the resource group details are correct and Click on Create.
- Back on the Resource groups list you should now have a new Resource group named
HelloAzureGroup
Creating a Function App
- Login to the Azure portal if you are not yet logged in.
- Navigate to the Function Apps list and click on Create undefined
- In the Function App wizard ensure you have selected Free Trial under Subscription.
- Under Resource Group select HelloAzureGroup
- Under Function App name name your function app
HelloAzureFunctionApp-<GUID>
- A function app in Azure must have a unique name, which is why we postfix the name with a GUID.
- Under Publish ensure Code is selected.
- Under Runtime stack select .NET Core.
- Select whatever region is appropriate for you (I selected Central US).
- You may skip Hosting, Monitoring, and Tags.
- Ensure your function app details are correct and click on Create.
- 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)