On-Premise Virtual Machine for Azure Automation DSC

On premise virtual machine for Azure Automation DSC

Here at PowerONPlatforms, we decided to have a play with Azure Automation on the Microsoft Azure Portal. One of the cool features  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 Accounts.

Written by

on

09 Oct 2015

Prerequisites 

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 (09/10/2015)

Download and install the latest version of Azure PowerShell CmdLets 

Adding the On-Prem VMs

Microsoft kindly provide us with all the instructions on the 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.

Add-AzureAccount
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 the your good to go!

Originally posted by Rafael Delgado on SysCtr.info

If you are looking for managed IT support and think you could benefit from PowerON’s consultancy services and solutions, please get in touch on +44800 302 9280.

Keep Up To Date – Join the Mailing List


Subscribe

The team are here to help

If there are any questions and want to learn more about PowerON’s services or Solutions, please get in touch and a member of the team will be in touch shortly. 

  • PowerON, Stanley Harrison House, York, YO23 1DE
  • 0800 3029280
  • info@poweronplatforms.com

Contact PowerON

Related resources

Don’t Aim for BAU – Aim Higher!

It’s tempting to get back to business as usual, but it’s not the best way forward. Now’s the time to review everything you rolled out during lockdown and look for cost-cutting or…

Using Microsoft Graph Explorer

Using Microsoft Graph Explorer – firstly, what is it? It’s a tool that helps you interact with Graph APIs such as Intune, but also provides a base for learning to develop apps and scripts…

Are you looking at Microsoft EMS in the NHS?

We’re running this short live webinar and Q&A session to discuss the options, opportunities and requirements you need to think about if you’re considering taking advantage of the key security services within the new M365 contract.