LogInsight Module

April 29th, 2016 4 comments

While Archimedes once said “Give me a place to stand and with a lever I will move the whole world”, my personal preferred statement nowadays is “Give me an API, and I will automate it!”. And the LogInsight module I’m announcing is another step on that path.

pcli-loginsight

So I was very pleased when the Release Notes of the latest Log Insight version announced the availability of a Query API. On the blog of Steve Flanders there are several posts that go further into this new feature. Definitely worth a read to get a better understanding of what is available, and what is not (yet).

Log Insight 3.3: Authentication API
Log Insight 3.3: Query API
Log Insight Query API: Use Cases, Basics, Caveats, and Best Practices

My LogInsight PowerShell module makes use of these new API, and it will allow you to automate your interaction with Log Insight from within your PowerShell scripts.

Read more…

Visual Studio Code and PowerCLI

April 23rd, 2016 2 comments

In a blog post on November 16th 2015 Microsoft announced PowerShell support in Visual Studio Code. And as it befits the “new” Microsoft, this PowerShell extension for Visual Studio Code (VSC) was placed on GitHub.

VSC offers features that are currently not present in the PowerShell ISE, one of the more important ones for now being Git support. And another, not negligible feature, VSC is a free product. On the VMware{code} powercli Slack channel, which you should check out, the new editor was discussed briefly.

PCLI-and-VSC

One of the issues that faces the PowerCLI coder when he wants to use VSC, is the lack of PowerShell profiles support in the current release. This is in the pipeline, but not yet there. Due to this, and the way the PowerCLI modules are currently organised, Intellisense for PowerCLI cmdlets is not available out of the box. In this post I will show you the “fix” I’m using for now.

Update April 24th 2016: Great news from David Wilson, the driving force behind the VSC PowerShell feature.

david-profile

Read more…

A closer look at Get-EsxCli V2

April 22nd, 2016 No comments

In IT we don’t like breaking changes in our software. But sometimes you do need to break an egg to make an omelet. Standing still is ultimately moving backwards.

esxcli-v2In the most recent PowerCLI Release (v6.3 R1) such a change was introduced for the Get-EsxCli cmdlet. With the ingenious introduction of the V2 switch this is not yet a breaking change, but you should be aware that the “old” way of using Get-EsxCli will ultimately go away.

In the VMware vSphere PowerCLI Reference: Automating vSphere Administration, 2nd Edition, we included a script (Chapter 15, Listing 15-2), that allowed you to create a handy Reference Chart of the available methods under the Get-EsxCli cmdlet. This post provides an update to that script for V2.
Read more…

Ravello PowerShell Module – Automating a Lab Setup

February 1st, 2016 No comments

On this blog you have recently seen a post about the Ravello PowerShell module, and another one showing some Examples on how to use that module.

rav-labI thought now would be a good time to show you one of my actual use cases. Discover how I deploy my main Lab in the Ravello cloud without a single click, and each time exactly the way I want it.

Read more…

Ravello PowerShell Module – Examples

January 26th, 2016 1 comment

This post introduces the first set of example PowerShell scripts that use the Ravello PowerShell module to automate your Ravello Systems environment.

rav-title-examples

The examples serve primarily to demonstrate the use of the Ravello module cmdlets. But also how easy it is to automate your Ravello environment with the help of the Ravello PowerShell module. Note that the examples directory is introduced in v1.1.2.4 of the Ravello PowerShell module.
Read more…

Ravello PowerShell module v1.1

January 20th, 2016 No comments

The Restful API offered by Ravello Systems was upgraded to v1.1 recently. This upgrade introduced quite some new, interesting features. As a consequence, the PowerShell module I published earlier, see my Ravello PowerShell Module post, needed an update. Here is my Ravello PowerShell module v1.1 !

Ravello PowerShell module v1.1

The new Restful API offered by Ravello Systems, comes with a completely overhauled and slick REST API reference.

Update 24th January 2016: now also available on the PowerShell Gallery for Windows 10 and WMF 5 users.

Find-Module -Name Ravello
Install-Module -Name Ravello

Read more…

BePUG – RESTful API – Expand your Horizon

January 15th, 2016 3 comments

On January 14th 2016 we had the 1st BePUG (Belgian PowerShell User Group) meeting in Mons at the Microsoft Innovation Center. Yours truly did a session on RESTful APIs and how easy it is to work with those from within PowerShell.

bepug-banner

For a 1st meeting we had an above expectations turnout. For which we thank all the attendees. Judging from the comments we received, we are definitely going to continue with these BePUG meetings. We are not yet sure about location and frequency, but watch the BePUG website.

Please complete the BePUG questionnaire to have your voice heard !

Read more…

Categories: BePUG, PowerShell, REST Tags: , , ,

VMSA-2015-0007 Report

October 4th, 2015 10 comments

On October 1st 2015 VMware published Security Advisory VMSA-2015-0007. In that advisory you will find three vulnerabilities: CVE-2015-5177, CVE-2015-2342 and CVE-2015-1047.

VMSA-2015-0007

To anticipate the questions you will surely get from your local Security Officer, I created a function to report which vSphere Servers in your environment are impacted, and which action to take.

Update October 5th 2015:

  • Updated build numbers in $vmsaTab
  • Corrected build number testing (thanks Richard)

Read more…

Answer the question!

October 2nd, 2015 6 comments

An automation scripts that prompts you is a letdown, to say the least.

cdlock

A typical example of such an event is the question you get when you try to unmount a CD or DVD drive from a VM. Some Linux guest OS will place a lock on the CD or DVD, and vSphere will ask you if you want to bypass this lock. And your script just hangs there, waiting for you to reply 🙁

I have been looking for some time to come up with a solution for this automation “issue”. And finally I came up with a working solution 🙂
Read more…

PowerCLI 6.0 R2 – Little black book

September 15th, 2015 No comments

How many of you have seen Alan‘s, by now famous, book,  where he writes down all the user requests and comments he receives ?

book

Today Alan, and the PowerCLI Dev Team, have proven once again that this book is not there for the show. As I already mentioned some time ago in PowerCLI 5.5 R2, they do listen to you !, these guys keep improving an otherwise fantastic product at regular intervals. And note that 5.5R2 was only released a mere 18 months ago !
In today’s PowerCLI 6.0 Release 2 they added a bunch of highly interesting features. Just to name a few:

  • Further steps to a full Module distribution. The License component is now a module as well. And they fixed the issue with the $PSModulePath I mentioned in Fixing a (minor) PowerCLI 6 R1 issue
  • Further VROps integration, and I’m especially excited about the Get-OMStat cmdlet.
  • Update Manager integration. We have all been waiting for this one! No more separate product, fully integrated in PowerCLI, and it will work with Update Manager 5.5 and later.
  • More cmdlets build on the VASA API.
  • Support for SRM 6.1 and vCloud Director 8.0
  • …and a ton of fixes and improvements!

For a full overview consult the PowerCLI 6.0 R2 Release Notes.

Btw, Alan has demonstrated a number of these new features in our VMworld US session INF5211.

So what are you waiting for ? Start downloading !

And as a side note, the book is not full yet, keep sending your requests and suggestions to Alan ! It will only make the product better, because they do listen to you !

Enjoy !

Categories: 2015, INF5211, PowerShell, VMworld Tags: ,