Author Archives: Shawn
Microsoft Azure Training 19 – Azure Virtual Machines – Part 6 – VM Agent and Extensions (Exam 70-533)
Microsoft Azure Training 18 – Azure Virtual Machines – Part 5 – Azure Images (Exam 70-533)
Microsoft Azure Training 17 – Azure Virtual Machines – Part 4 – Azure VM Data disks (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!
Microsoft Azure Training 16 – Azure Virtual Machines – Part 3 – Creating Azure VMs with PowerShell (Exam 70-533)
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.
Microsoft Azure Training 15 – Azure Virtual Machines – Part 2 – Creating Virtual Machines (Exam 70-533)
Microsoft Azure Training 14 – Azure Virtual Machines – Part 1 – Advanced Concepts (Exam 70-533)
Azure PowerShell – List all VMs that are using a specific VNet subnet
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 } }