- Install Software
- Install Windows Subsystem Linux - Optional
- Setup Docker Support
- Create Lab VM - Optional
To install Software run the script setup-az-204.ps1
from an elevated PowerShell prompt:
Set-ExecutionPolicy Bypass -Scope Process -Force;
Invoke-Expression ((New-Object System.Net.WebClient).DownloadString('https://raw.githubusercontent.com/ARambazamba/AZ-204/master/Setup/setup-az-204.ps1'))
Note: This script will run for approx 20 min. No need to wait! In the meantime you can continue to fork and clone my repo as described in the next section.
Congratulations you have completed the base setup of your class vm.
Requires Windows 10 - May 2020 Update or higher. To Update use this link.
wsl --install
Introduction to Bash Scripting
Install Node 14.x on WSL
sudo apt update
sudo curl -sL https://deb.nodesource.com/setup_14.x | sudo bash
sudo apt-get install -y nodejs
Register Packages:
wget https://packages.microsoft.com/config/ubuntu/20.10/packages-microsoft-prod.deb -O packages-microsoft-prod.deb
sudo dpkg -i packages-microsoft-prod.deb
Install .NET:
sudo apt-get update; \
sudo apt-get install -y apt-transport-https && \
sudo apt-get update && \
sudo apt-get install -y dotnet-sdk-6.0
curl -sL https://aka.ms/InstallAzureCLIDeb | sudo bash
az config set extension.use_dynamic_install=yes
sudo npm install -g azure-functions-core-tools@4 --unsafe-perm true
Download & Install Docker Desktop for Windows
Configure Docker Desktop:
Create an account at Docker Hub and signin to Docker
Configure Cocker:
Enable Kubernetes:
Press Appy & Restart to complete Docker Setup
In the console window execute:
docker run hello-world
Execute create-lab-vm.azcli
or run the following remote script in Cloud Shell
curl https://raw.githubusercontent.com/arambazamba/az-204/main/Setup/create-lab-vm.azcli | bash
create-lab-vm.azcli
:
rnd=$RANDOM
loc=westeurope
grp=az-lab
vmname=labvm-$rnd
user=azlabadmin
pwd=Lab@dmin1234
az group create -n $grp -l $loc
az vm create -g $grp -n $vmname --admin-username $user --admin-password $pwd --image MicrosoftWindowsDesktop:Windows-10:win10-21h2-pro-g2:latest --size Standard_E2s_v3 --public-ip-sku Standard
Connect to VM:
Go to Ressource Group az-lab
and connect to VM using RDP and the credentials that you have used in the script:
Download RDP File:
Optional - Disable Login:
Sign In & Remember:
Credentials:
user=azlabadmin
pwd=Lab@dmin1234
Accept Settings: