This document walks through how to deploy Sample IoT Solution Application. There are 2 major steps to deploy the sample IoT Solution.
- With Azure Resource Manager (ARM) template, deploy 18 Azure services and configure services
- Run the post deployment script to configure access permissions among services
-
Azure Subscription
If you do not have Azure Subscription, please create an account for free (12 months)
https://azure.microsoft.com/free/
You must be an administrator or an owner of the subscription -
A PC with Web Browser
-
Azure Resource Providers Please ensure Container Instance and Azure Digital Twins are enabled
[!IMPORTANT]
Enable Container Instance and Digital Twins providers, run following commands in Cloud Shellaz provider register --namespace Microsoft.ContainerInstance az provider register --namespace Microsoft.DigitalTwins
Click Deploy to Azure button below
Tip
Right click the button below and select Open link in new tab or Open lin in new window
A resource group is a container that holds related resources for an Azure solution. Similar to folder and files.
-
Select Subscription (if you have more than one)
-
Create a new Resource Group by clicking Create new
e.g. MySolution
-
Select Region, then click Review + create
-
Select Unique ID
Some services require global unique names. This template will create resource with IoTPnPWS-<Unique ID>.
Rules :- Minimum 5 characters
- Maximum 12 characters
- Alphanumberic characters only (no special characters)
[!TIP]
To avoid duplicate names and naming rules, recommendation is your name and some numbers, without special characters. E.g. Joe123 -
Click Review + create
-
Review settings and click Create to start deployment
-
Wait for deployment to complete
Typically the deployment process takes about 15 minutes.
-
Make sure deployment completed successfully
Some services require additional settings, such as permission which cannot cover with ARM template. We will complete deployment by running a script in Cloud Shell.
Azure Cloud Shell is an interactive, authenticated, browser-accessible shell for managing Azure resources. It provides the flexibility of choosing the shell experience that best suits the way you work, either Bash or PowerShell.
-
Switch to Outputs pane
There are 3 outputs.
- Link to Cloud Shell
- Post Deployment command
- Link to Web application
-
Launch Cloud Shell
Open a new browser tab or window, then navigate to https://shell.azure.com
-
If you have not used Cloud Shell, you will see this prompt to create a storage
Click to create storage for Cloud Shell
-
Confirm you are in Bash shell. If not, please switch to Bash shell
-
Click the button to copy Post Deployment Command, then right click in Cloud Shell window to paste the command
-
Switch to Cloud Shell window, then paste the post deployment command. Hit enter key to launch the post deployment script.
-
Once the post deployment script completes, you may close Cloud Shell window
-
Copy Web Site Address from the outputs page, then navigate to the new web application
-
Sample Web Portal application should be ready and running
The sample portal site has 5 main sections.
- IoT Hub
Interact with IoT Hub to perform operations such as adding and removing an IoT Hub device, copy connection string. - Device Provisioning Service
Interact with DPS to create and remove individual enrollment, copy symmetric key for provisioning. - Telemetry and Event
Displays telemetry and event payload - Time Series Insights
If connected devices are IoT Plug and Play enabled, the web app resolves Model ID and displays telemetry data in the line graph. - Azure Map
Displays indoor map to demonstrate Azure Digital Twin integration
You just deployed a sample IoT Solution with ARM template.
Connect a simulator to the sample IoT Solution
Return to the top page