Tag : PowerShell
Written by Christopher Lewis on April 24, 2017 .
A very quick post on the latest version of VMware’s PowerCLI, v6.5.1. See VMware’s Official Blog here . This is now a MODULE available from the PowerShell Gallery which is #Awesome because it has been a major annoyance not being able just to type Install-Module PowerCLI to install it. Instead you had to go through a standard windows install package in the past. At a Glance Remove existing PowerCLI installation.
Written by Christopher Lewis on August 16, 2016 .
I thought I would share a quick script to create a vCenter User Role with all the appropriate permissions for use with vRealize Automation (6.x or 7.x). The script creates a new User Role within vCenter called vRealize Automation User. Note: if you don’t like the name you can change the $role property to anything you like. The script prompts for following information: vCenter Server FQDN the vCenter/SSO User with rights to create the role the vCenter/SSO User password the vRealize Automation Service account (that you want to assign to the permission) And then automagically creates the new vCenter role with the required privileges and assigns permissions to the vRealize Automation service account from the root of the vCenter Server and propagates down.
HOWTO: Automate the installation of the External Platform Services Controller using PowerCLI & JSON - Part 2
Written by Christopher Lewis on July 25, 2016 .
As a follow on to my previous article, HOWTO: Automate the installation of the External Platform Service Controller using PowerCLI & JSON - Part 1 , I had a new customer requirement to deploy the Platform Service Controller as the identity solution for vRealize Automation 6.x, but this time directly onto a VMware vCenter Server rather than an VMware vSphere ESXi host. I can hear you all screaming at the article about vRealize Automation 7, how it is much cooler and has its own highly available vIDM - but this project started when vRA7 had only just come out and the customer didn’t want to take the risk.
HOWTO: Automate the installation of the External Platform Services Controller using PowerCLI & JSON - Part 1
Written by Christopher Lewis on July 3, 2016 .
As a follow on to my previous article on how to deploy HOWTO: Deploy the VMware vSphere 6.0 Platform Services Controlle r, I thought I would share a way to automate the delivery of the vSphere Platform Services Controller using PowerCLI/Powershell. The main credit for this article goes to the information in the brilliant PowerCLI Reference 2nd Edition (see my review here ) of which my colleague Jonathan Medd ( www.
Written by Christopher Lewis on April 25, 2016 .
As part of my VMware home lab setup I wanted to be able to run a PowerCLI/PowerShell script to Power On/Off my hosts as required. The first objective was being able to power the hosts on using their IPMI interfaces. Thankfully the Microsoft PowerShell has something that does the job quite nicely called Physical Computer System View (PCSV) Device Cmdlets. Using Get-PcsvDevice Using the Get-PcsvDevice command interactively will require you to provide an IP Address/Hostname, a protocol (such as IPMI) and a set of credentials.
Written by Christopher Lewis on April 7, 2016 .
Power CLI 2nd Edition - A “must have” book for anyone who is working with VMware products and wants to add value and save time. The book has been helpful to me for three reasons: it has taught me how to automate those mundane tasks that everybody hates to, it has enabled me to remove the human error - making sure results are consistent, and most importantly it has given me back some much needed time to tackle more interesting problems/tasks (after all once you have written a script once it can be re-used on many projects!
- The Top 6 Reasons to Visit the Hands-on Labs @ VMware Explore Barcelona 2023
- Top 10 Things to Know Before You Go @ VMware Explore Barcelona 2023
- VMware Aria Automation Advanced Workload Placement using Allocation-based Capacity Metrics
- Using the vRSLCM API to Deploy vRealize Automation SaltStack Config (Single Node)
- Using the Aria Automation API to configure a Cloud Account for VMware Cloud Director