Category: powercli
-
vSphere CSI – remove orphan CNS volumes from GUI
Lately I’ve been playing around with vSphere CSI driver and for those who don’t know what that is, vSphere Storage for Kubernetes, also called vSphere Cloud Provider, was introduced in 2017 and became the first vSphere storage solution for Kubernetes. The main goal of that project was to expose vSphere storage and features to Kubernetes […]
-
Script – Get VMs created, deleted or modified on vCenter
A while back someone asked me if i could tell him who deleted a vm and when. I was able to get the information but it took me quite some time digging in the events. After this request I was asked to create a script that would send an email every day with the VMs […]
-
Get VM name with specific MAC Address
-Recently I got a request to get a virtual machine (vm) name using only the network interface MAC Address. After search for some scripts I could not find one that really worked for me so I put my brain to work and this is what I came up: [sourcecode language=”powershell”] get-vm | get-networkadapter | Where-Object […]