VMware Cloud Community
Almero
Enthusiast
Enthusiast
Jump to solution

NOOB needs expert guidance for generating one HTML from a Foreach Cluster

HI Team , please help me , I am not experienced enough to make this work . I read 100s of articles , and assume I need some sort of function with return values . No idea how to do that .

This script simply looks at total resources per cluster minus assigned VMs , then some bits for vSphere HA .

    Tags (1)
    0 Kudos
    1 Solution

    Accepted Solutions
    LucD
    Leadership
    Leadership
    Jump to solution

    Move the definition of the array $report and the creation of the HTML file outside the loop.


    Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

    View solution in original post

    0 Kudos
    3 Replies
    Almero
    Enthusiast
    Enthusiast
    Jump to solution

    Forgot to say it is currently making a new HTML for each loop/cluster , I need all the values to be rolled up into ONE HTML page.. PLEASE .

    0 Kudos
    LucD
    Leadership
    Leadership
    Jump to solution

    Move the definition of the array $report and the creation of the HTML file outside the loop.


    Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

    0 Kudos
    Almero
    Enthusiast
    Enthusiast
    Jump to solution

    Now that's some outside the box/loop thinking . As always , you are the man !!!

    0 Kudos