The vSphere Desired State Configuration(vSphere DSC) is an open-source project lead by the VMware PowerCLI team. The project got started in 2017, and since then, it is keep growing. Today, we are excited to announce the release of vSphere DSC 2.2. This release brings various enhancements and increases the overall count of vSphere DSC resources to 73 compared to 67 from the previous release.
I also have another great piece of news for all of you. The vSphereDSC is now fully supported on Linux platforms and does not mandate you to set up a windows box to execute vSphereDSC resources.
New DSC Resources
Below are some of the new DSC resources which have been introduced with this release.
- DatastoreCluster: Create, modify, update, or remove Datastore cluster
- DatastoreClusterAddDatastore: Add Datastore to a datastore cluster
- DRSRule: Create, modify, update, or remove DRS rules.
- VMHostVdsNic: Modify, update, or remove a ‘VMKernel nic’ on a vSphere Distributed switch.
- VMHostStorage: Enable or disable the software iSCSI adapter.
- VMHostIScsiHbaVMKernelNic: Used to bind/unbind VMKernel Network Adapters to/from the specified iSCSI Host Bus Adapter.
Bugfixes
- VMHostVDSwitchMigration: Fixed the bug to allow multiple vmnic to be migrated to a dvSwitch
- VMHostVssTeaming: Fixed bugs with physical network adapters when updating the teaming policy of the standard switch.
- NfsDatastore: Fixed the bug, to allow mount operation on the VMhost if the NFS datastore already present.
Install/Update VMware vSphereDSC Module
Execute the below command to install or update the vSphereDSC module from PowerShell Gallery.
Install
1 |
Install-Module -Name VMware.vSphereDSC |
Update
1 |
Update-Module -Name VMware.vSphereDSC |
VMware.PSDesiredStateConfiguration module
The vSphere DSC is a PowerShell DSC-based module that provides DSC resources for VMware vSphere. The PowerShell DSC enables IaC (Infrastructure as a Code) approach to author and build infrastructure as per the desired state configuration.
The PowerShell DSC has an important component known as Local Configuration Manager (LCM), the PowerShell DSC execution engine. The vCenter Server and ESXi host don’t have PowerShell and LCM installed and we had the compulsion of using a windows server to act as a proxy LCM server.
Recently, Microsoft has introduced a new cmdlet, Invoke-DSCResource, which allows you to execute DSC resources without a PowerShell LCM engine. We have leverage Invoke-DSCResource capabilities and introduced a new module VMware.PSDesiredStateConfiguration, to execute the vSphereDSC resources. The module is fully compatible with both Windows and Linux platforms and allows you to execute vSphereDSC resources without using the PowerShell LCM engine.
Please note that you can either choose to run vSphereDSC with a PowerShell LCM engine or VMware.PSDesiredStateConfiguration module.
Execute the below cmdlet to install VMware.PSDesiredStateConfiguration
1 |
Install-Module -Name VMware.PSDesiredStateConfiguration |
Let’s take a look at the new cmdlets introduced along with this module.
New-VmwDscConfiguration
This cmdlet creates a VmwDscConfiguration object which contains information about the configuration. You can document the configuration with a .ps1 file and pass the configuration document as a parameter to this cmdlet.
This object is then used with the other cmdlets to perform the three primary DSC operations(GET, START, TEST).
Example:
1 |
$config = New-VmwDscConfiguration -Path ./Site-A.ps1 |
Start-VmwDscConfiguration
This cmdlet starts the DSC execution with the PowerShell object, which was created using the New-VmwDscConfiguration cmdlet.
Example:
1 |
Start-VmwDscConfiguration -Configuration $config |
Test-VmwDscConfiguration
This cmdlet check the compliance of your vSphere infrastructure against a DSC configuration.
Example1:
1 |
Test-VmwDscConfiguration -Configuration $config |
This will return a Boolean result that shows if the state is desired or not.
Example 2:
If you want a detailed result in which every resource state is shown you can use the optional -Detailed switch for the Test-VmwDscConfiguration cmdlet.
1 |
Test-VmwDscConfiguration -Configuration $config -Detailed |
Advantages of using VMware.PSDesiredStateConfiguration module
vSphere Nodes
A new construct, vSphereNode is introduced which allows you to specify a VINode(vCenter or ESXi host) and apply DSC configurations directly to the respective vSphereNode.
Note: vSphereNode construct is supported from PowerShell core (PS7).
Persistent VI session
With the PowerShell LCM engine, each resource required a server name (vCenter or ESXi host), and its credential to establish a VISession. If you have 3 resources in a configuration, DSC will create a separate VISession for each resource.
With Vmware.PSDesiredStateConfiguration creates a persistent VISession across all the DSC resources and removes the need to have a separate VISession for each vSphereDSC resource.
No more MOF files
New-VmwDSCconfiguration cmdlet executes the DSC resources without involving the PowerShell LCM engine and does not create any ‘mof’ file. The configuration can be complied with and stored in a PowerShell variable.

