Skip to content

Latest commit

 

History

History
31 lines (19 loc) · 1.47 KB

functions-run-function-test-local-vs-code.md

File metadata and controls

31 lines (19 loc) · 1.47 KB
author ms.service ms.topic ms.date ms.author
ggailey777
azure-functions
include
01/12/2020
glenga

Run the function locally

Visual Studio Code integrates with Azure Functions Core Tools to let you run this project on your local development computer before you publish to Azure.

  1. To call your function, press F5 to start the function app project. Output from Core Tools is displayed in the Terminal panel.

  2. If you haven't already installed Azure Functions Core Tools, select Install at the prompt. When the Core Tools are installed, your app starts in the Terminal panel. You can see the URL endpoint of your HTTP-triggered function running locally.

    Azure local output

  3. With Core Tools running, navigate to the following URL to execute a GET request, which includes ?name=Functions query string.

    http://localhost:7071/api/HttpExample?name=Functions

  4. A response is returned, which looks like the following in a browser:

    Function localhost response in the browser

  5. Information about the request is shown in Terminal panel.

    Function execution in Terminal panel

  6. Press Ctrl + C to stop Core Tools and disconnect the debugger.