vWorld

vWorld – Oude Doesburgseweg 89C6901 HH Zevenaar – info@vworld.nl – Kantoor: 0316-798037 – Because it’s a virtual world!

How to deploy (additional) server roles on your IaaS Azure VM

Recently I needed an easy function to add additional servers roles on several IaaS virtual machines on a customer platform. This is how I accomplished this.

For this example I’m going to install the IIS server role, it works for other roles ofcourse. I’ve created an simple powershell script with the following content :

For this demo I named the .ps1 file InstallIIS.ps1

Using visual studio code I’ve specified my Azure subscription and invoke the powershell command :

After executing this command the IIS role will be installed on the demo-vm-001 server.

[do_widget id=hootkit-notice-3]