Skip to content

Latest commit

 

History

History
126 lines (86 loc) · 4.83 KB

iot-hub-gateway-kit-c-sim-lesson2-get-the-tools-win32.md

File metadata and controls

126 lines (86 loc) · 4.83 KB
title description services documentationcenter author manager tags keywords ROBOTS redirect_url ms.assetid ms.service ms.devlang ms.topic ms.tgt_pltfrm ms.workload ms.date ms.author
Simulated device & Azure IoT Gateway - Lesson 2: Get tools (Windows) | Microsoft Docs
Install the tools and the software on your host computer running Windows, create an IoT hub and register your device in the IoT hub.
iot-hub
shizn
timtl
iot development, iot software, iot cloud service, internet of things software, azure cli, install git on windows, gulp run, install node js windows, install npm on windows, install python on windows
NOINDEX
/azure/iot-hub/iot-hub-gateway-kit-c-lesson1-set-up-nuc
c16eee4c-8756-454b-82bf-3eb0dd51aa5f
iot-hub
c
article
na
na
3/21/2017
xshi

Get the tools (Windows 7 and later)

[!div class="op_single_selector"]

What you will do

  • Install Git, Node.js, Gulp, Python.
  • Install the Azure command-line interface (Azure CLI).

If you have any problems, look for solutions on the troubleshooting page.

What you will learn

In this lesson, you will learn:

  • How to install Git and Node.js.
    • Git is an open source distributed version control system. The sample application for this lesson is stored on Git.
    • Node.js is a JavaScript runtime with a rich package ecosystem.
  • How to use NPM to install Node.js development tools.
    • The minimum required version of Node.js is 4.5 LTS.
    • NPM is one of the package managers for Node.js.
  • How to install Visual Studio Code.
    • Visual Studio Code is a cross platform, lightweight but powerful source code editor for Windows, Linux, and macOS. It has great support for debugging, embedded Git control, syntax highlighting, intelligent code completion, snippets, and code refactoring as well.
  • How to install Python.
    • Python is a widely used high-level, general-purpose, interpreted and dynamic programming language.
  • How to install the Azure CLI.
    • The Azure CLI provides a multiplatform command-line experience for Azure. You work directly from a command line to provision and manage resources.
  • How to use the Azure CLI to create an IoT hub.

What you need

  • An Internet connection to download the tools and software.
  • A Windows computer.

Install Git and Node.js

Click the following links to download and install Git and Node.js LTS for Windows.

Install Node.js development tools

You use gulp.js to automate deployment and execution of scripts.

Press Windows + R, type cmd and press Enter to open a Command Prompt window, and then run the following command:

npm install -g gulp

If you experience issues with the installation, see the troubleshooting guide for solutions to common problems.

Note

Node, NPM and Gulp are required to run automation scripts developed in Node.js.

Install Python

You can choose from Python 2.7, 3.4 or 3.5. In this tutorial, we use Python 2.7. If you've already installed python, go to the next section.

Get Python for Windows

You also need to add the path of the folders where Python.exe and pip.exe are installed to the system PATH environment variable. By default, python.exe is installed in C:\Python27 and pip.exe is installed in C:\Python27\Scripts.

Install the Azure CLI

To install the Azure CLI, follow these steps:

  1. Open a Command Prompt window as an administrator.

  2. Install the Azure CLI by running the following commands:

    pip install --upgrade azure-cli
    pip install --upgrade azure-cli-iot

    The installation might take 5 minutes.

  3. Verify the installation by running the following command:

    az iot -h

    You should see the following output if the installation is successful.

    Verify Azure CLI installation

Install Visual Studio Code

You use Visual Studio Code later in the tutorial to edit configuration files.

Download and install Visual Studio Code.

Summary

You've installed all the required tools and software on your host computer. Your next task is to use the Azure CLI to create an IoT hub and register your device in your IoT hub.

Next steps

Create an IoT hub and register your device