Sunday, June 5, 2022

Azure DevOps - 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

  1. configuration NewConfig
  2. {
  3. Node AllNodes
  4. {
  5. WindowsFeature IIS
  6. {
  7. Ensure = 'Present'
  8. Name = 'Web-Server'
  9. IncludeAllSubFeature = $true
  10. }
  11. }
  12. }

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.


Post a Comment