Intellectual VMware snapshots

Today we will automate VMware VM snapshots with a New-SmartSnapshot function from my PowerCLi Vi-Module module. The function will utilize the embedded PowerCLi New-Snapshot cmdlet but with some smart features. New-SmartSnapshot – the smart features A snapshot name and description The function generates the snapshot name from -Requestor parameter and the current date. By default, … Continue reading Intellectual VMware snapshots

Get and Disconnect VCenter sessions w/PowerCLi

Are you sure you know who connected to your VCenter(s)? From where and when the sessions were established? How long sessions have been idle? What user agents are used (Web Client/PowerCLi, etc.) to connect and many other usable info? This time we will look at just two functions Get-ViSession/Disconnect-ViSession from my PowerCLi Vi-Module module. Many … Continue reading Get and Disconnect VCenter sessions w/PowerCLi

ps1Liner :: MultiPathing report for vSphere hosts

What is one-liner? This is just one line of code (PowerShell/VMware PowerCLi or whatever) intended to perform particular task. It may be very or sometimes very-very long, but is still one line only! This one-liner retrieves pathing info for ESXi hosts. In the vSphere Client this info exists here: Select a host -> Configure tab … Continue reading ps1Liner :: MultiPathing report for vSphere hosts

Azure Automation: Increase Azure IaaS VM disks w/PowerShell

Several months ago I have written two functions Get-AzVmDisk and New-AzVmDisk that are intended to retrieve disk info and create new data disks for Azure VM(s). Today to close the topic, we will talk about how to increase existing OS and Data disks. It will be Expand-AzVmDisk function. Expand-AzVmDisk The Expand-AzVmDisk function from my Azure … Continue reading Azure Automation: Increase Azure IaaS VM disks w/PowerShell

Reconfigure/Edit SDRS Anti-Affinity Rules w/PowerCLi – Part 3

This is Part 3 of SDRS series. In the previous part we learned how to create and remove anti-affinity rules. To close the topic, it remains to edit/reconfigure existing rules. Logical to assume, it will be Set-SdrsAntiAffinityRule function. Set-SdrsAntiAffinityRule The function allows to edit both Inter-VM and VMDK rules. Let's go straight to examples. Reconfigure … Continue reading Reconfigure/Edit SDRS Anti-Affinity Rules w/PowerCLi – Part 3