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

VMware VSAN PowerCLi module

With the PowerCLi 6.5.1 release, the new Get-VsanView cmdlet is now available that exposes the complete VMware VSAN Management API. The famous VMware guru William Lam demonstrated the great proof of concept for managing and silencing VSAN Health Checks. After reading this article, I decided to create VSAN PowerCLi module. You can download it (and many other resources) … Continue reading VMware VSAN PowerCLi module

How to control maximum number of VMware snapshots w/PowerCLi

Six years ago, the VMware guru William Lam wrote this excellent article. Today we will automate his solution with PowerCLi. Please meet the Set-MaxSnapshotNumber function from my PowerCLi Vi-Module module. The function can do three things: Get maximum allowed snapshot number Set maximum allowed snapshot number Prohibit taking snapshots at all Moreover, it is all … Continue reading How to control maximum number of VMware snapshots w/PowerCLi