In this example, we will use a simple DSC configuration that looks for the IIS Windows feature:
- Open a text editor, such as PowerShell ISE or Notepad ++.
- Enter the following simple Web Server (IIS) configuration into the editor and save it as DSCConfig.ps1:
configuration DSCConfig{ Node WebServer { WindowsFeature IIS { Ensure = 'Present' Name = 'Web-Server' IncludeAllSubFeature = $true } } Node NotWebServer { WindowsFeature IIS { Ensure = 'Absent' Name = 'Web-Server' } } }
- Navigate to the Azure portal at http://portal.azure.com and sign in.
- In the Azure portal, type Automation Accounts and select and open your Automation account.
- In Automation Account page, select DSC Configurations and click ...