FAQ Database Discussion Community


PowerShell DSC - not installing nested components for Web-Server

powershell,dsc
I have written PowerShell DSC Configuration. It works but not as expected. I am trying to install Web-Server and other features underneath it. When i am running the script, it only installs Web Server (IIS) and nothing else. This is how my Configuration looks like: $MyConfigData = @{ AllNodes =...

DSC with xActiveDirectory: Verification of prerequisites for Domain Controller promotion failed

azure,active-directory,dsc,domaincontroller
I'm starting to become a big fan of "Desired State Configuration" (DSC). Great work so far, guys! Im using the "xActiveDirectory" script (https://gallery.technet.microsoft.com/scriptcenter/xActiveDirectory-f2d573f3) published a few weeks ago. As soon as the VM is deployed in Azure, I get the following error: Job {860932CF-ECE2-11E4-80BB-0003FF54BC14} : This event indicates that a...

How do I disable automatic updates for Azure VM extensions?

powershell,azure,azure-virtual-machine,dsc
We have a few VMs in Azure and we rely on the PowerShell DSC extension to deploy our code to the machines. I want to make sure that this extension is not updated automatically so that our code that uses functionality from this extension don't break without we knowing about...

Windows Server 2012R2 Core - can't run powershell DSC

powershell,windows-server,dsc
After installing a fresh Windows Server 2012R2 Core installation I created a sample DSC to test and received: Term "Setup" is not recognized as a name ... c:\src\dsc.ps1 Configuration Setup { Node . { WindowsFeature "IIS" { Ensure = "Present" Name = "Web-Server" } } } C:\src> .\dsc.ps1 C:\src> Setup...