Haaranen Jarmo

View Original

Setting up Azure Functions PowerShell local development environment with Visual Studio Code

For effective development of Azure Functions with PowerShell we need to install and configure few software’s to our development machine.  In this post I will go through how to install and configure all necessary software’s and extensions needed to do basic Azure Functions development in Windows 10 machine.

PowerShell Core installation

To develop Azure Functions with PowerShell you need to install PowerShell Core which is in preview face in Azure Functions v2. You can download and install PowerShell Core from GitHub

Select Windows (x64) stable and save it to disk, and run installer..

Or you can download Windows PowerShell installation commands here

.Net Core SDK 2.2

.Net Core SDK 2.2 is prerequisite to use Azure Functions Core Tools, so we need to install It.

.Net Core SDK 2.2 can be download here

Select Download .NET Core SDK, and save it to disk, run installer.

Node.js and NPM

To debug and run Azure Functions with Visual Studio Code you need to install Node.JS and npm which is package manager for node.js

Node.Js and npm can downloaded here

We are going with latest and finest. Click 12.2.0 current, save installer to disk, and run installer

Visual Studio Code installation

Finally we are installing Visual Studio Code. Visual Studio Code can be downloaded here.

Select Download for Windows, save it to disk, and run installer.

Adding and configuring extensions in visual studio code

Azure Functions extension is used to create, test, and deploy functions to Azure. First we need install Azure Core Functions Tools, installation is done using npm “node package manager”

Now you have installed Visual Studio Code fo Azure Functions with PowerShell language support.

Thanks for reading