Skip to main content

Velaclaw on Azure Linux VM

This guide sets up an Azure Linux VM with the Azure CLI, applies Network Security Group (NSG) hardening, configures Azure Bastion for SSH access, and installs Velaclaw.

What you will do

  • Create Azure networking (VNet, subnets, NSG) and compute resources with the Azure CLI
  • Apply Network Security Group rules so VM SSH is allowed only from Azure Bastion
  • Use Azure Bastion for SSH access (no public IP on the VM)
  • Install Velaclaw with the installer script
  • Verify the Gateway

What you need

  • An Azure subscription with permission to create compute and network resources
  • Azure CLI installed (see Azure CLI install steps if needed)
  • An SSH key pair (the guide covers generating one if needed)
  • ~20-30 minutes

Configure deployment

1

Sign in to Azure CLI

The ssh extension is required for Azure Bastion native SSH tunneling.
2

Register required resource providers (one-time)

Verify registration. Wait until both show Registered.
3

Set deployment variables

Adjust names and CIDR ranges to fit your environment. The Bastion subnet must be at least /26.
4

Select SSH key

Use your existing public key if you have one:
If you don’t have an SSH key yet, generate one:
5

Select VM size and OS disk size

Choose a VM size and OS disk size available in your subscription and region:
  • Start smaller for light usage and scale up later
  • Use more vCPU/RAM/disk for heavier automation, more channels, or larger model/tool workloads
  • If a VM size is unavailable in your region or subscription quota, pick the closest available SKU
List VM sizes available in your target region:
Check your current vCPU and disk usage/quota:

Deploy Azure resources

1

Create the resource group

2

Create the network security group

Create the NSG and add rules so only the Bastion subnet can SSH into the VM.
The rules are evaluated by priority (lowest number first): Bastion traffic is allowed at 100, then all other SSH is blocked at 110 and 120.
3

Create the virtual network and subnets

Create the VNet with the VM subnet (NSG attached), then add the Bastion subnet.
4

Create the VM

The VM has no public IP. SSH access is exclusively through Azure Bastion.
--public-ip-address "" prevents a public IP from being assigned. --nsg "" skips creating a per-NIC NSG (the subnet-level NSG handles security).Reproducibility: The command above uses latest for the Ubuntu image. To pin a specific version, list available versions and replace latest:
5

Create Azure Bastion

Azure Bastion provides managed SSH access to the VM without exposing a public IP. Standard SKU with tunneling is required for CLI-based az network bastion ssh.
Bastion provisioning typically takes 5-10 minutes but can take up to 15-30 minutes in some regions.

Install Velaclaw

1

SSH into the VM through Azure Bastion

2

Install Velaclaw (in the VM shell)

The installer installs Node LTS and dependencies if not already present, installs Velaclaw, and launches the onboarding wizard. See Install for details.
3

Verify the Gateway

After onboarding completes:
Most enterprise Azure teams already have GitHub Copilot licenses. If that is your case, we recommend choosing the GitHub Copilot provider in the Velaclaw onboarding wizard. See GitHub Copilot provider.

Cost considerations

Azure Bastion Standard SKU runs approximately $140/month and the VM (Standard_B2as_v2) runs approximately $55/month. To reduce costs:
  • Deallocate the VM when not in use (stops compute billing; disk charges remain). The Velaclaw Gateway will not be reachable while the VM is deallocated — restart it when you need it live again:
  • Delete Bastion when not needed and recreate it when you need SSH access. Bastion is the largest cost component and takes only a few minutes to provision.
  • Use the Basic Bastion SKU (~$38/month) if you only need Portal-based SSH and don’t require CLI tunneling (az network bastion ssh).

Cleanup

To delete all resources created by this guide:
This removes the resource group and everything inside it (VM, VNet, NSG, Bastion, public IP).

Next steps