My notes and ramblings, normally about automation

last update:

Referencing documentation is one of those things that seems overwhelming at first, but ends up becoming fundamental. I’m working on a series of posts where I take specific tasks and show how to refer to the documentation to accomplish the task. In this blog, we’ve been tasked with reporting information about a VM’s disk space and its associated filesystem. We’ll be working with the built in PowerCLI .Net objects.

Referencing documentation is one of those things that seems overwhelming at first, but ends up becoming fundamental. I’m working on a series of posts where I take specific tasks and show how to refer to the documentation to accomplish the task. In this blog, we’ve been tasked with reporting information about a VM’s disk space and its associated filesystem. We’ll be working with the vSphere objects. vSphere objects are vSphere Web Services API based, which means that we’ll be using a different set of documents to pull the same data.

Documentation is an important part of the automation and development process. When I first started using PowerCLI, I found the docs to be overwhelming and confusing. As my PowerCLI knowledge grew, I started to use them more and more. Instead of frustratingly browsing the multiple levels of properties that make up vCenter objects in a terminal, I found I could easily pick them out in the docs. As part of this blog post, we’re going to walk through the available documentation, which documentation should be used at what points, and then walk-through two use cases of using the documentation to perform a task.

I found something interesting the other day, from someone that mentioned it to me, you can’t move a datastore cluster between folders in the UI! No worries, PowerCLI to the rescue! Move-DatastoreCluster PowerCLI doesn’t have a high-level cmdlet for this action, so we’ll be creating our own. To perform this action, we’ll be using a method that’s available in the vSphere API known as “MoveIntoFolder.” We can see some additional information about this method in the VMware Code API Explorer: MoveIntoFolder Method I have created and shared a script on the PowerCLI Community repository and the VMware Code Sample Exchange which takes that “MoveToFolder” and wraps it in an advanced function we can call with: Move-DatastoreCluster

A recent knowledge base (KB) article was released regarding an issue impacting a specific version of VMware Tools. The KB in question is 57796, which describes the possibility of a guest level network connectivity issues or even a purple diagnostic screen (PSOD). Before getting to the discovery process, I want to cover some of the specifics for this KB. I do this because we’re going to need to be aware of these as we build out our one-liners and the subsequent reporting script.

VMware Cloud on AWS is making a switch to the underlying networking and security platform for the service. This move is being done in order to provide access to services such as distributed firewall, security groups, route-based VPN connections, and more. In order to accomplish this move, SDDCs will be transitioned from NSX-V to NSX-T. More information about this update is available in the following blog post: VMware Cloud on AWS: Advanced Networking and Security with NSX-T SDDC

VMware Cloud on AWS is making a switch to the underlying networking and security platform for the service. This move is being done in order to provide access to services such as distributed firewall, security groups, route-based VPN connections, and more. In order to accomplish this move, SDDCs will be transitioned from NSX-V to NSX-T. More information about this update is available in the following blog post: VMware Cloud on AWS: Advanced Networking and Security with NSX-T SDDC

VMware Cloud on AWS is making a switch to the underlying networking and security platform for the service. This move is being done in order to provide access to services such as distributed firewall, security groups, route-based VPN connections, and more. In order to accomplish this move, SDDCs will be transitioned from NSX-V to NSX-T. More information about this update is available in the following blog post: VMware Cloud on AWS: Advanced Networking and Security with NSX-T SDDC

VMware Cloud on AWS is making a switch to the underlying networking and security platform for the service. This move is being done in order to provide access to services such as distributed firewall, security groups, route-based VPN connections, and more. In order to accomplish this move, SDDCs will be transitioned from NSX-V to NSX-T. More information about this update is available in the following blog post: VMware Cloud on AWS: Advanced Networking and Security with NSX-T SDDC

Something amazing has been added to the vSphere HTML5 Web Client Fling. This new feature is called Code Capture. While the name might not sound familiar, hopefully you’re already acquainted with its predecessor – Onyx Code Capture gives you the ability to take actions you’ve completed in the vSphere Client and outputs usable code. Once you have the vSphere HTML5 Web Client Fling installed, it’s just as simple as hitting the red ‘record’ button on the top menu, performing your activities, then hitting the red ‘stop’ button.

