Perform the following steps on your laptop:
- Open https://labs.azure.com in your browser.
- Sign in using the credentials provided by an instructor
- Click "Skip for now (14 days until this is required)" (sometimes you need to click more than once)
- If the ZeroToHeroLabVM tile doesn't show "Running", click the toggle button showing "Stopped" to start the VM. Wait for a couple of minutes. Refresh the page, if the status doesn't change to "Running"
- If the ZeroToHeroLabVM tile shows "Running", click the icon next to the "Running" button to download an RDP file you will use to connect to your lab VM
- Log in to your lab VM as "labuser" using the password provided by the instructor
Perform the following steps on your lab VM.
- Open the Power User menu (Win+X) and select Terminal. Windows PowerShell session will start.
- Install the required applications using Windows Package Manager (winget).
winget install microsoft.powershell # UAC is required
winget install microsoft.azurecli # UAC is required
winget install microsoft.bicep
winget install git.git
winget install Microsoft.VisualStudioCode
winget install OpenJS.NodeJS.LTS # UAC is required
winget install Microsoft.DotNet.SDK.7 # UAC is required
- Close Windows Terminal.
- Open the Power User menu (Win+X) and select Terminal again.
- Change default profile to be PowerShell instead of Windows PowerShell. (Settings > Startup > Default profile > PowerShell)
- Click Save and close Windows Terminal.
- Open Windows Terminal again. It should open PowerShell tab now.
Azure PowerShell works with PowerShell 5.1 or higher on Windows, or PowerShell 7 or higher on any platform. If you are using PowerShell 5 on Windows, you also need .NET Framework 4.7.2 installed.
# Install the Az module from the PowerShell Gallery
# Confirm the installation with "Y"
Install-Module -Name Az -Scope CurrentUser -AllowClobber -Verbose
While waiting for Azure PowerShell installation to finish, proceed with the installation of Visual Studio Code extensions.
Open another PowerShell tab. Run the following commands.
# Installation of the Visual Studio Code extensions from the command line
code --install-extension ms-vscode.powershell # PowerShell
code --install-extension ms-vscode.azurecli # Azure CLI Tools
code --install-extension ms-vscode.azure-account # Azure Account
code --install-extension msazurermtools.azurerm-vscode-tools # Azure Resource Manager (ARM) Tools
code --install-extension ms-azuretools.vscode-bicep # Bicep
code --install-extension ms-azuretools.vscode-azurestorage # Azure Storage
code --install-extension ms-dotnettools.dotnet-interactive-vscode # Polyglot noteooks
More details about the extensions:
Azure Account (On Windows, it requires Node.js 6 or later for Cloud Shell)
Azure Resource Manager (ARM) Tools
cd\
git clone https://github.com/alexandair/zero2hero
cd zero2hero
# open Visual Studio Code; click 'Yes, I trust the authors'
code .
Go to the Settings > Apps > Apps & features > Optional features > Add a feature > OpenSSH Client > Install.
# You need to start PowerShell with the "Run as Admin" option
Get-WindowsCapability -Online | Where-Object Name -like 'OpenSSH*'
# Install the OpenSSH Client
Add-WindowsCapability -Name OpenSSH.Client~~~~0.0.1.0 -Online
After installing the OpenSSH Client, you can now use the SSH client from PowerShell or the Command Prompt.