Category: Infrastructure

How to convert string to Base64 and vice versa using Powershell

Working with Consul without UI is the correct way to go, which also help you with the productivity!!! (True?, hahaha~~)   Anyway, I’m not allowed to have a UI for it, come down to have read the correct value and make sure it’s the one we want it to be in there, I need to…


TERRAFORM WITH AZURE

Start playing Terraform … Get it downloaded & saved it to a local folder: C:\bin Put this path into local $PATH var by running:

Restart a command line, type in “terraform”:

Once you can see above, “Terraform” is correctly installed.   Due to I only have Azure account, so I’ll start playing with…


Vagrant with CentOS

I got an issue with vagrant running CentOS as testing environment:

“kitchen create” is a part of kitchen, which is triggering the vagrant to create a VM by using Virtualbox. The VM was created successfully but we are not able to connect to it with SSH due to the error message:

I tested…


PowerShell – Check Class Properties (UCS as example)

Here is the JSON for an Object:

The structure of this object: BootPolicy BootPolicyConfiguration Boot device order When I’m trying to add the first boot device order object, following command should be run:

This command will pass the PropertyMap as hastable: Access LunId Order But when I’m running the second boot device order…


DELETING CONTENTS OF A FOLDER CONTAINING FILES WITH OPEN FILE HANDLES USING POWERSHELL

Terminate notepad process Terminate any relevant process that may using that file Terminate any process that is loading that file…   Happy scripting. 🙂