Creating an Ubuntu Server in Azure and Connecting through SSH
Here's a step-by-step guide to create an Ubuntu server in Azure:
Sign in to the Azure portal: Go to https://portal.azure.com/ and sign in using your Microsoft account credentials.
Create a new resource: In the left-hand menu, click on "Create a resource" (the plus icon). This will open the Azure Marketplace.
Search for Ubuntu: In the search bar, type "Ubuntu" and hit enter. You'll see a list of available Ubuntu Server images.
Select an Ubuntu image: Choose an Ubuntu image, such as "Ubuntu Server 18.04 LTS" or "Ubuntu Server 20.04 LTS" provided by Canonical. Click on the desired image to proceed.
Click "Create": On the image description page, click the "Create" button to start configuring your virtual machine.
Configure basic settings: a. Subscription: Choose your Azure subscription. b. Resource group: Create a new resource group or choose an existing one. c. Virtual machine name: Enter a unique name for your virtual machine. d. Region: Select the region where you want to deploy your virtual machine. e. Availability options: Choose the availability settings based on your requirements (optional). f. Image: Confirm the selected Ubuntu Server image. g. Size: Choose the virtual machine size based on your performance and cost requirements. h. Authentication type: Select "Password" or "SSH public key" for authentication. i. Username: Enter a username for the virtual machine. j. Password / SSH public key: Enter a password or provide your SSH public key based on the authentication type you chose. k. Inbound port rules: Allow the ports you need (e.g., 80 for HTTP, 443 for HTTPS, and 22 for SSH).
Disks: Click on the "Disks" tab and choose the disk type (Standard HDD, Standard SSD, or Premium SSD) based on your performance and cost requirements. You can also configure additional data disks if needed.
Networking: Click on the "Networking" tab and verify the virtual network, subnet, and public IP settings. Adjust them as needed.
Management: In the "Management" tab, you can configure monitoring, auto-shutdown, and backup settings (optional).
Advanced: In the "Advanced" tab, you can configure additional extensions and cloud-init scripts (optional).
Review + create: Review your settings, and if everything is correct, click "Create" to deploy your Ubuntu virtual machine.
Wait for the deployment to complete: The deployment may take a few minutes. Once it's done, you'll see a notification in the Azure portal.
Connect to your Ubuntu server: Go to the "Virtual machines" section in the left-hand menu, click on your newly created virtual machine, and then click "Connect" at the top. Follow the instructions to connect to your server using SSH (for Linux or macOS) or an SSH client like PuTTY (for Windows).
You now have an Ubuntu server running in Azure, and you can start configuring it to host your applications.
Comentarios
Publicar un comentario