Overview

Flow diagram for VMWare Assessment FLow Diagram

Let's have a look on each step of VMWare assesement.

Run VCenter Discovery

VCenter Discovery will help to identify running VMs and also identify the zombie hosts. It will also help to import csv for discovery.

Prerequisites for VCenter Discovery


Steps to get host information

.\HostInformation.ps1 -vCenterServer <VCenterServerIP> -vCenterUser <vCenterUser> -vCenterPassword <vCenterPassword> -csvFilePath <C:\Users\Administrator\Downloads\VCenterVMData.csv>
Name Host name Powerstate Num CPU Memory GB IP Address Zombie Provisioned Storage Configured OS avgCpu avgMem avgNet Stop Date Days Stopped Comment


Steps to import host csv

.\HostCSV.ps1 -vCenterServer <vCenterServerIP> -vCenterUser <vCenterUser> -vCenterPassword <vCenterPassword> -csvFilePath <C:\Users\Administrator\Downloads\VCenter_HostCSV.csv>
Project OS Type Host IP Address Alias Username Port Connection Type Vault

NOTE : If there occurs any issue, refer the troubleshoot section


Discover Nodes


Perform Netwatch


Identify the Application Candidates


Export DART Report


Export CSV Data

The csv can be downloaded for including all projects or single project.The csv can be downloaded using below link

The downloaded zip folder will contain the below listed csv

- applicationCandidates.csv
- applications.csv
- components.csv
- hosts.csv
- packages.csv


Create PPT with provided template

Modify the master excel to use the csv


Troubleshooting

NOTE: To verify the version of PowerCli Module, run below command

Get-Module VMware.PowerCli* -ListAvailable

Output: Version used to verify the scripts is: 13.3.0


Error: Client20_ConnectivityServiceImpl_Reconnect_CertificateError OR Connect-VIServer. Error:Invalid server certificate. Use Set-PowerCLIConfiguration to set the value for the InvalidCertificateAction ....

Resolution: Run below powershell command before script execution

Set-PowerCLIConfiguration -InvalidCertificateAction Ignore -Confirm:$false


Error: Script is not digitally signed. You cannot run this script on the current system

Resolution: Run below powershell command before script execution

Set-ExecutionPolicy -Scope Process -ExecutionPolicy Bypass


Error: The following commands are already available on this system:'Export-VM,Get-VM,Get-VMHost,Move-VM,New-VM,Remove-VM,Restart-VM,Set-VM,Set-VMHost,Start-VM,Stop-VM,Suspend-VM'. This module 'VMware.VimAutomation.Core' may override the existing commands. If you still want to install this module 'VMware.VimAutomation.Core', use -AllowClobber parameter.

Resolution: This error occurs if certain VMware utilities are already installed on the VM. It will be a good idea to override the old installation with latest version. Run below powershell command

Install-Module -Name VMware.PowerCLI -Scope CurrentUser -AllowClobber