VMware Aria Automation Tools

 View Only
  • 1.  How to find which CustomizationSpec is used on the deployed machine?

    Posted Apr 04, 2024 03:27 PM

    Is there a good way to find the customizationSpec used during the provisioning of a VM from vRA or in the vSphere?



  • 2.  RE: How to find which CustomizationSpec is used on the deployed machine?
    Best Answer

    Posted Apr 15, 2024 02:51 PM

    Probably I was silly not seeing it.

    It's there in custom Properties.

    var custSpec = customProperties.customizationSpec;



  • 3.  RE: How to find which CustomizationSpec is used on the deployed machine?

    Broadcom Employee
    Posted Jan 04, 2026 02:20 PM

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