Automation

 View Only
  • 1.  Import VM folder structure from a csv function Get-InventoryPlus

    Posted Feb 09, 2021 12:48 PM

    I have created a csv report with the get-InventoryPlus function of the old vcenter folder structure to be able to export it with the following format:

    NameBluePath
    Folder_Name_1/Folder_new_datacenter/Folder_Name_1
    Folder_Name_2/Folder_new_datacenter/Folder_Name_1/Folder_Name_2

     

    The folder structure has a multiple levels. The code found has not worked:
    https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Export-Import-selective-Folder-structure/m-p/2588169

    https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Export-Import-Folder-Structure/m-p/529220#M18487

    https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Folder-migration/m-p/1635752#1334740

    Any recomendation?

    Thanks.



  • 2.  RE: Import VM folder structure from a csv function Get-InventoryPlus

    Posted Feb 09, 2021 01:14 PM

    You will have to expand a bit on the "The code found has not worked"
    Error messages?
    Folder created in the wrong place?

    Does the BluePath in the CSV reflect the full path to a folder?
    How are your VM & Template folders organised?