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
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
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.
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
Related
I am new to Azure virtual machine and in hosting world. I have created a nodejs api application, and now I want to host it on virtual machine. I have create a virtual machine too, but I have no idea on how to host my nodejs project which is on my local system to azure vm. Please can anyone help?
To deploy node.js application to Azure VM we need to have following perquisite :
Node.js installed on your system (version >= 10.3)
Azure account
A CircleCI account
A GitHub account
Azure CLI installed on your system (version >= 10)
Then need to Set-up a virtual machine on Azure to run Node.js.
For complete information please refer to this BLOG : Continuous deployment of Node.js to Azure VM & GitHub: Deploy a Node.js application to Linux Virtual Machines in Azure
I would like to associate/add a Virtual Network to a Cloud Service in Azure.
I have found a solution where you can download and edit the Cloud Service's configuration file and upload it back in order to add a Virtual Network. But the solution only works if the Cloud Service is NEW and only about to be created
However, I am trying to look for ways on how to add a Virtual Network to an already existing/running Azure Cloud Service.
Is this possible?
Unfortunately, this is not possible, whenever you want to include a cloud service on Microsoft Azure to a Network you should do it at the time it gets created, that's why it's recommended to START your project while putting all of your resources on the same network and in the same region.
I have a PHP application which runs on Ubuntu.
I am looking for Cloud service on Azure which has Ubuntu OS so I can deploy my application over there.
I am able to find WAMP (Windows + Apache + My SQL + PHP) Cloud service on Azure but I am looking for LAMP (Linux + Apache + My SQL + PHP).
Appreciate for Any help.
I assume you're talking about Azure Virtual Machines rather than Azure Cloud Services, which are two different compute options. You can check this article to get the details about the different compute options on Azure. Cloud Services are a Platform-as-a-Service (PaaS) concept and only run on Windows Server. Azure Virtual Machines are basically hosting of VMs and these come in both Linux and Windows Server.
You can find ready-made Ubuntu-based VM images containing the LAMP stack in the Azure Marketplace or you can check the VM Depot, which contains community-provided VM images.
Alternatively, you can prep your own Virtual Machine and save it as a VM image, which you can then use to create new VMs off of it.
Azure Cloud Services (worker and web roles) are Windows only. Virtual Machines can be Windows or Linux.
However, if you are just looking to host your web front end you could use an Azure Web App (previously named Azure Websites) which has first class support for PHP, but the underling OS is still Windows.
In addition to the answer from Nick Trough you might want to try an ARM Template, e.g. https://github.com/Azure/azure-quickstart-templates/tree/b1908e74259da56a92800cace97350af1f1fc32b/lamp-app
This allows you to deploy a simple LAMP server (like marketplace or VM Depot) but has the added benefit of providing the configuration as an ARM Template (i.e. code) so you can easily modify it.
I have purchased a Pay-As-You-Go Azure Subscription with the lowest resources (A0 Basic, shared core and 768 MB RAM) and automatically, four services were created for me: a Storage Account, a Virtual Machine, a Cloud Service and a Directory.
On the Virtual Machine I set up my own HTTP server software written in C# using HttpListener class. I added an HTTP Endpoint connecting the private and public port 80 on TCP. Once I've done that, I was able to access my Cloud Service address (Something.CloudApp.net).
I've created a separate Cloud Service on top of 4 service I already had and now I can't figure out how to make that service use the Virtual Machine so I can access the same HTTP server from both DNS names (Something.CloudApp.net versus SomethingElse.CloudApp.net).
The service status of both services is Created if I investigate in the Microsoft Azure Portal, however, only the first service says Running in Production column in Cloud Service list. The other one doesn't. None of the Cloud Services say anything in the Staging column.
I figure I have to set the other service to run in production too, but when I want to do that, the Portal says "You have nothing deployed to the production environment.", "Upload a new production deployment", which opens a dialog prompting me to provide details for a production environment to be newly created.
Is there a way I can make my other Cloud Service use the production environment of the first service?
Is there an alternative way to make my Virtual Machine accessible through two DNS names offered by Azure (CloudApp.net)?
The cloud service is the logical container for the VM and a VM can only be in one cloud service. There is no way to get 2 different *.cloudapp.net URLs to point to the same VM. What you can do is register 2 custom domain names (www.mydomain1.com, www.mydomain2.com) and use CNAME or A Record to point both of them to the same VM.
I have a site to site connection established in Azure to a machine, and I have created a shared folder in that machine and now I have created an application where I am trying to upload a file and when I am running from visual studio I am able to upload the file in to the specific server but when I am deploying to Azure cloud services, it is giving an error as \10.1.0.xxxx\abc path not found. what can be the issue.
Thanks in Advance.
Regards,
Suresh
I was confused a bit from your question. When you said 'site to site connection' did you mean you created a virtual network and point to site VPN between your virtual machine and your desktop?
Well if you are using windows azure virtual machine you should be able to create a shared folder and upload files from your local desktop. Just need to create a virtual network and build a VPN between that machine and your desktop. But it might be impossible if you wanted to upload file to your cloud service. You might be able to open the firewall port on your cloud service virtual machine through powershell and startup task but all files you uploaded will be cleared when your cloud service virtual machine was moved by azure fabric controller.