microsoft / vscode-azure-iot-tools

The ultimate collection of extensions for working with Azure IoT in VS Code!
https://marketplace.visualstudio.com/items?itemName=vsciot-vscode.azure-iot-tools
MIT License
20 stars 19 forks source link

Azure IoT Tools for Visual Studio Code

End of Life / Support Notice

The 'Azure IoT Tools' collection is being retired after November 2022, and contains three extension packages that can still be downloaded individually:

The repository has been archived and is read-only. Currently installed extensions will not be affected, but no new versions will be made available in the marketplace.

Furthermore, after November 2022 users will no longer be able to install this extension collection from the marketplace.

Microsoft Azure IoT support for Visual Studio Code is provided through a rich set of extensions that make it easy to discover and interact with Azure IoT Hub that power your IoT Edge and device applications.

If you do not have an Azure subscription, sign up today for a free account. You'll get 12 months of popular free services, $200 in Azure Credits to try out any combination of Azure services, and access to free services such as Azure IoT Hub, Azure IoT Edge, etc.

What's New (v0.3.0)

Azure IoT Hub Toolkit

Added

Changed

Azure IoT Edge

Changed

Azure IoT Device Workbench

Added

Fixed

Special thanks to br1pro and Remco Ploeg, thanks for your feedbacks.

Azure IoT Services

Installation

By installing this extension you will install all of the extensions listed above. Some of these extensions will have a dependency on the Azure Account extension to provide a single Azure login and subscription filtering experience.

You can easily uninstall individual extensions if you are not interested in using them, without affecting other extensions provided by this pack. You can uninstall all of the extensions by uninstalling the Azure Tools extension.

Setup Azure IoT Hub for Extension

After successfully installing this extension, you can follow the steps below to setup your IoT Hub. you can use IoT Hub connection string or sign in to Azure to select IoT Hub:

Setup Azure IoT Hub through Connection String

You can use IoT Hub connection string to setup your IoT Hub

  1. In Explorer of VS Code, click "Azure IoT Hub Devices" in the bottom left corner.

  2. Click "Set IoT Hub Connection String" in context menu.

  3. An input box will pop up, then enter your IoT Hub Connection String (It is one-time configuration, and please make sure it is IoT Hub Connection String and not Device Connection String. The format is HostName=<my-hub>.azure-devices.net;SharedAccessKeyName=<my-policy>;SharedAccessKey=<my-policy-key>).

  4. The device list will be shown.

  5. Then you can manage your devices and interact with Azure IoT Hub through context menu.

NOTE: You can also go to File > Preferences > Settings (Code > Preferences > Settings), and update the configuration of azure-iot-toolkit.iotHubConnectionString to change your IoT Hub Connection String.

Setup IoT Hub Connection String

Setup Azure IoT Hub through Sign in to Azure

Instead of copying and pasting to set IoT Hub Connection String, you can sign in to Azure and select IoT Hub from your Azure Subscription.

  1. In Explorer of VS Code, click "Azure IoT Hub Devices" in the bottom left corner.

  2. Click "Select IoT Hub" in context menu.

  3. If you have not signed in to Azure, a pop-up will show to let you sign in to Azure.

  4. After signing in, your Azure Subscription list will be shown, then select an Azure Subscription.

  5. Your IoT Hub list will be shown, then select an IoT Hub.

  6. The device list will be shown.

Select IoT Hub

Command Palette

You can access almost all Azure IoT Services provided by these extensions through the Command Palette. Simply press F1, then type in IoT to find available commands.

Select IoT Hub

Contributing

Got a suggestion for the Azure IoT Tools extension? Submit a new issue and a PR with an updated package.json and README.md and we'll take a look!

Most contributions require you to agree to a Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us the rights to use your contribution. For details, visit https://cla.microsoft.com.

When you submit a pull request, a CLA-bot will automatically determine whether you need to provide a CLA and decorate the PR appropriately (e.g., label, comment). Simply follow the instructions provided by the bot. You will only need to do this once across all repos using our CLA.

This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact opencode@microsoft.com with any additional questions or comments.

License

MIT