/images/avatar.png

Shawn Timewell

Sysadmin by day. Father, Husband, and aspiring DevOps Professional by Night

VSphere 8.0 Continued

Prerequisites Configured ESXi Host Basic PowerShell Knowledge PowerCli Installed Windows Server 2022 Evaluation ISO Download link VMWare’s VMRC Installed Download link Connecting to ESXi host 1 $eSXi01Root = Get-Credential root 1 Connect-VIServer -Server '10.0.1.50' -Credential $eSXi01Root Copying ISO to Datastore Get-PSDrive To find out the datastore path we’re going to use Get-PSDrive. 1 Get-PSDrive 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 Name Used (GB) Free (GB) Provider Root ---- --------- --------- -------- --- Alias Alias C 418.

VSphere 8.0 Install & Configuration

Prerequisites VMware vSphere 8.0 ISO Sign-up on VMWare’s site here to download the evaluation copy USB Drive Hardware that meets VMware’s Compatibility Guide VMware’s PowerCLI PowerShell module VMware Docs for installation GUI Installation Welcome To the VMware ESXi 8.0.1 Installation Press Enter at this screen to continue End User License Agreement (EULA) Press F11 to Accept and Continue to progress Select a Disk to Install or Upgrade Choose which disk you want to install the OS.

PowerShell Secrets

PowerShell Secrets Installation Microsoft’s Installtion Guide Creating a Vault and adding a secret Register SecretVault 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 Read-Host -AsSecureString | Export-Clixml -Path C:\Temp\TTELAB.xml -Force $secureVaultPasswordPath = 'C:\Temp\TTELAB.xml' Register-SecretVault -Name TTELAB -ModuleName Microsoft.PowerShell.SecretStore -DefaultVault $vaultUnlockPassword = Import-CliXml -Path $secureVaultPasswordPath Unlock-SecretStore -Password $vaultUnlockPassword $storeConfiguration = @{ Authentication = 'Password' PasswordTimeout = 3600 # 1 hour Interaction = 'None' Confirm = $false } Set-SecretStoreConfiguration @storeConfiguration Create a Secret 1 2 3 $TTEESX01 = Get-Credential root Set-Secret -Name 'TTE-ESX-01' -Secret $TTEESX01 Use a secret in a script Provisoning a new VM