📜 ⬆️ ⬇️

Launch Linux in Microsoft Azure

Linux and Microsoft Azure ... Perhaps the most popular question here will be: "Who needs this at all?" Indeed, why might you need to run a virtual machine running Linux in Azure? Of course, there are those who just want to experiment, but we are interested in real possibilities of application. There are several opinions about the advantages provided by the ability to run virtual machines running Linux in the Microsoft cloud. On the one hand, this is an increase in competition in the cloud market in principle. At the same time, creating a Linux virtual machine in Azure provides additional opportunities for sharing open-source technologies and Microsoft cloud services. As part of this article, we will look at the process of creating a virtual machine running Linux in Microsoft Azure, and also consider which distributions are represented in the Azure Image Gallery.




Create a virtual machine


The very process of creating a virtual machine with the installed Linux operating system is extremely simplified. All officially supported images are in the gallery of Azure operating systems. Therefore, to create a new virtual machine running Linux is not a problem.
In the Azure portal, select New -> Compute -> Virtual Machnie . When creating a new virtual machine, you can choose between quick creation ( Quick Create - create a virtual machine, and configure it later) and creation with an image and gallery ( From Gallery - when creating a virtual machine, you can make additional settings).

Choose the method that seems most convenient to you.
If you selected Quick Create, you need to fill out such fields as the DNS name, select an image, specify the required size, enter the password for the user (azureuser is the default user), and specify the region.

After all the fields are filled - click on Create A Virtual Machine, and after a while the virtual machine will be ready to work
If you chose From Gallery as the installation method, then you will need to follow four steps in sequence. First select the image to install:

Next, you need to specify the level of service and size of the virtual machine. In addition, you can change the default username, as well as choose from two authentication methods. After checking the checkbox “Upload compatible SSH key for authentication”, you will need to upload the appropriate certificate file. Alternatively, you can use a password. You can also use both authentication methods.

The next step is to set up a cloud service (you can create a new one or select an existing one), select a region, use an existing account for storage or automatically generated, create an availability group (or use an existing one), and set up endpoints. By default, when creating a virtual machine, only SSH port 22 is open. If you need other open ports to connect, you can configure them when creating a virtual machine, or later in the process of further work.
The final step is to complete the setup of the virtual machine and wait a while until the creation process is complete.
There is a question about how to connect to the newly created virtual machine. Most of the images available in the Azure library are server versions that do not have remote connection features installed. If you didn’t change the default settings when creating a new virtual machine, then you only have SSH port 22 open for connection. You can connect to it. Any SSH client is suitable for this. I use PuTTY. In the Host Name ( or IP address ) line, you must enter the DNS name or IP address of the virtual machine we created. How to recognize him?
Select the virtual machine you created in the Azure portal and open the Dashboard tab. In the Quick Glance menu, you can see both the DNS name and the public IP address.

Now back to PuTTY, enter the name of our virtual machine and click Open.

You will see a pop-up warning in which you must indicate whether you trust the connected server. Now you need to authenticate to the system. Use the username and password that you specified when creating the virtual machine (by default, the username is azureuser ). If the data is correct, you will successfully connect to the session and be able to work.

Of course, you can use other options for the connection, optionally SSH. To do this, you will need to open the corresponding port - configure the endpoint ( Endpoint ). To do this, on the Azure portal, open your virtual machine, go to the Endpoints page. On it, you can see existing endpoints, add new ones, change or delete existing ones.

')

Support


Let's talk now a little about those versions of Linux which are available in Azure. Here I want to note that the limitations are conditional. Just have a list of systems tested in Azure. Anything outside of this list you install at your own risk, without any guarantees. So, the following is a list of those Linux distributions that are tested in Azure and are presented in the image gallery:
  1. Canonical Ubuntu - version 12.04.1+, 14.04 and 14.10
  2. CentOS via OpenLogic - CentOS version 6.3+
  3. CoreOS - version 494.4.0+
  4. Oracle Linux - version 6.4+
  5. Suse Linux Enterprise - SLES 11 SP3 + versions
  6. OpenSuse - openSUSE versions 13.1+

It is also important to note that in the event of any problems, the scope of support is delineated. In particular, Microsoft is responsible for problems related to Azure. And if you have questions about the distribution, you need to apply for support to his referral service.

I hope that this article will be useful to you!

useful links


Source: https://habr.com/ru/post/248903/


All Articles