Skip to content

Commit 43e2c38

Browse files
authored
Merge pull request #33379 from drwill-ms/master
Fix up commands for ML Edge tutorial
2 parents fdb6e17 + ca3189a commit 43e2c38

3 files changed

+15
-18
lines changed

articles/iot-edge/tutorial-machine-learning-edge-02-prepare-environment.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ The DevVM directory contains the files needed to create an Azure virtual machine
5656
1. Open Powershell as an administrator and navigate to the directory where you downloaded the code. We will refer to the root directory for your source as `<srcdir>`.
5757

5858
```powershell
59-
cd \<srcdir\>\IoTEdgeAndMlSample\DevVM
59+
cd <srcdir>\IoTEdgeAndMlSample\DevVM
6060
```
6161
6262
2. Run the following command to allow execution of scripts. Choose **Yes to All** when prompted.
@@ -137,7 +137,7 @@ Now that you have connected to the development machine, add some useful extensio
137137
3. Run the script.
138138
139139
```powershell
140-
.\\Enable-CodeExtensions.ps1
140+
.\Enable-CodeExtensions.ps1
141141
```
142142
143143
4. The script will run for a few minutes installing VS code extensions:

articles/iot-edge/tutorial-machine-learning-edge-05-configure-edge-device.md

Lines changed: 12 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ In this section, we create the self-signed certificates using a Docker image tha
3030
2. Open a command-line prompt and run the following command to create a directory on the VM.
3131

3232
```cmd
33-
mkdir C:\edgecertificates
33+
mkdir c:\edgeCertificates
3434
```
3535
3636
3. Start **Docker for Windows** from the Windows Start menu.
@@ -51,22 +51,20 @@ In this section, we create the self-signed certificates using a Docker image tha
5151
9. In the Visual Studio Code terminal window, run the createcertificates container.
5252
5353
```cmd
54-
docker run --name createcertificates --rm -v
55-
C:\edgeCertificates:/edgeCertificates createcertificates
56-
/edgeCertificates
54+
docker run --name createcertificates --rm -v c:\edgeCertificates:/edgeCertificates createcertificates /edgeCertificates
5755
```
5856
59-
10. Docker will prompt for access to the **C:\\** drive. Select **Share it**.
57+
10. Docker will prompt for access to the **c:\\** drive. Select **Share it**.
6058
6159
11. Provide your credentials when prompted.
6260
63-
12. Once the container finishes running, check for the following files in **c:\\edgecertificates**:
61+
12. Once the container finishes running, check for the following files in **c:\\edgeCertificates**:
6462
65-
* C:\\edgeCertificates\\certs\\azure-iot-test-only.root.ca.cert.pem
66-
* C:\\edgeCertificates\\certs\\new-edge-device-full-chain.cert.pem
67-
* C:\\edgeCertificates\\certs\\new-edge-device.cert.pem
68-
* C:\\edgeCertificates\\certs\\new-edge-device.cert.pfx
69-
* C:\\edgeCertificates\\private\\new-edge-device.key.pem
63+
* c:\\edgeCertificates\\certs\\azure-iot-test-only.root.ca.cert.pem
64+
* c:\\edgeCertificates\\certs\\new-edge-device-full-chain.cert.pem
65+
* c:\\edgeCertificates\\certs\\new-edge-device.cert.pem
66+
* c:\\edgeCertificates\\certs\\new-edge-device.cert.pfx
67+
* c:\\edgeCertificates\\private\\new-edge-device.key.pem
7068
7169
## Upload certificates to Azure Key Vault
7270
@@ -81,8 +79,7 @@ To store our certificates securely and to make them accessible from multiple dev
8179
3. On your development machine, upload the certificates to Key Vault. Replace **\<subscriptionId\>** and **\<keyvaultname\>** with your resource information.
8280
8381
```powershell
84-
C:\source\IoTEdgeAndMlSample\CreateCertificates\upload-keyvaultcerts.ps1
85-
-SubscriptionId <subscriptionId> -KeyVaultName <keyvaultname>
82+
c:\source\IoTEdgeAndMlSample\CreateCertificates\upload-keyvaultcerts.ps1 -SubscriptionId <subscriptionId> -KeyVaultName <keyvaultname>
8683
```
8784
8885
4. If prompted, sign in to Azure.
@@ -140,7 +137,7 @@ Next, run the script to create the virtual machine for your IoT Edge device.
140137
1. Open a PowerShell window and navigate to the **EdgeVM** directory.
141138
142139
```powershell
143-
cd C:\source\IoTEdgeAndMlSample\EdgeVM
140+
cd c:\source\IoTEdgeAndMlSample\EdgeVM
144141
```
145142
146143
2. Run the script to create the virtual machine.
@@ -205,7 +202,7 @@ Earlier in this article, we uploaded certificates to Key Vault to make them avai
205202
1. ASet the Azure subscription that you want to use for Azure CLI commands.
206203
207204
```bash
208-
az account set --subscription <subscription id>
205+
az account set --subscription <subscriptionId>
209206
```
210207
211208
1. Create a directory on the VM for the certificates.

articles/iot-edge/tutorial-machine-learning-edge-06-custom-modules.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -382,7 +382,7 @@ To add the directory to the module’s container, we will modify the Dockerfiles
382382
2. Modify the file so that is looks like the following example:
383383

384384
```dockerfile
385-
FROM ubuntu:xenial
385+
FROM ubuntu:xenial
386386

387387
WORKDIR /app
388388

0 commit comments

Comments
 (0)