Onboarding On-Premise Virtual Machine for Azure Automation DSC

It’s community Friday here at PowerONPlatforms so decided to have a play with Azure Automation  on the Microsoft Azure Portal. One of the cool features of Azure Automation is the ability to have an on-premise virtual machine as a DSC node.

The following steps go through how to create a DSC node from your on-premise environment as a resource for your Azure Automation Accounts.


For this example you’ll need to allow your desired DSC node outbound access to the internet. 
Download and install latest version of WMF 5.0 (Currently in production preview can be downloaded here 09/10/2015).
Download and install the latest version of Azure PowerShell CmdLets (Can be found here)
Adding the On-Prem VMs
Microsoft kindly provide us with all the instructions on the Azure Portal. For this example I have one node I’m adding and running everything on this machine.
1. Run Microsoft Azure PowerShell as Administrator.
2. Connect to the Azure Resource Manager.
Switch-AzureMode AzureResourceManager

3. Supply your Microsoft Azure credentials.

Note: You’ll need to supply your azure credential. I had to temporarily turn off enhanced protection on the server to get the page to display correctly.

3. Download the DSC metaconfiguration for the machine you want to onboard and for the Automation Account to wish to add. 
Get-AzureAutomationDscOnboardingMetaconfig -ResourceGroupName  -AutomationAccountName  -ComputerName PONSMA01 -OutputFolder C:Users%username%Desktop

4. Apply the metaconfiguration to the machine.

Set-DscLocalConfigurationManager -Path C:Users%username%DesktopDscMetaConfigs -ComputerName 

5. Go to portal.azure.com and verify your node is available.

Leave a Reply

Your email address will not be published. Required fields are marked *