Skip to content

Latest commit

 

History

History

setup

Lab VM Setup Guide

  • Install Software
  • Install Windows Subsystem Linux - Optional
  • Docker Support
  • Create Lab VM - Optional

Install Software

To install Software run the script setup-m365-dev.ps1 from an elevated PowerShell prompt:

run-as

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.

Install Windows Subsystem Linux - Optional

Requires Windows 10 - May 2020 Update or higher. To Update use this link.

Install WSL 2

wsl --install

Frameworks & Runtimes

Introduction to Bash Scripting

Node

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

.NET 6

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

Azure CLI

curl -sL https://aka.ms/InstallAzureCLIDeb | sudo bash
az config set extension.use_dynamic_install=yes

Azure Function Core Tools V4

sudo npm install -g azure-functions-core-tools@4 --unsafe-perm true

Docker Support

Download & Install Docker Desktop for Windows

Configure Docker Desktop:

docker-desktop

Create an account at Docker Hub and signin to Docker

docker-signin

Configure Cocker:

wsl-engine

wsl-engine-resources

Enable Kubernetes:

kubernetes

Press Appy & Restart to complete Docker Setup

Test Installation

In the console window execute:

docker run hello-world

docker-test

Create Lab VM - Optional

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-labvm

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:

download-rdp

Optional - Disable Login:

disable-login

Sign In & Remember:

connect-rdp

Credentials:

user=azlabadmin
pwd=Lab@dmin1234

sign-in.jpg

Accept Settings:

accept-settings