As scary as it is, VMworld is almost here. Last year, many folks joked with me that the only way to find me was to attend one of my sessions… Well, this year is going to be no different. When I log into the VMworld speaker resource center, I’m hit with with 16 sessions! Those are just the ones in the schedule builder! Since I’ll probably be a little scarce around the VM Village area, let’s run down where I’ll be and when!

I blinked and it’s already August. That means it’s almost VMworld time! At VMworld, one of my favorite events is the Hackathon put on by the great folks at VMware {code} for the last couple years. If you haven’t been to one of the VMware {code} Hackathons, the whole idea is to create or join a team and code some kind of idea to fruition! The great part about it is that this event is for everyone.

Did you know the vCenter Server Appliance (VCSA) has file-based backup options? This ability was actually released in vSphere 6.5. However, there was one feature in particular that was missing: a scheduler. I’m happy to say that as part of vSphere 6.7, the VCSA received a backup scheduler! Recently, Emad Younis released a couple cool walkthroughs to the vSphere Central site to manage file-based backup and restore actions. Under the covers, both of these actions are served up by vSphere’s RESTful APIs and therefore we can use the vSphere Automation SDK for Python to automate these actions!

Did you know the vCenter Server Appliance (VCSA) has file-based backup options? This ability was actually released in vSphere 6.5. However, there was one feature in particular that was missing: a scheduler. I’m happy to say that as part of vSphere 6.7, the VCSA received a backup scheduler! Recently, my teammate, Emad Younis released a couple cool walkthroughs to the vSphere Central site to manage file-based backup and restore actions.

There’s been a new batch of features released for VMware Cloud on AWS! While there’s a lot of important new features, there’s one in particular I’d like to focus on. This new feature is called Elastic DRS (EDRS). EDRS allows you to automatically right-size your SDDC for the current workload demand and do it all by way of a policy. Even better, there are RESTful APIs to help you automate the configuration of this policy!

Did you know the vCenter Server Appliance (VCSA) has file-based backup options? This ability was actually released in vSphere 6.5. However, there was one feature in particular that was missing: a scheduler. I’m happy to say that as part of vSphere 6.7, the VCSA received a backup scheduler! Recently, my teammate, Emad Younis released a couple cool walkthroughs to the vSphere Central site to manage file-based backup and restore actions.

Recently, VMware Cloud on AWS announced the ability to create an SDDC with a single host. This is a pretty exciting update, one many of our users have been asking for. Along with the ability to deploy an SDDC in a much smaller footprint, you get access to all the automation and developer resources available such as the built-in Developer Center and the RESTful APIs. In a post on the VMware Code blog, Automating VMware Cloud on AWS One Host SDDC Deployments, some code samples were debuted by Alan Renouf and myself to deploy a single host SDDC using direct REST calls, PowerCLI, and DCLI.

The latest release of VMware Cloud on AWS introduces a brand-new deployment configuration. We can now deploy an SDDC which consists of a single host! This is exciting for many reasons, but biggest reason for me is being able to access all the APIs without occupying the standard minimum SDDC footprint of four hosts. More information on the One Host release is available here: VMware Cloud on AWS – Single Host Access

The latest release of VMware Cloud on AWS introduces a brand-new deployment configuration. We can now deploy an SDDC which consists of a single host! This is exciting for many reasons, but biggest reason for me is being able to access all the APIs without occupying the standard minimum SDDC footprint of four hosts. More information on the One Host release is available here: VMware Cloud on AWS – Single Host Access

Datacenter CLI (DCLI) 2.9.1 has been released and the new features are fantastic! One of the key new updates is how we install this new version of DCLI. In the past, DCLI was installed as part of vSphere CLI (vCLI). In this current version, DCLI is installed through the Python Package Index (PyPI) using pip. PyPI is the official, third-party, online repository for Python packages. Pip is a package management system which handles the installation process of Python packages from repositories like PyPI.