custom script is used when there is a need to cut down the time to do installation of the software after the server is up and running. For now, we are going to focus on azure. I have done up a simple PowerShell script that will do the following tasks as per below-
import-module servermanager
add-windowsfeature web-server -includeallsubfeature
add-windowsfeature Web-Asp-Net45
add-windowsfeature NET-Framework-Features
Copy the above into a notepad and save it as a .ps1. Save the file and upload it to a azure storage container.
Please see screenshot for more clarity

Give it some time for the VM to boot up and then try to access the page with http:/IP_Address and it should show up internet information services. If you are not able to see the page, check to ensure that the necessary firewall ports are open.
Leave a comment