Skip to content

Getting started

Install the required tools and create the Azure resources for a Go function application.

Prerequisites

Before creating your first function, install:

Install Azure Functions Core Tools using npm:

npm install --global azure-functions-core-tools@4 --unsafe-perm true

Confirm that both tools are available:

go version
func --version
az version

Create a Function App in Azure

Native Go support is generally available on the Flex Consumption plan and in preview on Elastic Premium and Dedicated Linux App Service plans.

The simplest way to create a Function App is through the Azure portal, which automates the supporting resource and role assignment setup.

You can also provision the Function App and its dependencies using:

  • The Azure CLI
  • Bicep
  • Azure Resource Manager (ARM) templates
  • Terraform or another infrastructure-as-code tool

After creating the Function App, continue developing and testing locally. The Azure resource is needed only when you are ready to deploy the application.