I have created a solution for this in TypeScript using the Aria Build Tools
https://github.com/vmware/build-tools-for-vmware-aria
public VcVirtualMachineGetVcCustomizationSpecItem(@notNull @notEmpty @required objVcVirtualMachine: VcVirtualMachine, @notNull @notEmpty @required strVcCustomizationSpecName: string): VcCustomizationSpecItem {
this.objLogger.info(`Trying to get custom spec item by name ${strVcCustomizationSpecName}.`);
let objVcSdkConnection: VcSdkConnection = objVcVirtualMachine.sdkConnection;
let objVcCustomizationSpecManager: VcCustomizationSpecManager = objVcSdkConnection.customizationSpecManager;
let objVcCustomizationSpecItem: VcCustomizationSpecItem = objVcCustomizationSpecManager.getCustomizationSpec(strVcCustomizationSpecName);
if (objVcCustomizationSpecItem) {
this.objLogger.info(`Customization Spec Item ${strVcCustomizationSpecName} found.`);
}
else {
this.objLogger.warn(`Customization Spec Item ${strVcCustomizationSpecName} not found.`);
}
return objVcCustomizationSpecItem;
}
------------------------------
Simon Sparks
Automation & Orchestration Consultant
VMware Professional Services CoE
North West England, UK, Europe
Broadcom Employee
------------------------------
Original Message:
Sent: Apr 04, 2024 03:26 PM
From: mayank_goyal
Subject: How to find which CustomizationSpec is used on the deployed machine?
Is there a good way to find the customizationSpec used during the provisioning of a VM from vRA or in the vSphere?