Managing host profiles
In Chapter 3, Deploying vSphere Hosts we touched upon host profile concepts. In this section, we will go more in-depth on the topic. To manage host profiles, we can use the following cmdlets:
Export-VMHostProfile
Get-VMHostProfile
Get-VMHostProfileRequiredInput
Import-VMHostProfile
Invoke-VMHostProfile
New-VMHostProfile
Remove-VMHostProfile
Set-VMHostProfile
Test-VMHostProfileCompliance
We have already checked how we can utilize the New-VMHostProfile
, Get-VMHostProfile
, and Invoke-VMHostProfile
cmdlets.
Here is a set of examples to show you the preceding cmdlets:
Here are the explanations of the preceding cmdlets.
In the first Export-VMHostProfile
cmdlet, we are taking a backup of the profile Configuration-Profile
in the C drive. Note the extension of the profile; it is saved as a .vpf
file.
In the second cmdlet, we are removing an existing profile Configuration-Profile
using the Remove-VMHostProfile
cmdlet. Next we run the Get-VMHostProfile
cmdlet to check whether...