Skip to main content

Overview

Ant Media Server can be deployed on Microsoft Azure using Azure Virtual Machines (VMs), Azure Marketplace one-click deployment, or Azure Virtual Machine Scale Sets (VMSS) for auto-scaling capabilities.

Deployment Methods

Deploy Ant Media Server directly from Azure Marketplace:

Manual VM Deployment

Deploy on a standard Azure VM with custom configuration.

Azure Virtual Machine Scale Sets

Automated scaling using VMSS for high-traffic scenarios.

Virtual Machine Requirements

VM Sizes

Development/Testing:
  • VM Size: Standard_B2s or Standard_B2ms
  • vCPUs: 2
  • Memory: 4-8 GB
  • Cost: ~$30-60/month
Production (Recommended):
  • VM Size: Standard_F4s_v2 or Standard_D4s_v3
  • vCPUs: 4
  • Memory: 8-16 GB
  • Network: Accelerated Networking enabled
  • Cost: ~$150-300/month
High-Performance Streaming:
  • VM Size: Standard_F8s_v2, Standard_D8s_v3
  • vCPUs: 8-16
  • Memory: 16-32 GB
  • Network: Accelerated Networking (25 Gbps+)
  • Premium SSD storage
  • Cost: ~$300-600/month

Operating System Images

Supported Images:
  • Ubuntu Server 20.04 LTS
  • Ubuntu Server 22.04 LTS
  • Debian 11
  • Red Hat Enterprise Linux 8
  • CentOS 8 Stream
Ubuntu 20.04 LTS or 22.04 LTS is recommended for optimal compatibility with Ant Media Server.

Storage

  • OS Disk: 30 GB minimum (Premium SSD recommended)
  • Data Disk: 100-500 GB for recordings (Premium SSD or Ultra Disk)
  • Disk Type: Premium SSD for production workloads

Quick Start: Azure Marketplace Deployment

1

Access Azure Marketplace

  1. Log into Azure Portal (https://portal.azure.com)
  2. Search for “Ant Media Server” in the Marketplace
  3. Select Community or Enterprise Edition
  4. Click Create
2

Configure Basics

Fill in the basic configuration:
  • Subscription: Select your Azure subscription
  • Resource Group: Create new or select existing
  • Region: Choose nearest region (e.g., East US, West Europe)
  • VM Name: antmedia-server-01
  • Authentication: SSH public key (recommended) or password
3

Configure VM Size

Select appropriate VM size:
  • Click Change size
  • Filter by compute-optimized (F-series) or general-purpose (D-series)
  • Select Standard_F4s_v2 or larger
  • Enable Accelerated Networking if available
4

Configure Networking

Network settings:
  • Virtual Network: Create new or select existing
  • Subnet: Default or custom subnet
  • Public IP: Create new static IP
  • NIC Network Security Group: Advanced
  • Configure NSG: Add inbound rules (see below)
5

Review and Create

  1. Review all settings
  2. Click Create
  3. Wait for deployment (5-10 minutes)
  4. Navigate to resource once complete
6

Access Web Panel

Get the public IP address:
  1. Go to Virtual Machine resource
  2. Copy Public IP address
  3. Open browser: http://PUBLIC_IP:5080
  4. Create admin account on first access

Manual VM Deployment

1

Create Virtual Machine

Using Azure CLI:
2

Connect to VM

SSH into your VM:
3

Install Ant Media Server

Download and install:
4

Configure Firewall

Open required ports in NSG (see section below)

Network Security Group (NSG) Configuration

Required Inbound Rules

Create NSG rules for required ports:

Using Azure CLI

Restrict SSH (port 22) to specific IP addresses for security. Replace ‘YOUR_IP’ with your actual IP address.

Public IP Configuration

Create Static Public IP

Configure DNS Label

Update Server Configuration

Set your domain or public IP:
Restart:

Virtual Machine Scale Sets (Auto-Scaling)

Create VMSS with Azure CLI

Configure Auto-Scaling Rules

Custom Script Extension

Automate Ant Media Server installation on VMSS:

Load Balancer Configuration

Create Application Gateway

For advanced load balancing with SSL termination:

Health Probe Configuration

Configure health probes for backend pool:

Storage Configuration

Attach Managed Disk

Mount the disk:

Azure Blob Storage Integration

Configure blob storage for recordings:
Configure in application settings via web panel.

Database Configuration (Enterprise)

Azure Cosmos DB (MongoDB API)

Configure Cluster Mode

SSL/TLS Configuration

Using Application Gateway with SSL

  1. Upload SSL certificate to Azure Key Vault
  2. Configure Application Gateway listener with certificate
  3. Set up HTTP to HTTPS redirect

Using Let’s Encrypt on VM

Monitoring with Azure Monitor

Enable VM Insights

Create Alerts

Backup and Disaster Recovery

Azure Backup

Snapshot-based Backup

Cost Optimization

Reserved Instances

Purchase Azure Reserved VM Instances for up to 72% savings on production workloads.

Auto-Shutdown Schedule

Spot Instances

For non-critical workloads:

Troubleshooting

VM Not Accessible

  1. Check NSG rules in Azure Portal
  2. Verify VM is running
  3. Check public IP association
  4. Review boot diagnostics logs

Performance Issues

  1. Check Azure Monitor metrics
  2. Verify accelerated networking is enabled
  3. Check disk IOPS and throughput
  4. Review application logs

WebRTC Connection Issues

  1. Verify UDP ports 5000-65000 in NSG
  2. Check public IP configuration
  3. Ensure server.name is correctly set
  4. Test with STUN servers

Next Steps