# Create an Arm-based cloud virtual machine using Cobalt 200

## In this learning path

- [Introduction](https://learn.arm.com/learning-paths/servers-and-cloud-computing/mongodb-on-azure/)
- [What are Cobalt 200 and MongoDB?](https://learn.arm.com/learning-paths/servers-and-cloud-computing/mongodb-on-azure/background/)
- [Create an Arm-based cloud virtual machine using Cobalt 200](https://learn.arm.com/learning-paths/servers-and-cloud-computing/mongodb-on-azure/create-instance/)
- [Install MongoDB and Mongosh](https://learn.arm.com/learning-paths/servers-and-cloud-computing/mongodb-on-azure/deploy/)
- [MongoDB baseline testing](https://learn.arm.com/learning-paths/servers-and-cloud-computing/mongodb-on-azure/baseline-testing/)
- [Generate a MongoDB workload](https://learn.arm.com/learning-paths/servers-and-cloud-computing/mongodb-on-azure/benchmarking/)
- [Monitor MongoDB with mongotop](https://learn.arm.com/learning-paths/servers-and-cloud-computing/mongodb-on-azure/mongotop/)
- [Monitor MongoDB with mongostat](https://learn.arm.com/learning-paths/servers-and-cloud-computing/mongodb-on-azure/mongostat/)
- [Next Steps](https://learn.arm.com/learning-paths/servers-and-cloud-computing/mongodb-on-azure/_next-steps/)

## Introduction

There are several ways to create an Arm-based Cobalt 200 virtual machine:

- The Azure console
- The Azure CLI
- An infrastructure as code (IaC) tool

In this section, you will use the Azure console 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 on Azure Cobalt 200 is similar to creating any other virtual machine in Azure. To create an Azure virtual machine, open the Azure portal and navigate to **Virtual machines**.

Now follow these steps:

1. Select **Create**, then select **Virtual machine** from the drop-down list.
2. In the **Basics** tab, enter the instance details such as **Virtual machine name** and **Region**.
3. Choose the image for your virtual machine (for example, **Ubuntu 24.04 LTS**) and select **Arm64** as the **VM architecture**.
4. In the **Size** field, select **See all sizes** and select the **D-series v7** family of virtual machines. Select **D4ps_v7** from the list.

![Select a VM size](https://learn.arm.com/learning-paths/servers-and-cloud-computing/mongodb-on-azure/images/instance.png)
_Select a VM size_

5. Next, select **SSH public key** as the **Authentication type**. Azure can generate an **SSH key pair** for you and store it for future use. This is a fast, simple, and secure way to connect to your virtual machine.
6. Enter the **Administrator username** for your VM.
7. Select **Generate new key pair**, and select **RSA SSH format** as the **SSH key type**. RSA could offer better security with keys longer than 3072 bits. Give a Key pair name to your SSH key.
8. In **Inbound port rules**, select **HTTP (80)** and **SSH (22)** as the inbound ports:

![Allow inbound port rules](https://learn.arm.com/learning-paths/servers-and-cloud-computing/mongodb-on-azure/images/instance1.png)
_Allow inbound port rules_

Select the **Review and create** tab and confirm your configuration.

When you are satisfied with your selections, select **Create**, then select **Download private key and create resource**.

![Download private key and create resource](https://learn.arm.com/learning-paths/servers-and-cloud-computing/mongodb-on-azure/images/instance4.png)
_Download private key and create resource_

After deployment, your virtual machine will be running. Use the private key and the **Public IP** to connect over **SSH**.

Connect from your local terminal using your VM’s private key, administrator username, and public IP address:

```
ssh -i <path-to-private-key.pem> <admin-username>@<your-vm-public-ip>
```

After connecting, verify the architecture and CPU model:

```
uname -m
lscpu | grep 'Model name'
```

The output is similar to:

```
__output__ aarch64
__output__ Model name:                              Neoverse-V3
```
