WilliamLam.com

  • About
    • About
    • Privacy
  • VMware Cloud
  • Tanzu
    • Application Modernization
    • Tanzu services
    • Tanzu Community Edition
    • Tanzu Kubernetes Grid
    • vSphere with Tanzu
  • Home Lab
  • Nested Virtualization
  • Apple
You are here: Home / Automation / Quick Tip - Convert VMware Cloud Foundation (VCF) Deployment Workbook XLSX to JSON

Quick Tip - Convert VMware Cloud Foundation (VCF) Deployment Workbook XLSX to JSON

02.17.2023 by William Lam // Leave a Comment

The deployment wizard for VMware Cloud Builder (CB) can accept either an XLSX or JSON configuration file that describes your desired VMware Cloud Foundation (VCF) deployment.


Interestingly enough, only an XLSX template is available for users to download, edit and then provide that back as user input. While I can appreciate the rich logic that has been built into the CB workbook, I personally would prefer to work with something a bit more straight forward like JSON, especially for the ability to easily source control via Git/etc.

I have been spending some time with VCF 4.5 and CB this week and I have always wondered if there was a way to convert to JSON format given an XLSX as the initial input. While poking around the logs, I noticed a reference to the following script /opt/vmware/bringup/scripts/json-generator.sh which is used by CB to convert an XLSX to JSON document.

For those that prefer to work with JSON, you can simply fill out the XLSX template once and then convert that to the equilvenet JSON using following instructions

Step 1 - SCP the completed XLSX document to CB. In my example, the XLSX document is called my-vcf-deploy.xlsx

Step 2 - Run the following command specifying the source XLSX, destination JSON and vcf-ems string for VCF deployment:

/opt/vmware/bringup/scripts/json-generator.sh my-vcf-deploy.xlsx my-vcf-deploy.json vcf-ems

Step 3 - SCP the generated JSON configuration file back to your local system and you can now use that as input to CB.

More from my site

  • VMware Cloud Foundation on Intel NUC?
  • VMware Cloud Foundation with a single ESXi host for Workload Domain?
  • Removing NSX CPU/Memory reservations when deploying a VMware Cloud Foundation (VCF) Management or Workload Domain
  • VMware Cloud Foundation with a single ESXi host for Management Domain?
  • Quick Tip - Inventory core count for vSphere+, vSAN+ & VCF+ Cloud Service

Categories // Automation, VMware Cloud Foundation Tags // VMware Cloud Foundation

Thanks for the comment! Cancel reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Search

Author

William Lam is a Senior Staff Solution Architect working in the VMware Cloud team within the Cloud Infrastructure Business Group (CIBG) at VMware. He focuses on Cloud Native technologies, Automation, Integration and Operation for the VMware Cloud based Software Defined Datacenters (SDDC)

Connect

  • Email
  • GitHub
  • LinkedIn
  • RSS
  • Twitter
  • Vimeo

Recent

  • Changing the default HTTP(s) Reverse Proxy Ports on ESXi 8.0 03/22/2023
  • Quick Tip - How to download ESXi ISO image for all releases including patch updates? 03/15/2023
  • SSD with multiple NVMe namespaces for VMware Homelab 03/14/2023
  • Is my vSphere Cluster managed by vSphere Lifecycle Manager (vLCM) as a Desired Image or Baseline? 03/10/2023
  • Interesting VMware Homelab Kits for 2023 03/08/2023

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 © 2023

 

Loading Comments...