Important Links
- VMware.PSDesiredStateConfiguration
- vSphere Node
- Check out the vSphere DSC Project on GitHub
- Submit an Issue or Feedback
Conclusion
The new VMware.PSDesiredStateConfiguration module and the ability to execute vSphereDSC from a Linux platform provide greater flexibility of consuming the vSphereDSC resources.
We would like to thank our community members and customers for sharing the required feedback, new feature request, and issues with us. We request you to start using the vSphereDSC resources and let us know what more we can do here. Happy to hear your thoughts!
I absolutely enjoy your educational information. I’d want to join your group, and I am now discussing government employment, personal loans, hot subjects, and item Full form. I appreciate your efforts once again.
Hi Arthur. If you are interested in the topic of personal loans and finance, I know that you can be useful. This is fitmymoney.com financial site. Here you will find information and articles for every taste.
Super news – thanks for all
It is important The new VMware.PSDesiredStateConfiguration module and the ability to execute vSphereDSC from a Linux platform provide greater flexibility https://goodstyle.app/
I absolutely love this! I learned a lot from this article!
With the PowerShell LCM engine, each resource required a server name (vCenter or ESXi host), and its credential to establish a VISession. I absolutely enjoy your educational information. I’d want to join your group, and I am now discussing government employment, personal loans, hot subjects, and item Full form. I appreciate your efforts once again.
In my opinion with the PowerShell LCM engine, each resource required a server name (vCenter or ESXi host), and its credential to establish a VI Session. What do you say about this?
https://www-krogerfeedbacksurvey.com/
Now Just Take the “voucher code” from your receipt.
If you do not find the code printed on your valid receipt, Click on the link https://www-krogerfeedbacksurvey.com ” If you do not have a 26-digit code printed on your receipt, click here” Customers can see the form with 6 boxes to take the voucher code and secure it and Complete.
Its nice to see much updation in technology since few years back it feel good. What do you say about my opinion?
I absolutely enjoy your educational information.
Hello, Arthur. I know you can be handy if you are interested in personal loans and finance. This is the financial website easyqualifymoney.com. You’ll discover information and articles to suit every taste here.
Hello, Arthur. I know you can be handy if you are interested in personal loans and finance. This is the financial website fitmymoney.com. You’ll discover information and articles to suit every taste here.
Seems like you can just comment about whatever you think is good.
I like roasted beef sandwiches. Maybe I could use DSC to finance my sandwich lifestyle choice.
Le me know
a
Super news – thanks for all
I know you can be handy if you are interested in personal cash loans and finance. This is the financial website fitmymoney.com. You’ll discover information and articles to suit every taste here.
I absolutely love this! I learned a lot from this article! Thanks!
I know you can be handy if you are interested in personal loans and finance. This is the financial website financedepot.net. You’ll discover information and articles to suit every taste here.
Thanks for the interesting information, I really enjoyed reading this article!
The new version of vSphereDSC is really great, be sure to use it.
very good site great work i like this site..
This statement is announcing the release of a new version of the vSphere Desired State Configuration (vSphere DSC), which is an open-source project led by the VMware PowerCLI team. It mentions that the project started in 2017 and since then it has been growing. The statement also highlights that this new release version 2.2 brings various enhancements, and the overall count of vSphere DSC resources has increased to 73 compared to 67 from the previous release. This is noteworthy as it shows the development team is actively working on it and providing more resources to the users. This is a positive development for users of the vSphere DSC, as it means they will have access to more features and capabilities, which will make their experience with the product even better.
With vSphere DSC, you can ensure that your infrastructure is configured in a consistent manner across all of your virtual machines. This consistency can help reduce errors and increase overall reliability.
For those working in the creative sector and DIY enthusiasts who need precise cutting for their projects, the Cricut machine is a crucial tool. It can easily cut through a variety of materials, including leather and textiles. Visit design.cricut.com/setup to complete the machine setup, which is simple to do.
With its capacity to cut materials precisely, the Cricut machine may change your creative efforts, making it an invaluable tool for DIY enthusiasts and artists. Leather and fabrics are among the many things that it can cut through. Visit cricut.com/create. to learn how simple it is to set up the machine.
This is a really amazing post and I really like it. It is full of useful information that anyone can benefit from.
thanks for sharing this resource! going to test this very soon and update my feedback here.
Thank you for releasing updates and instructions for your software and making other developers’ lives happier