0
votes

can anyone help me with Microsoft Azure cloud service and Virtual machine connection? My nodejs app is running live on VM but not outside virtual machine. How can I deploy nodejs app to my cloud service using virtual machine? Note : I have added endpoints as well. Please help. Thanks

2
what do you mean by deploy? do you have a problem accessing your application from the internet or deploying the source code?Bruno Faria
Actually it would be good if you consider that I have made a new Virtual machine and a cloud service. Now tell me what steps should I follow to deploy my nodejs app from bitbucket which could be live and it will be hosted from VM. ThanksZubair
I used this tutorial to make nodejs app live but it comes out to be live only on VM, not for cloud service. codetunnel.com/…Zubair
so your problem is with kudu continuous deployment? were you able to make kudu work? why do you need a VM in the first place for a node.js project? why not use Cloud Service projects or websites instead? The cloud service layer of a VM is different than the one of a cloud service project.Bruno Faria
Hi thanks for reply. My client's demand is actually to work with VM locally hosted nodejs app. I did the port forwarding now and its working using public IP address :) ThanksZubair

2 Answers

0
votes

All I did now is used port forwarding using endpoints in azure. Secondly I ran the nodejs app locally on VM, it is now accessible outside VM as well using VM's public IP address. Now I dont use cloud service anymore since there is no need. Thanks everyone

-1
votes

When we create a virtual machine in Azure manage portal From Gallery, after selecting image and VM size, it will ask us for creating a new cloud service or selecting an exist cloud service to contain the VM. enter image description here

So when you create a new one, you can put it into an exist cloud service you want.

But once the VM created, we can’t move it to other cloud service.

However, we can capture your exist VM with node.js application and environment. Then you can create a new VM using this image into the destination cloud service without redeploy environment and applications.

For more information, we can see at Capture an image of a Windows virtual machine created with the classic deployment model and How to Capture a Linux Virtual Machine to Use as a Template