Skip to main content

Exercise 1

Install the Azure Functions Extension for VS Code

In this exercise you'll create an empty project, install the Azure Functions extension for VS Code, and create a new function.

To get started, perform the following tasks:

  1. Create an empty folder on your desktop and open it in VS Code.

  2. Install the Azure Functions extension if it's not already installed.

  3. Click on the Azure icon in the VS Code sidebar.

    note

    If you don't see the Azure icon after installing the Azure Functions extension, right-click on the VS Code sidebar and select Azure from the menu.

  4. Sign in to Azure if you're not already signed in.

    Sign in to Azure

  5. Locate the Workspace section and click the + icon.

  6. Select Create Function and then select Yes.

    Create Azure Function Dialog

  7. Select the following:

    • Language : TypeScript
    • Trigger : HTTP trigger
    • Function Name : getGitHubRepoStats
    • Authorization level : Anonymous

    note

    If you opened an existing project folder instead of an empty one, you may be prompted to overwrite the .gitignore and package.json files.

  8. You will see the following folder and files added to your project:

    Create Azure Function Project Dialog