Image for post
Image for post

In this story, we will learn how to create (and remove) a snapshot of a VMware vSphere Virtual Machine (VM) using PowerShell and PowerCLI.

This script is useful to create a snapshot before we are going to make a change in a VM and remove it after we complete the change.


This first step is to install all requirements:

# Install VMware Components
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Force
Set-PowerCLIConfiguration -InvalidCertificateAction Ignore -Confirm:$false
Install-PackageProvider -Name NuGet -MinimumVersion -Force
Install-Module VMware.PowerCLI -Repository PSGallery -Force
Import-Module VMware.VimAutomation.Core -Force

Authenticate to VMware vSphere

The second step is to authenticate to the VMware vSphere using PowerCLI:

# Credentials
$vcserver = "vcenter.kopicloud.local"
$vcusername = "guillermo@kopicloud.local"
$vcpassword =…

Image for post
Image for post

In this story, we going to learn, step by step, two ways to migrate an RDS Database to the Same AWS Region and AWS Account, using AWS Console and the new KopiCloud Move RDS tool, without downtime (*).

Note: For this example, we will SQL Server as RDS engine, however this process is applicable to other RDS databases engines, but not for clusters.

When we need to move an existing RDS SQL Server database (or other RDS engine) the process is pretty complex, in particular when you need to move to another AWS Account.

There are 4 different scenarios, when we will look to copy/move/migrate an RDS…

Image for post
Image for post
Image by Tim west from Pixabay

We introduced support for AWS Session Tokens on our new KopiCloud AWS Automation Tools recently, and in this story, we will learn how to use them to authenticate to our tools or any tool that support AWS Session Tokens.

So, what are AWS Session Tokens? They are a set of temporary credentials for an AWS account or IAM user. The credentials consist of an Access Key ID, a Secret Access Key, and a Security Token.

Configuring AWS Command Line Interface (CLI)

The first step is downloading and installing the AWS CLI from

Then, we will set up the credentials using the aws configure command:

aws configure
AWS Access Key ID [None]: xxxxxxxxxxxxxxxxxx
AWS Secret Access Key [None]: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Default region name [None]: eu-west-1
Default output format…


Guillermo Musumeci

Certified AWS, Azure & GCP Architect | HashiCorp Ambassador | Terraform SME | KopiCloud Founder | Entrepreneur & Innovator | Book Author | Husband & Dad of ✌

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store