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

Commit a7c077e

Browse files
authored
Merge pull request #182 from kobi86/Lab14Job2
Addin part to install VSCode on remote VM
2 parents d9fde2a + 2283d15 commit a7c077e

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,2 +1,4 @@
11
.vscode/settings.json
22
.DS_Store
3+
Instructions/Labs/.DS_Store
4+

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)