IoT Simulator
Use this sample to deploy a set of sample IoT devices to ACI or AKS for load or end-to-end testing.
Code samples
CoreSimulatedDevice - Sample device that can be deployed as a docker container. Uses environment variables to launch and connect to an IoT Hub and send sample messages.
CreateDevices - Sample program that can be used to create and register several devices to an IoT Hub
Deployment scripts
- DeployACIDevices.ps1 - Used to deploy containers to an Azure Container Instances
- DeployAKSwithImage.ps1 - Used to deploy containers to an Azure Kuberbetes Service
- PushImageToACR.ps1 - Used to push a tagged simulated device container to an Azure Container Registry
Deployment and usage
Pre-reqs
- Create an Azure AKS cluster
- Create an Azure Container Instance resource
- Create an Azure IoT Hub
- Create an Azure Container Registry
Running the sample
- Build the CoreSimulatedDevice container
- Use the CreateDevices sample to create a set of sample devices in IoT Hub
- Modify the variables in the PushToACR.ps1 script to your distinct values
- Use the PushToACR.ps1 script to push the built container to ACR
- Modify the variables in the DeployACIDevices.ps1 script to your distinct values
- Use the DeployACIDevices.ps1 script to launch the simulated device containers