Failed to run PowerCLI command

You may see the following errors. “an assertion failure has occurred“ “The ‘connect-viserver’ command was found in the module ‘VMware.VimAutomation.Core’, but the module could not be loaded. For moreinformation, run ‘Import-Module VMware.VimAutomation.Core’.“ There are several possible reasons:

What is the time format in Bitbucket API?

I was trying to retrieve a report in a Bitbucket instance. The return from the API contains event dates. However, the value looks strange. It is something like 1680143775227. The format looks like Unix Epoch Timestamp. But it was converted to a far future time in any online converters. The .Net action [System.DateTime]::UnixEpoch.AddSeconds() threw an … Read more

Fixing Motor Unresponsiveness on Raspberry Pi Due to Grounding

The last time I wrote about Raspberry Pi was Connect to New Provisioned Raspberry Pi Less than $3, about six years ago. Time flies! Today, I will talk about a grounding issue.

Background and Troubleshooting

I recently purchased a powerful motor driver board. It supports two DC motors with encoders and other features. During the initial testing, I experienced weird behavior. As a cloud engineer, I find it interesting to learn about the physical world.

Read more

Connect-NsxtServer shows “Unable to connect to the remote server”

When you run Connect-NsxtServer in the PowerCLI, it may show “Unable to connect to the remote server“. Because the error message is a little bit confusing with other login issues. It’s not easy to troubleshoot. The actual reason is the NSX-T uses a self-signed certificate, and the PowerCLI cannot accept the certificate automatically. The fix … Read more

Move Terraform Providers to Other Folders

Create a new control file with the name .terraformrc or terraform.rc in your profile folder. Add the following lines: Create the folder .terraform.d/plugin-cache in your profile folder. The providers will be downloaded to the cache folder when you run terraform init. If you don’t want to create the control file in the profile folder. Alternative … Read more

Setup Terraform and Ansible for Windows provisionon CentOS

black server racks on a room

Provisioning Windows machines with Terraform is easy. Configuring Windows machines with Ansible is also not complex. However, it’s a little bit challenging to combine them. The following steps are some ideas about handling a Windows machine from provisioning to post configuration without modifying the winrm configuration on the guest operating system.