Terraform template to provision an IoT Edge enabled virtual machine, IoT Hub, IoT Hub device on Azure. Iot Edge VM deployment is based on the ARM variant found at https://aka.ms/iotedge-vm-deploy and https://github.com/Azure/iotedge-vm-deploy.
-
Login to Azure CLI
-
Apply terraform
cd terraform/ apply terraform
NOTE: in case there are errors when executing the
scripts/terraform/register_iot_edge_device.sh
script, ensure the correct line endings (LF
) are used, depending on the environment. To learn more about how to configure line endings for your repository, check GitHub Docs.
-
Create Root & Intermediary certificates
Create root and intermediary certificates for device provisioning service and IoT Edge:
make dps-cert-gen
The certificates will be created within the
certs/gen/certs
directory. More information of how certificates are generated can be found in the certificate README. -
Login to Azure CLI
-
Apply terraform
cd terraform-dps/ apply terraform