上QQ阅读APP看书,第一时间看更新
Removing an ESXi image profile
Starting with the vSphere Image Builder 5.1, there is a cmdlet Remove-EsxImageProfile
to remove an image profile. The command and its syntax remain the same with vSphere Image Builder 5.5 as well.
How to do it...
The following procedure will guide you through the steps required to remove/delete image profiles:
- Issue the command
Get-EsxImageProfile
to list all the available image profiles. - Identify the image profile to be deleted. In this example, we will delete the image profile
Profile001
. - Issue the
Remove-EsxImageProfile
command to delete the image profile:Remove-EsxImageProfile –ImageProfile "Profile001"
How it works...
The Remove-EsxImageProfile
command will only delete the image profile from the current vSphere PowerCLI session. However, it is important to know that you can't remove an image profile from a read-only software depot. For example, the predefined image profiles available in the ESXi offline bundle cannot be removed.