Assign 2 or more Cloud services to 1 VM

Category: azure development


ThomasRasmussen on Mon, 14 Mar 2016 20:35:59


My goal is to have 2 webservices hosted on 1 VM. So that one of them could be and the other http://test2. Is this possible, and what steps do I need to do?




Girish Prajwal on Tue, 15 Mar 2016 17:42:29

Hi Thomas,

When you say and; these 2 are cloud services which cannot be deployed in a single VM.

If it is website using IIS server with and you can deploy it using IIS server with port bindings. Also, enable the endpoints for both the sites on the management portal.

Hope this helps

Girish Prajwal

chilberto on Wed, 16 Mar 2016 00:25:14

Hello Thoma,

As Girish points out this is not supported by Azure websites or cloudapps but of course would be if you wanted to handle the VM yourself.

I would step back and consider why you want to do this.  It might be to save cost but I feel the tradeoff in being able to manage and scale the apps separately is greater than the cost benefit.  If it is because of a shared resource that is deployed to the VM then I would again rethink the design as there most likely is a more "cloud friendly" way to accomplish this.