Microsoft Azure Training 20 – Azure Virtual Machines – Part 7 – Azure Endpoints and Load Balancer (Exam 70-533)
This is the Part 4 of the Azure Virtual Machines session. In this session I deep dive into Data Disks (VHDs) in Azure. First there are discussions about Data Disks in general. Then I provide demo on creating new Data Disks and associating it with an existing VM. The most important demonstration of this session is uploading a data VHD from on-premise to Azure and then connecting the VHD with an existing VM in Azure to access the data.
Please subscribe to the channel to stay updated about the training series. Also please comment on the training videos. Thank you!
This is the Part 3 of the Azure Virtual Machines session. In this session I go hands-on in demonstrating how Virtual Machines are created in Azure using PowerShell. In this session I demonstrate both the Quick method (New-AzureQuickVM) and the complete configuration method using New-AzureVM cmdlet. Further demonstration is provided on how to attach a Data disk to an existing VM. Demonstration goes further with how a VM can be created from an existing VHD from the storage account. The session is concluded by showing how PowerShell can be used to turn off and delete VMs.
Please subscribe to the channel to stay updated about the training series. Also please comment on the training videos. Thank you!
Download scripts used in this session from here: Session-16-Scripts.
I recently had a query from someone on how-to list all the VMs in a subscription that are part of a subnet. The following script will do this for you:
$vms = Get-AzureVM $tgtSubnet = "Subnet-1" foreach($vm in $vms) { $thisVM = Get-AzureVM -ServiceName $vm.ServiceName –Name $vm.Name $thisVMSubnet = Get-AzureSubnet -VM $thisVM if ($thisVMSubnet -eq $tgtSubnet) { $thisVM.Name | Out-File C:\Azure\subnet_VM.txt } }