Automating the world one-liner at a time…
The PowerShell DSC Resource Kit Wave 5 is now available for your use. This wave contains 10 new DSC resources, taking us up to 77 total resources between the Resource Kits and what is shipping in Windows 8.1/Server 2012 R2. In response to a number of requests, DSC Reskit Wave 5 also includes an end-to-end example, with a configuration for WordPress deployments.
Here’s a link to the updates in DSC Resource Kit Wave 5. You can also find them by using PowerShellGet.
In addition to the new resources and the example configurations, we have also made some updates to existing resources based on feedback we have received. As a result, we have updated several of the modules, all of which will show up using the link above.
If you're looking into using PowerShell DSC, but are blocked by a lack of particular resource provider, let us know in the comments or the TechNet QA Section.
What's in this Wave?
This wave has added the following
As always, we must reiterate that these resources come without any guarantees. The “x” prefix stands for experimental – which means these resources are provided AS IS and are not supported through any Microsoft support program or service. We willmonitor the TechNet pages, take feedback, and may provide fixes moving forward. Also, don’t forget to check out the community versions of many resources on PowerShell.Org's GitHub.
After installing the modules, you can discover all of the resources available by using the Get-DSCResource cmdlet. Here is a brief description of each resource (for more details on a resource, check out the TechNet pages).
This DSC Composite Configuration allows you to configure an IIS site to run WordPress and set the contents of the WordPress configuration file.
This DSC Resource allows you to configure a WordPress Site
This DSC Resource allows you to Setup PHP in IIS. This is used in the xWordPress examples.
DSC Resource allows you to configure a MySQL server
This DSC Resource allows you to configure a MySql Database.
This DSC Resource allows you to configure a MySql User.
This DSC Resource allows you to configure a MySql Grant (permissions).
This DSC Resource allows you to configure a MySql Server, with a database, and a user, and grant to that database for that user.
This resource allows configuring Windows Optional Features for Windows client SKUs
This enables registration of modules (such as FastCgiModules) with IIS
Handles installation of a Windows update (or a hotfix) from a given path (file path or a URI)
Minor updates & bug fixes have been made for these.
When making changes to these resources, we urge the following practice:
We reserve resource and module names without prefixes ("x" or "c") for future use (e.g. "MSFT_WebAdministration" or "Website"). If the next version of Windows Server ships with a "Website" resource, we don't want to break any configurations that use any community modifications. Please keep a prefix such as "c" on all community modifications.
As specified in the license, you may copy or modify this resource as long as they are used on the Windows Platform.
The other components of the DSC Resource Kit requires at least Windows 8.1 or Windows Server 2012 R2 with update KB2883200 (aka the GA Update Rollup). You can check whether it is installed by running the following command:
For most modules, you can use them on supported downlevel versions of Windows by installing WMF 4.0. Refer to these previous blog posts for more information on WMF 4.0 and issues with partial installation. You can confirm the requirements for each module on the individual blog topics that provide the details for the module.
Please add SSH, SCP and SFTP support in Windows via PowerShell. This means no disrespect to Microsoft's remoting solutions but in full honesty those protocols are far more famous in the world.
You guys can implement those protocols and win hearts of millions worldwide using Windows and dealing with Linux servers in their day jobs.
Installing Cygwin, WinSCP, Putty or Mingw etc. is far more annoying solution for those simple straight-forward protocols. Built-in support for those three protocols will "ONLY" reflect goodness and shows that Microsoft cares for all sorts of consumer scenarios.
Thank you in advance for reconsidering this decades old stubborn decision and doing the right thing finally.
- P. Finney
Would like to recommend DSC to customers, but in many scenarios, I'm working with Microsoft System Center 2012. As far as I know, there are not any DSC resources defined for System Center products.
Microsoft MVP: PowerShell