Skip to content
This repository was archived by the owner on Jan 21, 2026. It is now read-only.

Commit a9aebc3

Browse files
committed
Addin part to install VSCode on remote VM
In the lab the students are required to use VSCode but it's not installed, so I added a part to install it so the students can follow the steps without getting stuck
1 parent c4119e2 commit a9aebc3

2 files changed

Lines changed: 21 additions & 0 deletions

File tree

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
11
.vscode/settings.json
2+
Instructions/.DS_Store
3+
Instructions/Labs/.DS_Store

Instructions/Labs/AZ400_M14_Ansible_with_Azure.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,25 @@ In this task, you will install and configure Ansible on the Azure VM you deploye
134134
```bash
135135
sudo apt-get update
136136
```
137+
1. Run the following commends to add and install VSCode (whenever you are prompted for confirmation, type **y** and press the **Enter** key):
138+
```
139+
sudo apt-get install wget
140+
```
141+
```
142+
wget -qO- https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > packages.microsoft.gpg
143+
```
144+
```
145+
sudo install -o root -g root -m 644 packages.microsoft.gpg /etc/apt/trusted.gpg.d/
146+
sudo sh -c 'echo "deb [arch=amd64,arm64,armhf signed-by=/etc/apt/trusted.gpg.d/packages.microsoft.gpg] https://packages.microsoft.com/repos/code stable main" > /etc/apt/sources.list.d/vscode.list'
147+
```
148+
```
149+
rm -f packages.microsoft.gpg
150+
```
151+
```
152+
sudo apt update
153+
sudo apt install apt-transport-https
154+
sudo apt install code
155+
```
137156

138157
1. Run the following to install Ansible and the required Azure modules (**make sure that you run the commands individually, line by line**, and, whenever you are prompted for confirmation, type **y** and press the **Enter** key):
139158

0 commit comments

Comments
 (0)