Create a Windows VM and open port number 80. Create a resource Automation ( if not found add from the marketplace) Create an Automation ...
Create a Windows VM and open port number 80.
Create a resource Automation ( if not found add from the marketplace)
Create an Automation account (let's say myacc in valid subscription and Resource Group).
Create a PowerShell file NewConfig.ps1
- configuration NewConfig
- {
- Node AllNodes
- {
- WindowsFeature IIS
- {
- Ensure = 'Present'
- Name = 'Web-Server'
- IncludeAllSubFeature = $true
- }
- }
- }
Once the Automation Account is created then click on the State Configuration. and on the right-hand panel click on configuration--> Add Button and upload the above config file.
Compile the Config by clicking on the compile button(it will take 4-5 mins).
Add the Node By selecting Node and Click on Add button
Select the VM that you need to configure for Automation
Click on Connect button.
Select the Primary key configuration as the config which is configured on Automation account.
COMMENTS