Penyebaran Azure

Many people's deployment pitfalls

Penyebaran Azure OpenClaw, cloud Microsoft

Azure adalah platform cloud Microsoft, cakupan node global luas, pengguna enterprise sangat banyak. Jika perusahaan Anda sudah menggunakan Microsoft 365 atau Azure AD, menjalankan OpenClaw di Azure paling mudah, manajemen izin langsung terhubung.

personal user juga tidak ada masalah, Azure punya $200 free tier (user baru 30 hari), student dapat $100. guide ini dari buat VM sampai deploy selesai, langkah demi langkah bawa kamu.

free tier

💡 New user bonus
🎓 Student discount

lima step selesai deploy

1

buat resource group dan VM

Login Azure Portal → buat resource group → virtual machine → pilih Ubuntu 22.04 LTS → pilih size Standard_B2s (2 core 4G). auth method rekomen SSH key.

2

Config security group network

Di network settings VM, tambah inbound port rules: 22 (SSH), 80 (HTTP), 443 (HTTPS), 8080 (OpenClaw).

3

Koneksi SSH

Azure Portal memiliki SSH in-browser, bisa langsung klik untuk terhubung, atau gunakan terminal lokal ssh -i key.pem azureuser@IP_kamu Koneksiin. Password di console bisa direset.

4

Install Container Station

satu perintah install Docker, Azure Ubuntu image bersih banget, install apapun tidak ada conflict.

5

Deploy OpenClaw

Pakai docker-compose jalan service, dijalanin langsung bisa dipakai.

az CLI operasi

Use Azure CLI dapat full command line operation, gak perlu web console:

az CLI buat VM
# Pasang Azure CLI (macOS)

Install Container Station

Setelah SSH terhubung pasang Docker
# Perbarui sistem

konfigurasi docker-compose

docker-compose.yml (versi Azure)
version: "3.8"

services:
  openclaw:
    image: openclaw/openclaw:latest
    container_name: openclaw
    restart: unless-stopped
    ports:
      - "8080:3000"
    volumes:
      - ./data:/app/data
      - ./config:/app/config
      - ./logs:/app/logs
    environment:
      - NODE_ENV=production
      - TZ=Asia/Hong_Kong
    deploy:
      resources:
        limits:
          memory: 3G
        reservations:
          memory: 512M
    healthcheck:
      test: ["CMD", "curl", "-f", "http://localhost:3000/health"]
      interval: 30s
      timeout: 10s
      retries: 3
    logging:
      driver: json-file
      options:
        max-size: "10m"
        max-file: "3"

Deploy dan verify

Deploy OpenClaw
# Buat direktori proyek

Control cost

  • Use Spot VM —— murah hingga 90% dibanding instance on-demand, cocok buat test environment yang bisa stop
  • Set auto shutdown —— di halaman "auto shutdown" VM atur shutdown otomatis malam, tidak pakai tidak bayar
  • Pilih region yang pas —— East US dan West US 2 biasanya paling murah
  • Reserved instance —— kalau yakin pakai jangka panjang, beli 1 atau 3 tahun hemat 30-60%
Model tagihan Azure tidak jelas? Paket kelola MOLILI harga tetap, nol DevOps, tidak perlu pelajari apa itu Resource Group, apa itu NSG, buka dan gunakan langsung. pelajari MOLILI →
Artikel tutorial ini berguna buat kamu?