Skip to content

Alpaquita Linux: Getting started with Azure image

Microsoft Azure now offers instances with Alpaquita Linux, an Alpine-based Linux distribution with numerous optimizations for enterprise development. You can use Alpaquita Stream for free and pay for Azure VMs only, or you can subscribe to commercial support with LTS releases and 24/7 service.

  1. Go to the Azure portal and click the Create a resource button under Azure services.

    Screenshot of Azure portal

  2. Type Alpaquita in the search field in the Azure Marketplace and click Alpaquita Linux in the drop-down menu with the search results.

    Screenshot of marketplace search

  3. Choose the image type in the Create menu at the bottom of the card.

    Screenshot of market place search results

    Or you can click the card to view the description and select the image type on the Alpaquita Linux page.

    Screenshot of image description

Once you choose the image, Azure VM creation form appears. You need to fill some data though default values are suitable for the most cases. The following parts describe some key settings that you might want to change.

Provide a name for your new VM and select the Size of your VM, that determines the number of CPUs and the amount of RAM.

Screenshot of VM details

An Azure VM comprises several resources, like disks, public IP addresses, network firewall rules, etc. Azure groups these resources into resource groups for easier overview and management. Azure form automatically suggests to create a new resource group named after the newly created VM. You can change the suggested name of the new group or use an existing group instead.

A user is created automatically. The default name is azureuser. You can change the name in the Username field.

Screenshot of user name and key

The created user does not have a conventional password. To access the VM as that user you must identify yourself with an SSH key. You can choose to generate a new key, or you can use your existing key in the SSH public key source.

Screenshot of SSH key choices

Now click Next to proceed to the Disks tab.

Select the storage type as a primary OS disk in OS disk type.

Screenshot of the Disks tab

If you have data disks that you want to attach, you can do it in this step. You can also create a new unformatted data disks to attach to the new VM.

Screenshot of add data disk

You might want to check the networking tab next. For a simple demo, use the default values. You can open the advanced settings for the NIC security group and edit the firewall rules, or use the existing ones. You can also select the Delete NIC when VM is deleted option for this demo.

Alpaquita supports Microsoft Azure Linux Agent and you can specify custom data for the newly created VM on the Advanced tab. The custom data are applied once when VM is provisioned. For example, you can provide a shell script to run once.

Screenshot of Advanced tab

You are ready to create the VM. Go to the Review+Create tab and click Create.

Screenshot of Review and Create tab

It takes some time for your new VM to be deployed.

Screenshot of deployment in progress

When the deployment process is complete, click Go to the resource.

Screenshot of completed deployment

This page provides an overview of your new VM. Note and copy its public IP address.

Screenshot of VM overview

Click the Boot diagnostics item in the left sidebar (you might need to scroll down the page).

Screenshot of Boot diagnostic tab

To review and identify any problems, switch to the Serial log tab that shows the complete output from the boot process.

Screenshot of Serial console log

Start your ssh client in your terminal to log into your new VM. If you changed the username adjust the -l option argument accordingly.

The command in this example also instructs ssh to accept and ignore the host key, sets up agent forwarding, and creates port-forwarding back to the ssh server on your host so that you can copy files from the cloud VM back to your host even if it is behind a corporate firewall.

You can use sudo without a password, because your cloud user does not have one.

You can also see that the custom data shell script was executed.

Screenshot of successful slogin

Now you can connect to the Azure VM running Alpaquita Linux.