Menu

Virtual Geek

Tales from real IT system administrators world and non-production environment

Blog posts : "vCenter Server"

Get VMware vCenter Appliance Version using Broadcom PowerCLI VCSA REST API

This PowerShell script uses VMware vCenter Server Rest API and shows VCSA (vCenter Server Appliance) version through the command line. Keeping track of your vCenter Server Appliance (VCSA) version is crucial for effective management and update. Simply provide your vCenter credentials, and the script…

Read more

Install VMware VCSA Patch Upgrade using PowerCLI vCenter REST API

This is the main script in the series and does major task of Installing the latest patch update on VCSA (VMware vCenter Server Appliance).

Screenshot of Install Broadcom VMware VCSA Patch Upgrade using PowerCLI vCenter server REST API

While running this script you will need to provide vCenter Server, User, Password, Version (Optional), Patch URL parameter information in the script, a…

Read more

Check VCSA Upgrade Staging Progress using PowerShell vCenter REST API

While staging patches update on the VCSA (vCenter Server Appliance), it takes some time to download updates on vCenter Server from remote source. Using this script I can track whether staging is completed or not. It simply shows value true or false for Staging Completed in the given output. I found …

Read more

Leveraging PowerShell to Stage VCSA Updates via vCenter REST API

Staging in VMware VCSA (vCenter Server Appliance) allows you to upload/download patches and updates, In the staging process it does not directly install or apply the patches/updates immediately but just copies patch updates on VCSA appliance. Which allows for a faster remediation process during upda…

Read more

Retrieve VCSA vCenter Version with PowerShell REST API

This PowerShell helps to fetch the current version of  VCSA (VMware vCenter Server Appliance). This information is useful while automating VCSA upgrade, It is fetched used from VCSA REST API.

Screenshot of a PowerShell console running 'Show-VCSACurrentVersion.ps1'. The output shows 'Appliance Update Status:', 'Latest Query Time: 08/04/2025 16:00:56', 'Current State: UP_TO_DATE', and 'Installed Version: 8.0.0.300400'.

In the vCenter Server Management portal you can see the Version in the update.

Screenshot of the vCenter Server Management interface, 'Update' tab. It shows 'Current version details' as 8.0.0.400. Below 'Available updates', an update for version 8.0.0.500 is listed as 'Staged', with 'Type: Fix', 'Release Date: Apr 10, 2025', 'Reboot required: Yes', and 'Severity: Critical'.

You can downlo…

Read more

PowerShell & VCSA: Checking for Pending & Latest Updates via REST API

This script helps me to get the latest available pending updates for VCSA in vCenter Server Appliance Management portal before stage and install. It shows all in dept information of pending update from local web repo website url. Which will be helpful to automate installation further with correct ve…

Read more

Configure VCSA Update Web Repository Settings with PowerShell and REST API

This PowerShell script helps to configure VCSA (vCenter Server Appliance) update settings. As a prerequisite I have already configured on prem web server based repository for vCenter updates, which I use to streamline updates/patches on vCenter server appliance (VCSA). To change repository web URL o…

Read more

Reset vCenter Server Appliance (VCSA) Forgotten Root Password Without Reboot

These steps help you to Reset VMware vCenter Server Appliance (VCSA) Forgotten Root Password, best part it does it without reboot means no downtime. First prerequisite for this is SSH must be enabled on VCSA server and Second part is you must know [email protected] account password to lo…

Read more

Modify Broadcom VCSA Management Schedule Backup Job using PowerCLI

This is VMware PowerCLI script helps to modify existing Backup Schedule in VCSA (vCenter Server Appliance). To manually edit existing backup schedule open vCenter Server Management portal with 5480 port. In the Backup click EDIT link and modify the settings. 

vCenter Server Backup Configuration screenshot showing backup schedule and activity Powercli  PowerShell automation devops

In the below PowerShell script, …

Read more

Configure vCenter Server Appliance Schedule Backup With VMware.PowerCLI

In my earlier article, I wrote a script to backup VCSA (Broadcom VMware vCenter Server Appliance) on demand using VMware.PowerCLI (PowerShell). In this article I want to have more automated way to setup a schedule job to have backup at scheduled time. To setup backup schedule in VCSA, login to vCe…

Read more

Automating vCenter Server Appliance Backups with PowerShell On Demand

It is a best practice to take backup before doing any update or patching of VCSA (VMware vCenter Server Appliance) or keeping regular backups of VCSA make it makes reliable incase of vCenter server failures. They can be restored easily from backup if required anytime. 

Note you will requir…

Read more

Performing vCenter Offline Updates Via Your On-Prem Web Server Securely & Seamlessly

Handling vCenter Server updates across multiple sites with limited internet access creates operational annoyances. Downloading ISO files for each instance, manually transferring them, and repeating the process for every vCenter consumes valuable time and resources for really big environments.

In …

Read more

Excel on Web Browser: Simple Guide for Reports & Dashboards

This is a Quick Guide on displaying Excel files in your choice of browser such as chrome, edge etc Instantly. 

Benefits of Using This Method:

  • Share and Collaborate Easily: A Web-Based Excel Viewer for Teams.
  • 100% HTML Code: Render Excel files directly in the browser.
  • Easy Update…

Read more

How to Upgrade VMware vCenter Server Using Lifecycle Manager (vLCM)

Upgrading your VMware vCenter Server is a crucial part of maintaining a secure and efficient virtualization environment. In this guide, we’ll walk through the process of upgrading a vCenter Server using VMware Lifecycle Manager (vLCM), highlighting each key step with screenshots and best practices…

Read more

Terraform clone virtual machine template in VMware vSphere vCenter Dynamic Content Part 2

This is improvised Terraform configuration scripts to clone Windows and Linux Template from VMware vCenter server. I have made few improvements in the configuration adding dynamic content block in the modules for network and disks. Another change is use variables, New VM information from csv file to…

Read more

How to PowerCLI VMware Snapshots Virtual Machines disks consolidation is needed

In earlier part Solved: VMware Snapshots Virtual Machines disks consolidation is needed I performed steps on vCenter Portal GUI. Here I will use VMware PowerCLI to perform the same steps to automate it. 

First step is to connect to vCenter server using command Connect-VIServer. Use below comm…

Read more

Solved: VMware Snapshots Virtual Machines disks consolidation is needed

I was cleaning up some datastore data due to storage space low. I found there were few old long snapshots exist on VMs. After deleting those old snapshots from VMware Virtual Machines I was seeing warning and information message on summary page Virtual machine disks consolidation is needed status

Read more

Update vCenter Server Appliance (VCSA) from VAMI portal

This is a step by step procedure updating vCenter Server Appliance (VCSA) using VAMI portal. Before making update to vCenter server make sure you properly backup vCenter server using article Backup VMware vCenter server using SMB protocol.  As I am testing update in DEV environment I have taken a s…

Read more

Staging vCenter Server Appliance (VCSA) updates using Rest API

This script is a another part of Upgrade vCenter Server Appliance (VCSA) with VMware PowerCLI. In this article I am using Rest API calls to update VCSA via VAMI. At the moment I am able to stage the updates, but installation of update to vCenter is not working. Once I get solution I will revise thi…

Read more

Ansible Deploy a VMware vSphere Virtual Machine from a Template

One of my teammates from another project had a requirement of deploying a clone VMware Virtual Machine from a template using Ansible. In the last hour additional requirements they wanted to process clones of multiple VMs with different types of operating system such as Linux and Microsoft Windows.…

Read more

20 blog posts

Blog Search

Page Views

13509487

Follow me on Blogarama