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 |
[!div class="op_single_selector"]
- 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.
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.
- An Internet connection to download the tools and software.
- A Windows computer.
Click the following links to download and install Git and Node.js LTS for Windows.
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.
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.
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
.
To install the Azure CLI, follow these steps:
-
Open a Command Prompt window as an administrator.
-
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.
-
Verify the installation by running the following command:
az iot -h
You should see the following output if the installation is successful.
You use Visual Studio Code later in the tutorial to edit configuration files.
Download and install Visual Studio Code.
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.