A Hitchhikers Guide to SRS 1.0.0
LucD notes - My PowerShell ramblings
by LucD
1y ago
Sometimes announcements tend to disappear in the cracks of time. When the Script Runtime Service for vSphere (SRS) 1.0.0 was announced, I had the feeling just that happened. When version 1.0.0 of this open-sourced (!) product was released, I had expected much more buzz on social media from VMware PowerCLI users.  This appliance does in fact bring an answer to a wish that many PowerShell/PowerCLI users have had for years: a “Scripting Host“! This Hitchhikers Guide to SRS 1.0.0 post will show how I build my own customised SRS appliance, and how I use it to run PowerShell/PowerCLI scripts ..read more
Visit website
How to Mount a Content Library ISO on a VM
LucD notes - My PowerShell ramblings
by LucD
1y ago
While Content Libraries are becoming more and more used, there are still some features that are not yet implemented in PowerCLI. So is it for example not possible to mount an ISO file located in a Content Library on a VM. The Set-CDDrive cmdlet is currently lacking this functionality, while the Web Client offers this option. Like often, and one of the VMware PowerCLI features I absolutely like, when a cmdlet is missing a feature, you can fall back on the API to solve the issue. Introduction Like so often, the reason I had a closer look at this issue was due to a question in PowerCLI Community ..read more
Visit website
Crescendo ma non troppo
LucD notes - My PowerShell ramblings
by LucD
1y ago
No, this is not a post about music. This post will be about my first experiences with the PowerShell Crescendo module, which was just released in Preview 1. Now, why would I care to write a post about a preview of a module? The reason is quite simple. This module is, in my opinion, covering something that was missing in PowerShell. Namely the possibility to use native commands, and present the results as objects. The blog post by Jason Helmick I linked to earlier explains this all in more detail. What follows are my first, admittedly simple, trials using the Crescendo module. If you don’t wan ..read more
Visit website
A Hitchhikers Guide to SRS 1.0.0
LucD notes - My PowerShell ramblings
by LucD
2y ago
Sometimes announcements tend to disappear in the cracks of time. When the Script Runtime Service for vSphere (SRS) 1.0.0 was announced, I had the feeling just that happened. When version 1.0.0 of this open-sourced (!) product was released, I had expected much more buzz on social media from VMware PowerCLI users.  This appliance does in fact bring an answer to a wish that many PowerShell/PowerCLI users have had for years: a “Scripting Host“! This Hitchhikers Guide to SRS 1.0.0 post will show how I build my own customised SRS appliance, and how I use it to run PowerShell/PowerCLI scripts ..read more
Visit website
How to Mount a Content Library ISO on a VM
LucD notes - My PowerShell ramblings
by LucD
2y ago
While Content Libraries are becoming more and more used, there are still some features that are not yet implemented in PowerCLI. So is it for example not possible to mount an ISO file located in a Content Library on a VM. The Set-CDDrive cmdlet is currently lacking this functionality, while the Web Client offers this option. Like often, and one of the VMware PowerCLI features I absolutely like, when a cmdlet is missing a feature, you can fall back on the API to solve the issue. Introduction Like so often, the reason I had a closer look at this issue was due to a question in PowerCLI Community ..read more
Visit website
Crescendo ma non troppo
LucD notes - My PowerShell ramblings
by LucD
2y ago
No, this is not a post about music. This post will be about my first experiences with the PowerShell Crescendo module, which was just released in Preview 1. Now, why would I care to write a post about a preview of a module? The reason is quite simple. This module is, in my opinion, covering something that was missing in PowerShell. Namely the possibility to use native commands, and present the results as objects. The blog post by Jason Helmick I linked to earlier explains this all in more detail. What follows are my first, admittedly simple, trials using the Crescendo module. If you don’t wan ..read more
Visit website
Cloud-init – Part 5 – Running Containers
LucD notes - My PowerShell ramblings
by LucD
3y ago
In this last part of this series (for now) we will show how to use containers to run your PowerShell/PowerCLI scripts on the deployed instances. And although technically not a ‘real‘ cloud-init post, I consider it related to Part 1, Part 2 and Part3 in this series.  Introduction In Post 4 of the cloud-init series, we ran our PowerShell/PowerCLI scripts natively in the Guest OS of the instance. That might have an impact in some situations. When the first script installs for example the VMware PowerCLI modules, these modules will stay installed in the Guest OS. Consider this as a ki ..read more
Visit website
Cloud-init – Part 4 – Running Scripts
LucD notes - My PowerShell ramblings
by LucD
3y ago
For now, the second to last part in this series. And although technically not a ‘real‘ cloud-init post, I consider it related to Part 1, Part 2 and Part3 in this series. In this post I’ll show how you can run scripts on these ‘cattle‘ stations we just deployed. Introduction The purpose of this post is quite straightforward. How can we use the ‘cattle‘ stations we created to run our PowerShell/PowerCLI scripts? Since all the stations we deployed with cloud-init come with the VMware Tools installed, we can use the GuestOperations, and all cmdlets and functions based on these API, to ..read more
Visit website
Cloud-init – Part 3 – Photon OS
LucD notes - My PowerShell ramblings
by LucD
3y ago
In Part 1 and Part 2 of this series we used Ubuntu as the guest OS of our target instances. In Part 3 we will show how to use VMware’s Photon OS as our guest OS. The main reason to use Photon OS is that it is open-sourced, it has a small footprint and it is optimised for VMware vSphere. Some Background Does this mean that Photon OS is the ideal guest OS for our ‘cattle‘ stations where we want to run our PowerShell scripts? Not really, the major flaw with Photon OS, imho, is that the available packages are limited and rather infrequently maintained. In fact, until recently t ..read more
Visit website
Cloud-init – Part 2 – Advanced Ubuntu
LucD notes - My PowerShell ramblings
by LucD
3y ago
In Cloud-init – Part 1 – The Basics, we laid the groundwork for using cloud-init in a vSphere environment. In this post we will go into more advanced Ubuntu setups. This includes deploying PowerShell, v6 and v7, using repositories and if needed, a GUI with Visual Studio Code. For the installation of software on the instance we use the user-data YAML file. In the following sections, we discuss some of the more obvious candidates you want to have on your station. Remember that the basic idea of the series is to have a “cattle” station to test/run (and optionally develop) your scripts. Scr ..read more
Visit website

Follow LucD notes - My PowerShell ramblings on Feedspot

Continue with Google
OR