Sunday, June 5, 2022

Azure DevOps - Custom Script Extension

 Create a windows virtual machine in the Azure portal and open port number 80

Create a PowerShell script (say the file name is iis.ps1) that installs the IIS server.

    1. import-module servermanager
    2. add-windowsfeature web-server -includeallsubfeature

Create a storage account and create a container to upload the above file.

Goto VM and select Extenstion + application and Add search for custom script and add the storage account which is created in the previous step. Creation of custom script takes around 5-10 mins.

Once the account is created then browse the website with IP address of VM, you should be able to see the IIS home page.


0 comments:

Post a Comment