Use PowerShell DSC and Azure Automation to Create an Active Directory Domain

Because of the recent domain change of my blog, I decided to completely start over again with my lab in Azure. I’ve been working with Desired State Configuration Configs in Azure for quite a few years, but never used them for my own lab environment. It felt a bit overkill to do that, but now I wanted to start over and do everything right. This step-by-step installation guide explains how to create a DSC Configuration in Azure Automation and how to apply this on your domain controller in Azure. ...

22-07-2018 · 4 min · Jean-Paul van Ravensberg

Azure Automation - Cannot process argument transformation on parameter 'ConfigurationFunction'

Today I was working on an Azure project where the deployment of Azure resources needed to be automated. Problem You’ll see the following error message: ERROR: New-AzureRmResourceGroupDeployment : 7:27:39 AM - Resource Microsoft.Compute/virtualMachines/extensions 'test01/dscExtension' failed with message '{ "status": "Failed", "error": { "code": "ResourceDeploymentFailure", "message": "The resource operation completed with terminal provisioning state 'Failed'.", "details": [ { "code": "VMExtensionProvisioningError", "message": "VM has reported a failure when processing extension 'dscExtension'. Error message: \"The DSC Extension failed to execute: Cannot process argument transformation on parameter 'ConfigurationFunction'. Cannot convert value to type System.String..\r\nMore information about the failure can be found in the logs located under 'C:\\WindowsAzure\\Logs\\Plugins\\Microsoft.Powershell.DSC\\2.19.0.0' on the VM.\"." } ] } }' Solution This issue probably occurs when the ZIP file with the DSC config cannot be found. When you use a program like 7-Zip to zip your PowerShell script, it will create a ZIP file named Yourfile.zip instead of Yourfile.ps1.zip. All of the scripts I’ve found in the Quickstart Repository need a .ps1.zip extension. So don’t forget to check if your file with script has a .ps1.zip extension.

24-07-2016 · 1 min · Jean-Paul van Ravensberg