Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated #13

Open
wants to merge 1 commit into
base: stage-rowancollege
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 27 additions & 3 deletions Instructions/Labs/LAB-09-v2.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,32 @@ In this exercise, you will ensure docker engine is running and install the Azure

![](./media2/lab13img4.png)

>**Note:** If you encounter an error such as **"Docker Desktop - Unexpected WSL error"**, click **Quit** to close Docker and follow below steps:

![](./media2/nvdocker7.png)

- Search for the PowerShell in your lab-VM, right-click on the PowerShell, and select run as administrator.

![](./media2/powershell.png)

- Run the below command:
```
#Check if 'docker-users' group exists before adding to 'Administrators'
$dockerUsersGroupExists = Get-LocalGroup -Name 'docker-users' -ErrorAction SilentlyContinue
$CurrentUser = "azureuser"
if ($dockerUsersGroupExists -ne $null) {
Add-LocalGroupMember -Group 'docker-users' -Member $CurrentUser -Verbose
Write-Host "User '$CurrentUser' added to the 'docker-users' group."
} else {
Write-Host "'docker-users' group does not exist. Skipping adding the user to 'docker-users'."

}
```
- Once the command is executed, from the resources tab restart the Virtual machine.

![](./media2/res.png)

- Once the VM is restarted, Reopen the **Docker Desktop**.
1. To open Visual Studio Code, locate the **Visual Studio Code** icon on your desktop. Double-click the icon to launch the application.

![](./media2/lab09img1updated.png)
Expand Down Expand Up @@ -197,12 +223,10 @@ In this task, you will be setting up your username and password in the solution.

![](./media2/lab09img3updated.png)

1. In the **Explorer** pane, to open the deployment.template.json file, click **deployment.template.json**, ensure that the **image** is mentioned properly with the actual image name in both - **deployment.template.json** and **deployment.debug.template.json** files.
1. In the **Explorer** pane, to open the deployment.template.json file, click **deployment.template.json**, and update **image** from "${MODULES.ObjectCountingModule.debug}" to "mcr.microsoft.com/azureiotedge-simulated-temparature-sensor:1.4" mentioned properly with the actual image name in both - **deployment.template.json** and **deployment.debug.template.json** files.

![](./media2/lab13img22.png)

>**Note**: You can use the same image name from the below configurations and paste it here.

1. In the same file, ensure that the **Schema version** is mentioned properly with **1.2** or later in both - **deployment.template.json** and **deployment.debug.template.json** files.

![](./media2/lab13img21.png)
Expand Down
Binary file added Instructions/Labs/media2/nvdocker7.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Instructions/Labs/media2/powershell.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Instructions/Labs/media2/res.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.