Back to Blog
Part 2 of 8
AzureServerlessAzure FunctionDevOpsVS Code

Azure Functions Tutorial: Setting up Environment

October 1, 20221 min read
Share:

Setting up Environment#

Let's set up our development environment for Azure Functions.

Browser Setup#

  1. Login to Azure Portal with your account
  2. Select your subscription (e.g., Visual Studio Enterprise Subscription)
  3. Create a new Resource Group:
    • Name: az-func-demo-wus
    • Region: West US

Azure CLI Setup#

  1. Authenticate the az CLI:
az login
  1. Set your subscription:
az account set --subscription xxx-0fc2-xxxxx-9342-xxxxxxx

GitHub Repository#

Create a GitHub repo for your code:

  1. Go to github.com/new
  2. Create a public repository named az-function-tutorial
  3. Clone and initialize:
echo "# az-function-demo" >> README.md
git init
git add README.md
git commit -m "first commit"
git branch -M master
git remote add origin https://github.com/yks0000/az-function-tutorial.git
git push -u origin master

VS Code Configuration#

  1. Open VS Code and navigate to your cloned repository

  2. Install the following extensions:

    • Azure CLI Tools
    • Azure Functions
    • Azure Resources
    • Azure Account
    • Python
  3. Login to your Azure account in VS Code:

VS Code Azure Login

YS

Yogesh Sharma

Principal Software Engineer @ Intuit