How to configure Storage DRS clusters w/PowerCLi – Part 1

Despite the growing popularity of VMware VSAN, largest enterprises are still partially or completely continue to work with shared storage. There are enough PowerCLi cmdlets to deal with HA/DRS cluster aspects, but for SDRS clusters the choice is not great. This time we will look at just two functions Set-SdrsCluster/Get-SdrsCluster. These functions will complement the … Continue reading How to configure Storage DRS clusters w/PowerCLi – Part 1

How to get VSAN capabilities w/PowerCLi

More than two months ago I have introduced my VMware VSAN PowerCLi module Today we will add one more function Get-VSANCapability to the module. Get-VSANCapability Each vSphere/VSAN release brings more and more features and capabilities to VSAN Clusters. For example, Stretched Clusters were introduced in VSAN 6.2, iSCSI Targets in 6.5 and Verbose mode for … Continue reading How to get VSAN capabilities w/PowerCLi

Azure Automation: How to add a data disk to an Azure VM w/PowerShell

This article is about two new functions from my Azure Automation Az-Module - Get-AzVmDisk and New-AzVmDisk. The built-in Get-AzureRmVm cmdlet returns a VM object in the JSON format. The Get-AzVmDisk function gets this output and makes with it three actions: Cuts disks related data Parses this data Returns PowerShell like structured objects Get-AzVmDisk For multiple … Continue reading Azure Automation: How to add a data disk to an Azure VM w/PowerShell

How to find orphaned VHD files in the Azure IaaS cloud

When you delete a VM via Microsoft Azure portal, you don’t have an option to delete the VM related objects (virtual network interfaces and virtual disks as well) . Orphaned virtual disks - these are *.vhd files that reside on your StorageAccount(s) and consume expensive storage space, but are not related to any VM. As … Continue reading How to find orphaned VHD files in the Azure IaaS cloud

Azure Automation: How to stop/start Azure VM on schedule

To be cost-effective in any cloud-based environment you have as an option to shut down your VM in off-hours. In the Microsoft Azure IaaS you can stop (deallocate) and start your VMs on schedule with Automation Accounts. Apply-AzVmPowerStatePolicy.ps1 script With a PowerShell script Apply-AzVmPowerStatePolicy.ps1 from my Azure repo you will be able to build your … Continue reading Azure Automation: How to stop/start Azure VM on schedule

How to get ESXi hosts Peripheral devices w/PowerCLi

This time we will look at just two functions Get-VMHostPnic/Get-VMHostHba from my PowerCLi Vi-Module module to deal with ESXi hosts’ peripheral devices. The Get-VMHostPnic for Physical Network Interface Controllers. And Get-VMHostHba intended for Host Bus (fiber channel) Adapters. Get-VMHostPnic / Get-VMHostHba Both the functions can receive ESXi host(s) from the pipeline. There is only one … Continue reading How to get ESXi hosts Peripheral devices w/PowerCLi

How to check installed patches on VMware VM w/PowerCLi

In light of recent events related to WannaCry ransomware, it becomes very relevant to check if a particular Windows Update (Patch / Hotfix / KB) is installed within VM Guest OS. Test-VMHotfix from my PowerCLi Vi-Module module will quickly and efficiently check all your VMs. The function is very simple to use. Just pipeline VM(s) … Continue reading How to check installed patches on VMware VM w/PowerCLi