[LINUX] From user registration of Microsoft Azure to creation of virtual machine (free tier)

Thing you want to do

Register a Microsoft Azure user, create a virtual machine (RHEL8.2) on Azure, and connect with SSH with Tera Term. This time I used the free frame.

Things to prepare in advance

Creating a Microsoft Azure user

Azure free account creation screen

Click "Start for free" on the Free account creation screen of Azure. 1-2.png

Microsoft account authentication

Enter your Microsoft account credentials and click "Next". If you have not created a Microsoft account, create a new one at this time. 2-2.png

Enter profile

Enter your profile information such as your name, email address and phone number and click "Next". 3-2.png 4-2.png

SMS authentication

Enter a phone number that can use SMS and click "Send text message". 5-2.png After clicking, confirm that the confirmation code is sent to the specified phone number.

Enter verification code

Enter the confirmation code sent to you in the confirmation code field and click "Confirm Code". 6-2.png

Enter credit card information

Enter your credit card information and click "Next". 7.png

Checking agreements

Check the agreement and click "Sign up". 8-2.png

Confirmation of creation completion and movement to the portal

Confirm that preparations for starting to use Azure have started, and click "Build in the portal". 9-2.png

Quick start center

Click Start> to deploy the virtual machine in the Quick Start Center. In the free tier, a credit of ¥ 22,500 will be given for 30 days only. 10-2.png

Deploy virtual machine

On this screen, select whether to deploy a Linux server or a Windows server. This time, to deploy RHEL8.2, which is a Linux server, click "Create" to create a Linux virtual machine. 11-2.png

Project details/instance details

Enter the detailed information of the virtual machine to be deployed from here. This time, the input items for setting the minimum configuration are shown as an example. 12.png

item concents inputted
subscription Free trial version
Resource group (新規)Resource group
item concents inputted
Virtual machine name test01
area (Asia Pacific) Eastern Japan
Availability options No need for infrastructure redundancy
image Red Hat Enterprise Linux 8.2 (LVM) - Gen1
Azure Spot Instance no check
size B1ls(1vcpu、0.5GB memory) (\556/Moon)

Click "Next: Disk>" when the input is completed.

Disk Options/Data Disk

13.png

item concents inputted
OS disk type Standard HDD
Type of encryption (Regulation) Encryption at the time of storage using platform managed key

No change

After completing the input, click "Next: Network>".

Network interface

14.png

item concents inputted
Virtual network (New) XXX_group-vnet
Subnet (New) default (10).0.0.0/24)
Public IP (New) test01-ip
NEC Network Security Group Basic

After completing the input, click "Next: Manage>".

Azure Security Center/Monitoring

15.png

item concents inputted
Enable the free Basic plan Checked
item concents inputted
Boot diagnostics Enable with a managed storage account (recommended)
Enable OS guest diagnostics no check

After completing the input, click "Next: Details>". Click "Next: Tag>" and "Next: Confirm and Create>" in the same procedure on the following screens. (The input value is OK by default)

Check details and create a virtual machine

17-2.png

If there is no problem with the created contents, click "Create".

Creating a private key

18-2.png

Click "Download private key and create resource" to create and download the private key to be used when connecting to Tera Term. After that, the browser download will start, so save it in any location.

Deployment progress

19.png The deployment begins. Wait for a few tens of seconds to a few minutes.

Deployment complete

20-2.png

Confirm that the message "Deployment is complete" is displayed on the screen, and click "Go to Resource".

Confirmation of public IP address

21-2.png

Make a note of the "public IP address" information displayed on the screen.

Tera Term connection

Start Tera Term. 22-2.png

Enter the public IP address information you wrote down earlier in the host field. Enter "22" for the TCP port and "SSH" for the service, and click "OK".

Specifying a private key

23-2.png

Specify azureuser as the user name. (No password entered) Check "Use RSA/DSA/ECDSA/ED25519 Key", specify the private key you downloaded earlier as the private key, and click "OK".

Check SSH connection

Check that the SSH connection is established as shown below.

ctivate the web console with: systemctl enable --now cockpit.socket

This system is not registered to Red Hat Insights. See https://cloud.redhat.com/
To register this system, run: insights-client --register

[azureuser@test01 ~]$

If you want to become root, you can use "sudo su-" etc.

[azureuser@test01 ~]$ sudo su -
[root@test01 ~]#

in conclusion

Since you will be charged for the credits granted while the virtual machine is running, it is better to stop the virtual machine from the portal after use. (Although it is a free frame, the credit is limited)

Recommended Posts

From user registration of Microsoft Azure to creation of virtual machine (free tier)
[Azure] I tried to create a Linux virtual machine in Azure of Microsoft Learn
I tried the site "Deploy Azure virtual machine from Go"
SIGNATE Quest ② From creation of targeting model to creation of submitted data
[Notes / Updated from time to time] This and that of Azure Functions