TagScripting

Developing PowerShell with Visual Studio Code in Containers

Visual Studio Code is one of the best things to come out of Microsoft. No kidding. I’ve been using it for development since early 2018 and it keeps on getting better. The customization possibilities are endless and the number of extensions is impressive. You can find everything, from themes to lint parsers, to code beautifiers. There’s also an extension for Remote Development, which is the focus for this post.

Remote Development

I’ve been coding for a while, and I typically do this on a remote server for a couple of reasons:

  1. You don’t need the dependencies installed locally or mess
Read more

Automating cleaning up NSX-T with PKS protected objects

Building on the post that Jeffrey Kusters did on removing protected objects from NSX-T that PKS has created, I needed to automate this process for an environment which had 100+ of these objects.

First, a tiny bit of background; VMware PKS makes it pretty easy to deploy applications via Kubernetes and deploy them securely – because NSX-T is integrated and each Kubernetes objects will be firewalled, load balancers and can use other networking services to expose itself to the end users.

The integration between PKS and NSX-T is fully automated, and PKS creates protected objects (logical switches, logical routers, firewall … Read more

Integrating vRealize Automation with Network Insight

In order to get a complete view of your network traffic flows between applications inside Network Insight, it should know things about your application stacks. This post will go into how to create an integration with vRealize Automation in order to get all new application stacks into Network Insight. This will happen on the moment that an application is deployed from a blueprint, instantly transferring info so every greenfield application will give context in Network Insight.

Disclaimer: This is something I built, it is not officially supported by VMware.

As you may know by now, Network Insight listens … Read more

Using PowervRNI to connect to Network Insight SaaS

VMware is pretty heavily invested in the cloud. Not only to manage your cloud environments, but also products as Software-as-a-Service offerings, next to the regular on-premises offerings. At the time of this post, there are 19 VMware products that you can purchase via the SaaS model. This is a variation between models like VMware Cloud on AWS where you get an Infrastructure-as-a-Service and Network Insight where you get the product hosted in the cloud.

Network Insight SaaS

So there’s a SaaS version of Network Insight. Effectively, this means that the Platform (the user-interface and data repository) is hosted in the … Read more

vRealize Network Insight 3.8 – What’s new in the API?

One of my favorite products has just dropped a new version. vRealize Network Insight 3.8 (vRNI) has just hit the downloads and has a bunch of cool new stuff.

vRNI 3.6 introduced a public API with which you can do most of the day-2 operations. vRNI 3.7 didn’t bring any changes to the API, but 3.8 does. Below are the changes in the API version 1.1.0.

Fetching info in bulk

Version 1.0.0 had endpoints to grab information from entities (VMs, hosts, firewall rules, etc), but it was a bit tedious. You had to request a paged list of entities … Read more

Using PowerNSX to get all routes on NSX Edges

This is going to be a short one! I received an interesting question from Sander Martijn about retrieving all IP routes from an NSX Edge. There is no API endpoint available in NSX to get the current routes and the only way this information can get retrieved is using the NSX Central CLI. You can easily see all routes on the Central CLI by using the command: show edge edge-id ip route.

PowerNSX has an Invoke-NsxCli cmdlet which executes the Central CLI with a specific query. Because of this, you can retrieve the routes with a PowerShell script and … Read more

Storing the VMware NSX config in version control

Almost any organization that I’ve had the pleasure of talking with, uses Git either for code repositories where their developers work or for doing version control on their infrastructure systems. Git is an excellent version control tool and is widely used for both developers and also infrastructure configuration. This post goes into how to put the VMware NSX configuration into version control using Git.

Not all infrastructure components (server systems, network devices, etc) have a proper audit log on what happens in the configuration and who is doing what exactly. This is where version control can lend a helping hand … Read more

© 2019 Lostdomain

Theme by Anders NorénUp ↑