Skip to content

v0.4.0 Lab 0 Pre Requisites

CARMLPipelinePrincipal edited this page Dec 16, 2022 · 2 revisions

Pre-Requisites

This lab requires a number of fundamental pre-requisites you need in order to complete the lab in its entirety. These are

Scripts

Check version script
    az --version
    bicep --version
    git --version
    code --version
    pwsh --version
    Get-Module -Name 'Az.Accounts' -ListAvailable
    Get-Module -Name 'Az.Resources' -ListAvailable
    Get-Module -Name 'Pester' -ListAvailable
Install pre-requisites script (only Win10/11)

Note: You must have winget installed. You can achieve this by installing the App App Installer from the Microsoft Store.

# WinGet software
winget install --id 'Git.Git'
winget install --id 'Microsoft.PowerShell'
winget install --id 'Microsoft.AzureCLI'
winget install --id 'Microsoft.Bicep'
winget install --id 'Microsoft.VisualStudioCode'
winget install --id 'GitHub.GitHubDesktop'
winget install --id 'Microsoft.WindowsTerminal'

# VS Code Extensions
code --install-extension 'ms-azuretools.vscode-bicep'
code --install-extension 'ms-vscode.PowerShell'
code --install-extension 'msazurermtools.azurerm-vscode-tools'
code --install-extension 'ms-vscode.azurecli'

# Installing or updating PowerShell modules may require elevated permissions.
Install-Module -Name 'Az.Accounts' -Scope 'CurrentUser' -Force
Install-Module -Name 'Az.Resources' -Scope 'CurrentUser' -Force
Install-Module -Name 'Pester' -Scope 'CurrentUser' -Force
Install-Module -Name 'powershell-yaml' -Scope 'CurrentUser' -Force

If you already have the Azure CLI installed, please update your CLI installation with az upgrade.
You should also update the PowerShell modules, if installed, with Update-Module.