ARM template to deploy a VM with IoT Edge pre-installed (via cloud-init)
Перейти к файлу
Pat Altimore fc8b35a476
Update to release 1.5 (#25)
2024-06-04 11:18:23 -07:00
CODE_OF_CONDUCT.md ADD CODE_OF_CONDUCT.md 2020-03-12 20:05:06 -05:00
LICENSE Add LICENSE 2020-03-12 20:03:45 -05:00
README.md Update to release 1.5 (#25) 2024-06-04 11:18:23 -07:00
SECURITY.md Add SECURITY.md 2020-03-12 20:06:15 -05:00
cloud-init.txt Upgrade deployment target VM to Ubuntu 22.04 LTS (#22) 2024-03-22 13:45:33 -07:00
config.toml Update to release 1.5 (#25) 2024-06-04 11:18:23 -07:00
edgeDeploy.bicep Upgrade deployment target VM to Ubuntu 22.04 LTS (#22) 2024-03-22 13:45:33 -07:00
edgeDeploy.json Upgrade deployment target VM to Ubuntu 22.04 LTS (#22) 2024-03-22 13:45:33 -07:00
genoneline.py Fix escape character replacement and cleanup 2022-08-27 02:31:42 -07:00

README.md

iotedge-vm-deploy

Detailed documentation is available on Microsoft Docs

ARM Template to deploy IoT Edge enabled VM

The following Azure Resource Templates are for IoT Edge release 1.5.

ARM template to deploy a VM with IoT Edge pre-installed (via cloud-init)

The ARM template visualized for exploration

Azure CLI command to deploy IoT Edge enabled VM

The commands below deploy a VM with IoT Edge pre-installed and provisioned with the provided connection string. To deploy a VM with IoT Edge pre-installed but not provisioned, do not include the --parameters deviceConnectionString=... portion of the command.

Using an ARM template

az deployment group create \
  --name edgeVm \
  --resource-group replace-with-rg-name \
  --template-uri "https://raw.githubusercontent.com/Azure/iotedge-vm-deploy/main/edgeDeploy.json" \
  --parameters dnsLabelPrefix='my-edge-vm1' \
  --parameters adminUsername='azureuser' \
  --parameters authenticationType='sshPublicKey' \
  --parameters adminPasswordOrKey="$(< ~/.ssh/id_rsa.pub)" \
  --parameters deviceConnectionString=$(az iot hub device-identity show-connection-string --device-id replace-with-device-name --hub-name replace-with-hub-name -o tsv)

Using a local Azure Bicep file

az deployment group create \
  --name edgeVm \
  --resource-group replace-with-rg-name \
  --template-file "./edgeDeploy.bicep" \
  --parameters dnsLabelPrefix='my-edge-vm1' \
  --parameters adminUsername='azureuser' \
  --parameters authenticationType='sshPublicKey' \
  --parameters adminPasswordOrKey="$(< ~/.ssh/id_rsa.pub)" \
  --parameters deviceConnectionString=$(az iot hub device-identity show-connection-string --device-id replace-with-device-name --hub-name replace-with-hub-name -o tsv)

Contributing

This project welcomes contributions and suggestions. 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.opensource.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., status check, 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.