Quickstart - Create an Azure IoT Central application and use your smartphone to send telemetry
This quickstart shows you how to create an Azure IoT Central application and connect your first device. To get you started quickly, you install an app on your smartphone to act as the device. The app app sends telemetry, reports properties, and responds to commands:
Prerequisites
An active Azure subscription. If you don't have an Azure subscription, create a free account before you begin.
Tip
You should have at least Contributor access in your Azure subscription. If you created the subscription yourself, you're automatically an administrator with sufficient access. To learn more, see What is Azure role-based access control?
An Android or iOS phone on which you're able to install a free app from one of the official app stores.
Create an application
Navigate to the Azure IoT Central Build site. Then sign in with the Microsoft personal, work, or school account associated with your Azure subscription.
IoT Central provides various industry-focused application templates to help you get started. This quickstart uses the Custom application template to create an application from scratch:
Navigate to the Build page and select Create app in the Custom app tile:
On the New application page, make sure that Custom application is selected under the Application template.
Azure IoT Central automatically suggests an Application name based on the application template you've selected. Enter your own application name such as Contoso quickstart app.
Azure IoT Central also generates a unique URL prefix for you, based on the application name. You use this URL to access your application. Change this URL prefix to something more memorable if you'd like. This URL must be unique.
For this quickstart, leave the pricing plan set to Standard 2.
Select your subscription in the Azure subscription drop-down.
Select your closest location in the Location drop-down.
Review the Terms and Conditions, and select Create at the bottom of the page. After a few seconds, your IoT Central application is ready to use:
Register a device
To connect a device to to your IoT Central application, you need some connection information. An easy way to get this connection information is to register your device.
To register your device:
In IoT Central, navigate to the Devices page and select Create a device:
On the Create a new device page, accept the defaults, and then select Create.
In the list of devices, click the device name:
On the device page, select Connect and then QR Code:
Keep this page open. In the next section you scan this QR code using the phone app to connect it to IoT Central.
Connect your device
To get you started quickly, this article uses the IoT Plug and Play smartphone app as an IoT device. The app sends telemetry collected from the phone's sensors, responds to commands invoked from IoT Central, and reports property values to IoT Central.
Install the app on your smartphone from one of the app stores:
To connect the IoT Plug and Play app to you Iot Central application:
Open the IoT PnP app on your smartphone.
On the welcome page, select Scan QR code. Point the phone's camera at the QR code. Then wait for a few seconds while the connection is established.
On the telemetry page in the app, you can see the data the app is sending to IoT Central. On the logs page, you can see the device connecting and several initialization messages.
To view the telemetry from the smartphone app in IoT Central:
In IoT Central, navigate to the Devices page.
In the list of devices, click on your device name, then select Overview:
Tip
The smartphone app only sends data when the screen is on.
Clean up resources
If you don't plan to complete any further IoT Central quickstarts or tutorials, you can delete your IoT Central application:
- In your IoT Central application, navigate to Administration > Your application.
- Select Delete and then confirm your action.
Next steps
In this quickstart, you created an IoT Central application and connected device that sends telemetry. In this quickstart, you used a smartphone app as the IoT device that connects to IoT Central. Here's the suggested next step to continue learning about IoT Central: