The Extensions Azure Account and Azure CLI Tools connect to Azure Cloud Shell
Open the Cloud Shell in Azure Portal to configure it for first use
Chose Bash and your subscription
Optional: Give a meaningfull name to your Clould Shell Storage using Advanced Settings:
Note: To reset CloudShell you can use
Dismount-Clouddrive
Install Azure CLI in an elevated PowerShell prompt:
Invoke-WebRequest -Uri https://aka.ms/installazurecliwindows -OutFile .\AzureCLI.msi; Start-Process msiexec.exe -Wait -ArgumentList '/I AzureCLI.msi /quiet'; rm .\AzureCLI.msi
Note: To install Azure CLI in Linux (ie. WSL) execute
setup/windows-subsystem-linuxinstall-az-cli.sh
Log In:
az loginTry at cmd - use ctrl + d to exit:
az interactive
Note: You can also use:
F1 - Open Bash in Cloud Shellusing Azure Account Extension
List available extensions:
az extension list-available --output table
az extension add --name <extension-name>rnd=$RANDOM
grp=az204-appservice-$rnd
appPlan=appservice-$rnd
web=foodweb-$rnd
loc=westeurope
# create a resource group
az group create -n $grp -l $loc
# create an App Service plan
az appservice plan create -n $appPlan -g $grp --sku B2Note: You could also execute
creat-app-service.azclior run the following remote script in Cloud Shell
curl https://raw.githubusercontent.com/ARambazamba/AZ-204/master/Labs/create-lab-vm.sh | bash
If you want to execute the labs on a machine where you have full controll please follow this guide:
- Execute
create-lab-vm.azcli - Wait unitl the machine has been pvovisioned
- Connect to the VM using RDP
- Execute
Set-ExecutionPolicy bypassin an elevated prompt usingrun as administrator - Execute the script
setup-az-204.ps1in an elevated prompt
Note: To connect use the credientials from script
create-lab-vm.azcli
rnd=$RANDOM
loc=westeurope
grp=az204-lab
vmname=labvm-$rnd
user=az204lab
pwd=Lab@dmin1233
az group create -n $grp -l $loc
az vm create -g $grp -n $vmname --admin-username $user --admin-password $pwd --image MicrosoftWindowsDesktop:Windows-10:20h2-entn-g2:19042.630.2011061636 --size Standard_E2s_v3
Note: We are using this image and vm size because it supports nested virtualization
Select Directory:
In my case issue resolved by reverting Azure Account extension version to 0.8.11.




