Select Page

Using PowerShell DSC in Azure

Most of my DSC blog posts target on-premise or remotely accessed VMs which most of the times are in Azure. While everything is fine and dandy when you’re running PowerShell / PowerShell DSC on your local infrastructure, but when it comes to Azure, you might need to rethink your strategy a bit.
(more…)

ARM Templates for creating custom image VMs in Azure

If you worked with Azure for a long time, you know that when you wanted to upload your own custom VM image to Azure, it was an easy thing. You prepared the VM, you sent it to Azure using PowerShell and after that you tagged it as an OS disk and that was it. Well that was the old way using the Azure Service Manager which I must say it was quite an easy procedure. With Azure Resource Manager, things changed quite a bit. You still have the possibility of uploading the VHDs to Azure but the deployment requires a little more work. You have to write code for that deployment to happen, be it in PowerShell or JSON. In this blog post I’m going to give you two ARM templates which you can use to deploy your freshly uploaded VHDs.
(more…)

PowerShell DSC – Writing Configurations

In my previous articles (DSC on Linux & Building a DSC Pull Server), I discussed about installing and configuring DSC on Linux machines, and after that I talked about creating your very first DSC Pull Server, which grants you the capability of serving configuration documents and resources to both Windows and Linux machines. In this blog post I will be talking about writing configuration files and about the methods that you could leverage the code you wrote in order to write once and use it on multiple machines.
(more…)

PowerShell DSC – Building a Pull Server on WMF 5

I wanted to write this post back in December when WMF 5.0 got released but I decided to put it off because a week after release, Microsoft removed the packages from the Download Center because of a nasty bug that reset the PSModulePath settings to default (blog post). So after a two months wait, Microsoft re-released the WMF 5 packages that contain the PSModulePath fix which you can get from here. If you installed WMF 5 before it got pulled, you will have to uninstall KB3094174, KB3094175, and KB3094176 and then install the new ones that just got published.
(more…)

Installing and Using PowerShell DSC on Linux

In the last two weeks I’ve been playing with PowerShell DSC for Linux and truth to be told I’m impressed on how stable it is since the last time I tried it. I started trying DSC for Linux first it came out and to be honest while it was nice, the bugs didn’t help that much and I always came up with something that made me revert back to a previous checkpoint be it compiling the OMI and DSC, pushing a configuration or breaking the OMI server after fiddling around the configuration files but hey that’s what you get when you’re trying out bleeding edge stuff right?
(more…)

Pin It on Pinterest