Azure technical setup notes » History » Version 1
Jon Goldberg, 11/19/2025 07:35 PM
| 1 | 1 | Jon Goldberg | # Azure technical setup notes |
|---|---|---|---|
| 2 | |||
| 3 | ## Technical Configuration |
||
| 4 | To set up a free account, you must: |
||
| 5 | * Get a Sponsorship (see [[Azure_VPS_setup_notes]]) |
||
| 6 | * Create a Subscription linked to the Sponsorship (see [[Azure_VPS_setup_notes]]) |
||
| 7 | * (Strongly recommended) Grant access to the subscription to other users. |
||
| 8 | * Create a Resource Group linked to the Subscription |
||
| 9 | * Create a Virtual Machine (and associated resources) linked to the Resource Group |
||
| 10 | |||
| 11 | ### Create a resource group |
||
| 12 | * Select "Resource Groups" from the main Azure portal (left sidebar). |
||
| 13 | * Select **Create** and give it a name. |
||
| 14 | * Your subscription should be pre-selected since you only have the one. |
||
| 15 | * Click **Review and Create**, then **Create**. |
||
| 16 | |||
| 17 | ### Create a virtual machine |
||
| 18 | * Click on your new resource group in the Azure Portal. |
||
| 19 | * Click **Create**. |
||
| 20 | * Search for the name of the image you want (e.g. `Debian 13 "Trixie`). |
||
| 21 | * If you picked an image that shows an hourly cost, it's the wrong one. |
||
| 22 | * See the screenshots below for configuration of the "Basics" and "Disk" tabs. The other tabs I keep with the defaults. My standard VPS type is now `D2ps_v6`. |
||
| 23 | * "D2" is general-purpose VM, we always select this. "a" is AMD-series (old preference), "p" is ARM64, "d" is temp disk included (we don't need this), "s" supports premium SSD disks. v6 is the latest gen, always use the latest gen. |
||
| 24 | |||
| 25 |  |
||
| 26 | |||
| 27 |  |
||
| 28 | |||
| 29 | ### Post-provisioning configuration |
||
| 30 | |||
| 31 | #### Get serial console working |
||
| 32 | Serial console is necessary for single-user mode, and troubleshooting if SSH fails. |
||
| 33 | |||
| 34 | It's normally working out of the box now. Go to "Serial Console" in the VM left navigation. If it doesn't work: |
||
| 35 | |||
| 36 | * Go to **Boot Diagnostics** in the VM's left nav. |
||
| 37 | * Click **Settings** at the top. |
||
| 38 | * Select **Enable with managed storage account**. |
||
| 39 | * Save. |
||
| 40 | |||
| 41 | Now Serial Console will work. |
||
| 42 | |||
| 43 | #### Modify Firewall Rules |
||
| 44 | * Click on your new virtual machine in the Azure portal. |
||
| 45 | * Click **Networking** in the side navigation. |
||
| 46 | * You should see your firewall settings. They should look like the screenshot below, except they'll be missing the two items circled. |
||
| 47 | * Add the "allow_ping" and "Port_5665" rules to the *Inbound Port Rules* as shown in the screenshot. |
||
| 48 | |||
| 49 | .png) |
||
| 50 | |||
| 51 | #### Add a swapfile |
||
| 52 | [Complete instructions are here](https://support.microsoft.com/en-us/help/4010058/how-to-add-a-swap-file-in-linux-azure-virtual-machines) but in short, add this to `/etc/waagent.conf` for an 8GB swapfile: |
||
| 53 | |||
| 54 | ``` |
||
| 55 | ResourceDisk.Format=y |
||
| 56 | ResourceDisk.EnableSwap=y |
||
| 57 | ResourceDisk.SwapSizeMB=8192 |
||
| 58 | ``` |
||
| 59 | |||
| 60 | Then run `service walinuxagent restart`. |