WilliamLam.com

  • About
    • About
    • Privacy
  • VMware Cloud Foundation
  • VKS
  • Homelab
    • Resources
    • Nested Virtualization
  • VMware Nostalgia
  • Apple

Quick Tip - Retrieving vSAN File Share Network Permissions using vSAN API & PowerCLI

10.16.2024 by William Lam // Leave a Comment

When creating a new vSAN File Share, which is powered by vSAN File Services,  additional network access controls (no access, allow access from any IP or custom) can be configured.


To view the configured network permissions, users must expand each file share to get the relevant information. For those interesting in automating the retrieval of this information for reporting and/or compliance purposes, you can use the vSAN Management API and specifically the vSAN queryFileShares() API.

The vSAN File Share API can also be consumed through PowerCLI using the Get-VsanFileShare cmdlet, but the network permission configuration is not part of the default output which might lead users to believe this information is not available.

[Read more...]

Categories // Automation, PowerCLI, VSAN Tags // PowerCLI, VSAN

Quick Tip - Using PowerCLI to query VMware Tools Configuration at scale 

10.11.2024 by William Lam // Leave a Comment

One of the most powerful and versatile VM management capability in vSphere is the Guest Operations API, providing a rich set of operations from transferring files to/from the guest to running commands directly on the guest as if you were logged in!

An easy way to consume the Guest Operations API is via PowerCLI and using the Invoke-VMScript cmdlet, which I have extensively written about, showcasing all the creative ways this can be used to solve various automation challenges.

I recently came across a Reddit thread where the OP wanted to check to query for a specific VMware Tools configuration as part of the vSphere Security Configuration Guide and was looking for some help as logging into each and every system did not seem like a good idea, which it is NOT! 🙂

Any time you have a use case where you need to scale a specific operation (reading or writing) a change, you should consider Guest Operations API, you can easily use a single API to perform this operation at scale!

[Read more...]

Categories // Uncategorized Tags // guest operations, PowerCLI, vmware tools

Managing vSAN internet connectivity configuration using the vSAN API

07.12.2024 by William Lam // 5 Comments

I recently received an inquiry from a vSAN customer who was looking to disable the vSAN internet connectivity, which is used pull down the latest vSAN HCL catalog updates and is also used as part of enabling the vSAN File Services.


Rather than using the vSphere UI to disable this configuration, the customer was interested in automating this and was wondering if there was an API that can be used?

While I have explored a large part of the vSAN Management API, this is one area that I had not played with before, which also meant a good learning opportunity!

[Read more...]

Categories // Automation, PowerCLI, VSAN, vSphere 8.0 Tags // PowerCLI, VSAN

  • 1
  • 2
  • 3
  • …
  • 44
  • Next Page »

Search

Thank Author

Author

William is Distinguished Platform Engineering Architect in the VMware Cloud Foundation (VCF) Division at Broadcom. His primary focus is helping customers and partners build, run and operate a modern Private Cloud using the VMware Cloud Foundation (VCF) platform.

Connect

  • Bluesky
  • Email
  • GitHub
  • LinkedIn
  • Mastodon
  • Reddit
  • RSS
  • Twitter
  • Vimeo

Recent

  • VMUG Connect 2025 - Minimal VMware Cloud Foundation (VCF) 5.x in a Box  05/15/2025
  • Programmatically accessing the Broadcom Compatibility Guide (BCG) 05/06/2025
  • Quick Tip - Validating Broadcom Download Token  05/01/2025
  • Supported chipsets for the USB Network Native Driver for ESXi Fling 04/23/2025
  • vCenter Identity Federation with Authelia 04/16/2025

Advertisment

Privacy & Cookies: This site uses cookies. By continuing to use this website, you agree to their use.
To find out more, including how to control cookies, see here: Cookie Policy

Copyright WilliamLam.com © 2025

 

Loading Comments...