Azure virtual machine used as IIS server - azure

I need server to setup Zumero Sync on it , I already used azure free trail now I need to upgrade but don't know if I need only to buy VM or Cloud service with it , it's not clear how to use the VM , is it like VPS ?

You can upgrade to Pay as you go subscription model which means you have to pay for what you use so in your case you have to pay for the VM and storage for storing the VHD of the VM. Cloud Service is basically a shell under which you deploy a VM so you don't need to pay for it.You can minimize the cost by shutting down the VM when not in use.

If you're not using Azure Resource Managed (announced recently by MS: IaaS Just Got Easier) the portal (and PowerShell) forces you to create a Cloud Service otherwise there's no way for you to assign an external DNS to connect to your VM. You won't need to do anything with it other than set it up if you're using a VM, but it will need to be there.
If you're not using a VM, your Cloud Service is the container for your deployment, which means you don't need to worry about maintaining IIS or Windows (which your app still runs on in the background).

Related

Windows Azure Virtual Machine and cloud service nodejs app deploy

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

How to Create cloud service with Ubuntu OS on Microsoft azure

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.

Azure Website connecting to Virtual Machine

I have an Azure Website and it is required to consume an elastic search service that's running on a VM.
Although I need to be able to lock the access to elastic search down so only the Azure Website can access it, I can't seem to work out how to do this using the endpoint configuration on the VM.
Am I looking in the wrong place?
Thanks
Carl
You will need to setup a Hybrid Connection between your Web Site and the VM:
Hybrid Connections create a safe tunnel between your Web Site and a VM for example. The screenshot shows the integration between a Web Site and the corporate network, but this also works for VMs running in Azure.
The only requirement is that you install the Hybrid Connection Manager on your VM. More information:
http://azure.microsoft.com/en-us/documentation/articles/integration-hybrid-connection-overview/

Possible to access one Azure Virtual Machine through two DNS names using two Cloud Services?

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.

Changing Cloud Service of a VM in Azure

I created a VM in Azure and attached a cloud service (abc1.cloudapp.net) to it. So I'm able to ssh into the machine using this cloud service. Now for some reason I want to change it to (xyz.cloudapp.net).
Is this doable?
You can't change the alias for the cloud service. You will need to drop it and create a new one.
I suggest redirecting your original domain the VIP Azure provides so you have a consistent domain name all the time.

Resources