# Create an Azure Cobalt 200 Arm64 virtual machine

## In this learning path

- [Introduction](https://learn.arm.com/learning-paths/servers-and-cloud-computing/postgresql-cobalt/)
- [Understand PostgreSQL on Azure Cobalt 200](https://learn.arm.com/learning-paths/servers-and-cloud-computing/postgresql-cobalt/background/)
- [Create an Azure Cobalt 200 Arm64 virtual machine](https://learn.arm.com/learning-paths/servers-and-cloud-computing/postgresql-cobalt/instance/)
- [Install and configure PostgreSQL on Cobalt 200](https://learn.arm.com/learning-paths/servers-and-cloud-computing/postgresql-cobalt/setup-and-install/)
- [Deploy a relational schema and run queries](https://learn.arm.com/learning-paths/servers-and-cloud-computing/postgresql-cobalt/deploy-and-query/)
- [Benchmark and optimize PostgreSQL on Cobalt 200](https://learn.arm.com/learning-paths/servers-and-cloud-computing/postgresql-cobalt/benchmark-and-tuning/)
- [Next Steps](https://learn.arm.com/learning-paths/servers-and-cloud-computing/postgresql-cobalt/_next-steps/)

## Provision Azure infrastructure for PostgreSQL
Create an Arm-based Cobalt 200 virtual machine to host your PostgreSQL database.

## Prerequisites and setup
There are several common ways to create an Arm-based Cobalt 200 virtual machine, and you can choose the method that best fits your workflow or requirements:
- The Azure Portal
- The Azure CLI
- An infrastructure as code (IaC) tool

In this section, you will launch the Azure Portal to create a virtual machine with the Arm-based Azure Cobalt 200 processor.

Use a general-purpose **Standard_D4ps_v7** VM in the **Dpsv7** series, with 4 vCPUs and 16 GiB of memory. See Microsoft’s [Cobalt 200 VM families overview](https://azure.microsoft.com/en-us/blog/new-azure-cobalt-200-vms-deliver-50-performance-improvement-fully-optimized-for-modern-agentic-ai-workloads/) for details.

Your subscription and selected region must have access to Dpsv7 sizes and sufficient vCPU quota. This Learning Path was validated in **West US 2** on **Ubuntu 24.04 LTS (Arm64)**.

## Create an Arm-based Azure virtual machine
Creating a virtual machine based on Azure Cobalt 200 is no different from creating any other virtual machine in Azure. To create an Azure virtual machine:
- Launch the Azure portal and navigate to **Virtual Machines**.
- Select **Create**, and select **Virtual Machine** from the drop-down list.
- Inside the **Basic** tab, fill in the instance details such as **Virtual machine name** and **Region**.
- Select the image for your virtual machine (for example, Ubuntu 24.04 LTS) and select **Arm64** as the VM architecture.
- In the **Size** field, select **See all sizes** and select the D-series v7 family of virtual machines.
- Select **D4ps_v7** from the list.

![VM size selection in the Azure portal](https://learn.arm.com/learning-paths/servers-and-cloud-computing/postgresql-cobalt/images/instance.png)  
VM size selection in the Azure portal

- For **Authentication type**, select **SSH public key**.

> **Note**  
> Azure generates an SSH key pair for you and lets you save it for future use. This method is fast, secure, and easy for connecting to your virtual machine.

- Fill in the **Administrator username** for your VM.
- Select **Generate new key pair**, and select **RSA SSH Format** as the SSH Key Type.

> **Note**  
> RSA offers better security with keys longer than 3072 bits.

- Give your SSH key a key pair name.
- In the **Inbound port rules**, select **HTTP (80)** and **SSH (22)** as the inbound ports, as shown below:

![Configure inbound port rules for HTTP and SSH access](https://learn.arm.com/learning-paths/servers-and-cloud-computing/postgresql-cobalt/images/instance1.png)  
Configure inbound port rules for HTTP and SSH access

- Now select the **Review + Create** tab and review the configuration for your virtual machine.
- When you are happy with your selection, select the **Create** button and then **Download Private key and Create Resource** button.

![Download SSH key and create the virtual machine](https://learn.arm.com/learning-paths/servers-and-cloud-computing/postgresql-cobalt/images/instance4.png)  
Download SSH key and create the virtual machine

Your virtual machine should be ready and running in a few minutes. You can SSH into the virtual machine using the private key, along with the public IP details.

> **Note**  
> To learn more about Arm-based virtual machines in Azure, see “Getting Started with Microsoft Azure” in [Get started with Arm-based cloud instances](https://learn.arm.com/learning-paths/servers-and-cloud-computing/csp/azure/).

## Connect to your VM
Connect from your local terminal using your VM’s private key, administrator username, and public IP address:
```bash
ssh -i <path-to-private-key.pem> <admin-username>@<your-vm-public-ip>
```
After connecting, verify the architecture and CPU model:
```bash
uname -m
lscpu | grep 'Model name'
```
The output is similar to:
```
__output__
aarch64
__output__
Model name:                              Neoverse-V3
```
Your Cobalt 200 VM is ready. Next, install and configure PostgreSQL.
