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) tha...
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.
- import-module servermanager
- 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.
COMMENTS