You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/iot-edge/how-to-install-iot-edge-ubuntuvm-bicep.md
+9-9Lines changed: 9 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -34,42 +34,42 @@ You can't deploy a remote Bicep file. Save a copy of the [Bicep file](https://ra
34
34
35
35
1. Ensure that you have installed the Azure CLI iot extension with:
36
36
37
-
```azurecli-interactive
37
+
```azurecli
38
38
az extension add --name azure-iot
39
39
```
40
40
41
41
1. Next, if you're using Azure CLI on your desktop, start by logging in:
42
42
43
-
```azurecli-interactive
43
+
```azurecli
44
44
az login
45
45
```
46
46
47
47
1. If you have multiple subscriptions, select the subscription you'd like to use:
48
48
1. List your subscriptions:
49
49
50
-
```azurecli-interactive
50
+
```azurecli
51
51
az account list --output table
52
52
```
53
53
54
54
1. Copy the SubscriptionID field for the subscription you'd like to use.
55
55
56
56
1. Set your working subscription with the ID that you copied:
57
57
58
-
```azurecli-interactive
58
+
```azurecli
59
59
az account set -s <SubscriptionId>
60
60
```
61
61
62
62
1. Create a new resource group (or specify an existing one in the next steps):
63
63
64
-
```azurecli-interactive
64
+
```azurecli
65
65
az group create --name IoTEdgeResources --location westus2
66
66
```
67
67
68
68
1. Create a new virtual machine:
69
69
:::moniker range="iotedge-2018-06"
70
70
To use an **authenticationType** of `password`, see the example below:
71
71
72
-
```azurecli-interactive
72
+
```azurecli
73
73
az deployment group create \
74
74
--resource-group IoTEdgeResources \
75
75
--template-file "main.bicep" \
@@ -82,7 +82,7 @@ You can't deploy a remote Bicep file. Save a copy of the [Bicep file](https://ra
82
82
83
83
To authenticate with an SSH key, you may do so by specifying an **authenticationType** of `sshPublicKey`, then provide the value of the SSH key in the **adminPasswordOrKey** parameter. An example is shown below.
@@ -101,7 +101,7 @@ You can't deploy a remote Bicep file. Save a copy of the [Bicep file](https://ra
101
101
:::moniker range=">=iotedge-2020-11"
102
102
To use an **authenticationType** of `password`, see the example below:
103
103
104
-
```azurecli-interactive
104
+
```azurecli
105
105
az deployment group create \
106
106
--resource-group IoTEdgeResources \
107
107
--template-file "main.bicep" \
@@ -114,7 +114,7 @@ You can't deploy a remote Bicep file. Save a copy of the [Bicep file](https://ra
114
114
115
115
To authenticate with an SSH key, you may do so by specifying an **authenticationType** of `sshPublicKey`, then provide the value of the SSH key in the **adminPasswordOrKey** parameter. An example is shown below.
0 commit comments