What an exciting past couple of weeks we had with VMworld announcements and contents. Now, we bring PowerCLI 12.1 release with some of the notable enhancements concerning vSphere.
We have now introduced new cmdlets for managing-
- vSphere Lifecycle Manager (vLCM)
- Cloud-Native Storage Volumes (CNS volumes)
- vSAN secure disk wipe
- vVOL Storage containers
- Workload Management Clusters
Also, we have enhanced our existing capabilities to support-
- Secure Encrypted Virtualization in New-VM and Set-VM cmdlets
- Content library- Support extended to allow uploading items from internet and datastore URLs
- Added support for Site Recovery Manager 8.3.1
- New features for VMware Cloud on AWS. Click here to know about the enhancement related to VMCOnAWS
And, there are plenty of improvements and bug fixes in our existing capabilities. Please check out the complete release notes here to know more details about what’s new with PowerCLI 12.1.
In this blog post, I am excited to demonstrate cmdlets related to managing vSphere Lifecycle Manager(vLCM). vLCM has been introduced with vSphere 7.0 and has generated a lot of interest among the vCommunity members. If you are new to the vLCM, I would recommend you check out this blog post.
Install/Update PowerCLI 12.1
Install
Execute below cmdlet to install the latest PowerCLI version.
1 |
Install-Module -Name ‘VMware.PowerCLI’ |
Update
Execute below cmdlet to update the latest PowerCLI version.
1 |
Update-Module -Name ‘VMware.PowerCLI’ |
Use-cases to manage vLCM via PowerCLI
There are three new cmdlets to manage vLCM and these are-
- Get-LcmImage
- Test-LcmClusterCompliance
- Test-LcmClusterHealth
Also, there are significant changes that have been made with cluster related cmdlets so that we can update vLCM related settings on a vSphere Cluster.
Let us see a few of the use cases in detail which demonstrate PowerCLI capabilities to manage vLCM.
Get-LcmImage
This cmdlet retrieves the vSphere Lifecycle Manager images available on a vCenter Server system. The cmdlet returns a set of vSphere Lifecycle Manager images that correspond to the provided filter criteria.
You can filter the LcmImages with an Image type (Baseline, VendorAddon, and Component), or you can also filter a specific version of a LcmImage.
Execute the below cmdlet to know more about Get-LcmImage.
1 |
Get-help Get-LcmImage -ShowWindow |
Create a New Cluster with vLCM enabled
You can now use the New-Cluster cmdlet to create a vSphere Cluster managed by a vLCM image. You can achieve this by specifying 2 additional parameters which are -BaseImage and -VendorAddon in order to create a vLCM cluster image. Please note that -Component parameter is not currently available and you can use Set-Cluster cmdlet to update your vLCM cluster image later on.
Ex. Below, PowerCLI cmdlets create a new vSphere Cluster named as ‘vLCM-Cluster’ and Manage the hosts within this cluster with a single vLCM image with 7.0 Update 1 ESXi.
1 2 |
$LcmImage= Get-LcmImage -Version "7.0 Update 1 - 16850804" New-Cluster -Location 'Lab' -Name 'vLCM-Cluster' -HAEnabled -DrsEnabled -BaseImage $LcmImage |
Enable vLCM on an existing cluster
Set-Cluster cmdlet allows you to specify -BaseImage , -VendorAddon , and -Component which allows you to update existing cluster and enables vLCM cluster Image.
Ex. Update the existing cluster to set a new vLCM image.
1 2 |
$UpdateLcmImage= Get-LcmImage -Version "7.0 Update 1 - 16850804" Get-Cluster -Name "Test-Cluster" |Set-Cluster -BaseImage $UpdatelcmImage |
Test-LcmClusterCompliance
This cmdlet tests cluster’s host’s compliance concerning its target state. You can test the specified cluster’s hosts for compliance with the cluster’s vSphere Lifecycle Manager desired state.
1 |
Get-Cluster -Name 'vLCM-Cluster'|Test-LcmClusterCompliance |
Remediate vSphere Cluster
Set-Cluster cmdlet now allows you to remediate the vSphere cluster against a vLCM desired image and ensure all the hosts are compliant with the vLCM desired image. This is done by specifying a new switch -Remediate
Ex.
In this example, ESXi hosts are running with ESXi 7.0, and cluster desired state is 7.0 update 1. The below cmdlet remediates a vSphere Cluster against any possible drift on ESXi hosts concerning a vLCM cluster image.
1 |
Get-Cluster -Name 'vLCM-Cluster' |Set-Cluster -Remediate -AcceptEULA -RunAsync |
List vLCM image details for all the vSphere Cluster
To report details of the vLCM cluster image, Use the below cmdlet. This example only shows the BaseImage version. You can modify this cmdlet to list VendorAddon and components details also on a vLCM enabled cluster.
1 |
Get-Cluster |Select name, @{n='BaseImageVersion';e={$_.BaseImage.Version}} |
To Conclude
Undoubtedly, PowerCLI is a proven platform to automate VMware infrastructure. Having vLCM capabilities delivered via PowerCLI allows you to automate the management aspects of vLCM and keep your infrastructure consistent with the vLCM cluster image.
More Information
vSphere 7 – Lifecycle Management
PowerCLI 12.1 – Product Release
New Capabilities in PowerCLI 12.1 for VMware Cloud on AWS
good news, thanks for the information provided
good news, thanks for the information provided
good news, thanks for the information provided
Is there a way to upload the updates programmatically; [vSphere -. Menu -> Life Cycle Manger -> Import Updates]?
If not it would help if the limitation is mentioned explicitely.
Install/Update PowerCLI 12.1 thanks for update. good.
good news, thanks for the information provided!
Fine way of describing, and nice article to take facts about my presentation topic,
What an exciting past couple of weeks we had with VMworld announcements and contents. Now, we bring PowerCLI 12.1 release with some of the notable enhancements concerning vSphere. We have now introduced new cmdlets for managing- vSphere Lifecycle Manager (vLCM) Cloud-Native Storage Volumes (CNS volumes) vSAN secure disk wipe vVOL Storage containers Workload Management Clusters. waiting for more updates. thank you
Thankful for an incredibly fascinating internet based diary. What else may I get that kind of data written in such an optimal procedure? I’ve an undertaking that I am basically now chipping away at, https://www.modelescortsindelhi.com/ and I have been at the post for such data.
Wonderful information, I would like to say thank you for providing this wonderful with all of us. I have an online pet shop Visit once
if you have time and also you have pet. i.e. ~ https://360petmart.com/
I am glad to share with you that you have written such a great blog and in last I just want to share with you that if you are looking for famous hospitals in kolkata, best hospitals in kolkata and others then you can consider Neuroncy. https://neuroncy.com/
I would like to say thank you for this wonderful information. Keep writing it’s really helpful for lot of people. I can also like to help people through my online pet shop. ~https://360petmart.com/
What is the benefits of the presets is here guys Which you like to retouch the photos as well as https://www.trendypreset.com/top-9-lightroom-hdr-presets-for-mobile-and-desktop/
A debt of gratitude is in order for sharing this data in blog and truly cherished this blog .
Wow! great blog post! this is interesting I’m glad I’ve been drop here, such a very good blog you have I hope u post more! keep posting.
Your article is awesome. It is exactly what I was looking for. I also want to recommend to everyone
I read your article in an instant. You have no idea how hard I’ve been trying to find a good article on this topic for a week. I think that’s why your writing shines more. Thank you so much for sharing good information. I’ll look for more of your posts. And I think my writing on the topic you wrote will help you. I hope you come to my blog and read it. 메이저토토사이트
Thank you for posting such a great information
This is indeed an interesting read. I love sharing the content I receive here, so much good information.
With years of experience, our trusted team of professionals can help you establish a manageable plan to satisfy your past due obligations and reduce the burden of debt.
You can definitely see your expertise in the paintings you write.
I have learn some just right stuff here.
Grey Rug is one of the most popular colors that these days there is a great demand for its use. Carpets and sofas are one of the most used examples of this beautiful color. In home furnishings, the choice of carpet color should be done with sensitivity and following the principles that can be read In this article, you can choose a beautiful carpet suitable for the decoration. In this article, we explain about the gray carpet and its harmony with the decoration, so stay with us until the end.
Gray carpet is one of the most popular colors that these days there is a great demand for its use. Carpets and sofas are one of the most used examples of this beautiful color. In home furnishings, the choice of carpet color should be done with sensitivity and following the principles that can be read In this article, you can choose a beautiful carpet suitable for the decoration. In this article, we explain about the gray carpet and its harmony with the decoration, so stay with us until the end.
Grey Rug
The web page you have shared contains a lot of information. I have accumulated a lot of information.
One of the best ways to start your night right is by choosing an escort girl who suits you perfectly. Visit our website now and search for the girl of your choice. We have a wide range of the most beautiful escort girls from various locations in Bangalore. Escorts in Bangalore are categorized according to their fee. The list below shows the different categories and the escort girls who belong to them. Brigade Road Escort ||
It is exactly what I was looking for. I also want to recommend to everyone
Cooking gas tank The commonly used are 1kg, 4kg, 7kg, 15kg, 48kg buckets, which may be called differently depending on the brand, such as a 4kg bucket
ขายเตาแก๊ส
Cooking gas tank The commonly used are 1kg, 4kg, 7kg, 15kg, 48kg buckets, which may be called differently depending on the brand, such as a 4kg bucket
ขายเตาแก๊ส
Hamed Safari is an author, entrepreneur, digital marketer, and web-based software developer. He founded Growces Digital marketing Agency.
Positive thinking is the way to go!
Hamed Safari is an author, entrepreneur, digital marketer, and web-based software developer. He founded Growces Digital marketing Agency.
wow super dear nice very nice post
Although the game’s creator, Crystal Dynamics, undoubtedly picked up a lot of useful information from the Uncharted series, Rise of the Tomb Raider has a significantly different feel than Nathan Drake’s adventures due to a greater emphasis on surviving dangerous environments.