#Author - Munishpal Makhija # =========================================================================== # Created by: Munishpal Makhija # Release Date: 02/28/2020 # Organization: VMware # Version: 1.0 # Blog: http://bit.ly/MyvBl0g # Twitter: @munishpal_singh # =========================================================================== ####################### Use Case ######################### ###### Generate an HTML Report for Deployments in vRA Cloud Environment / Org ###### It displays following details ###### Deployment Summary - Number of deployments per Project ###### Deployments Details - List all deployments per Project and list details such as projectid , name , id, createdBy, createAt, Status ###### Deployment Resources - For each successfull deployment display resource for e.g. One deployment can have Cloud Machine, Cloud Network ####################### Pre-requisites ######################### ###### 1 - PowervRACloud Version 1.1 ###### 2 - Connected to vRA Cloud using Connect-vRA-Cloud -APIToken $APIToken ####################### Usage ######################### ###### Download the script and save it to a Folder and execute ./vRACloudDeploymentsReport.ps1 ####################### Dont Modify anything below this line ######################### $Header = @" "@ $html = @() $deployments = @() $deploymentresources = @() $summary = @() $deploymentname = @() $date = Get-Date $user = whoami $deployments = Get-vRA-DeploymentFilters -filterId "projects" | Sort-Object Count -Descending $html += $deployments | select name,id,count | ConvertTo-Html -As Table -Fragment -PreContent "