az-100-03 Deploy and Manage Virtual Machines

Module 02 - Azure Virtual Machines Deploy and Manage Virtual Machines

Objectives

Scenario

Adatum Corporation wants to implement its workloads by using Azure virtual machines (VMs) and Azure VM scale sets

Exercise 1: Deploy an Azure VM running Windows Server 2016 Datacenter into an availability set by using the Azure portal

Task 1: Deploy an Azure VM running Windows Server 2016 Datacenter into an availability set by using the Azure portal

Done trough portal.

Task 2: Deploy an Azure VM running Windows Server 2016 Datacenter into the existing availability set by using Azure PowerShell

$cred = Get-Credential
$vmName = "vm3"
$vmSize = "Standard_B2s"
$ResourceGroup = "az-103"
$AvailabilitySet = "aset"
$Location = 'West Europe'
$VirtualNetwork = "az-103-vnet"
$Subnet = "default"
$Image = "Win2016Datacenter"

new-azvm -ResourceGroupName $ResourceGroup -name $vmName -AvailabilitySetName $AvailabilitySet -Location $Location -VirtualNetworkName $VirtualNetwork -SubnetName $Subnet -Credential $cred -Image $Image

Task 3: Deploy two Azure VMs running Linux into an availability set by using an Azure Resource Manager template

New-AzDeployment -TemplateFile .\az-100-03.json -rgName "testrg" -rgLocation 'West Europe' -Location 'West Europe'

Exercise 2: Configure networking settings of Azure VMs running Windows and Linux operating systems

Task 1: Configure static private and public IP addresses of Azure VMs

Task 2: Connect to an Azure VM running Windows Server 2016 Datacenter via a public IP address

Done trough portal and with powerhsell

get-azvm -name vm1| Get-AzRemoteDesktopFile -Launch

Task 3: Connect to an Azure VM running Linux Ubuntu Server via a private IP address

Done via putty. Got ip via az cli

az vm show -g az-100-03 -n vm2 --query publicIps

Exercise 3: Deploy and configure Azure VM scale sets

Task 1: Identify an available DNS name for an Azure VM scale set deployment

Something like this: Test scalesetxyz.westeurope.cloudapp.azure.com

Test-AzDnsAvailability -DomainNameLabel scalesetxyz -Location 'West Europe'

Task 2: Deploy an Azure VM scale set

Done via web interface.

Task 3: Install IIS on a scale set VM by using DSC extensions