Skip to content

Commit c0b2542

Browse files
authored
Merge pull request #101557 from kgremban/jan17-azvmterms
Update 'az vm terms' command
2 parents 9063fa6 + 01f0715 commit c0b2542

File tree

1 file changed

+15
-14
lines changed

1 file changed

+15
-14
lines changed

articles/iot-edge/how-to-install-iot-edge-ubuntuvm.md

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -22,22 +22,23 @@ This article lists the steps to run the Azure IoT Edge runtime on an Ubuntu 16.0
2222
On first boot, the Azure IoT Edge on Ubuntu VM preinstalls the latest version of the Azure IoT Edge runtime. It also includes a script to set the connection string and then restart the runtime, which can be triggered remotely through the Azure VM portal or Azure command line, allowing you to easily configure and connect the IoT Edge device without starting an SSH or remote desktop session. This script will wait to set the connection string until the IoT Edge client is fully installed so that you don’t have to build that into your automation.
2323

2424
## Deploy from the Azure Marketplace
25-
1. Navigate to the [Azure IoT Edge on Ubuntu](https://aka.ms/azure-iot-edge-ubuntuvm) Marketplace offer or by searching “Azure IoT Edge on Ubuntu” on [the Azure Marketplace](https://azuremarketplace.microsoft.com/)
26-
2. Select **GET IT NOW** and then **Continue** on the next dialog.
27-
3. Once in the Azure portal, select **Create** and follow the wizard to deploy the VM.
28-
* If it’s your first time trying out a VM, it’s easiest to use a password and to enable the SSH in the public inbound port menu.
29-
* If you have a resource intensive workload, you should upgrade the virtual machine size by adding more CPUs and/or memory.
30-
4. Once the virtual machine is deployed, configure it to connect to your IoT Hub:
31-
1. Copy your device connection string from your IoT Edge device created in your IoT Hub (You can follow the [Retrieve the connection string in the Azure portal](how-to-register-device.md#retrieve-the-connection-string-in-the-azure-portal) procedure if you aren’t familiar with this process)
32-
1. Select your newly created virtual machine resource from the Azure portal and open the **run command** option
33-
1. Select the **RunShellScript** option
34-
1. Execute the script below via the command window with your device connection string:
35-
`/etc/iotedge/configedge.sh "{device_connection_string}"`
36-
1. Select **Run**
37-
1. Wait a few moments, and the screen should then provide a success message indicating the connection string was set successfully.
3825

26+
1. Navigate to the [Azure IoT Edge on Ubuntu](https://aka.ms/azure-iot-edge-ubuntuvm) Marketplace offer or by searching “Azure IoT Edge on Ubuntu” on [the Azure Marketplace](https://azuremarketplace.microsoft.com/)
27+
2. Select **GET IT NOW** and then **Continue** on the next dialog.
28+
3. Once in the Azure portal, select **Create** and follow the wizard to deploy the VM.
29+
* If it’s your first time trying out a VM, it’s easiest to use a password and to enable the SSH in the public inbound port menu.
30+
* If you have a resource intensive workload, you should upgrade the virtual machine size by adding more CPUs and/or memory.
31+
4. Once the virtual machine is deployed, configure it to connect to your IoT Hub:
32+
1. Copy your device connection string from your IoT Edge device created in your IoT Hub (You can follow the [Retrieve the connection string in the Azure portal](how-to-register-device.md#retrieve-the-connection-string-in-the-azure-portal) procedure if you aren’t familiar with this process)
33+
1. Select your newly created virtual machine resource from the Azure portal and open the **run command** option
34+
1. Select the **RunShellScript** option
35+
1. Execute the script below via the command window with your device connection string:
36+
`/etc/iotedge/configedge.sh "{device_connection_string}"`
37+
1. Select **Run**
38+
1. Wait a few moments, and the screen should then provide a success message indicating the connection string was set successfully.
3939

4040
## Deploy from the Azure portal
41+
4142
From the Azure portal, search for “Azure IoT Edge” and select **Ubuntu Server 16.04 LTS + Azure IoT Edge runtime** to begin the VM creation workflow. From there, complete steps 3 and 4 in the "Deploy from the Azure Marketplace" instructions above.
4243

4344
## Deploy from Azure CLI
@@ -72,7 +73,7 @@ From the Azure portal, search for “Azure IoT Edge” and select **Ubuntu Serve
7273
1. Accept the terms of use for the virtual machine. If you want to review the terms first, follow the steps in [Deploy from the Azure Marketplace](#deploy-from-the-azure-marketplace).
7374

7475
```azurecli-interactive
75-
az vm image accept-terms --urn microsoft_iot_edge:iot_edge_vm_ubuntu:ubuntu_1604_edgeruntimeonly:latest
76+
az vm image terms accept --urn microsoft_iot_edge:iot_edge_vm_ubuntu:ubuntu_1604_edgeruntimeonly:latest
7677
```
7778

7879
1. Create a new virtual machine:

0 commit comments

Comments
 (0)