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
Azure Marketplace (Recommended)
Deploy Ant Media Server directly from Azure Marketplace:- Community Edition: Azure Marketplace Link
- Enterprise Edition: Azure Marketplace Link
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_B2sorStandard_B2ms - vCPUs: 2
- Memory: 4-8 GB
- Cost: ~$30-60/month
- VM Size:
Standard_F4s_v2orStandard_D4s_v3 - vCPUs: 4
- Memory: 8-16 GB
- Network: Accelerated Networking enabled
- Cost: ~$150-300/month
- 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
- Log into Azure Portal (https://portal.azure.com)
- Search for “Ant Media Server” in the Marketplace
- Select Community or Enterprise Edition
- 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_v2or 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
- Review all settings
- Click Create
- Wait for deployment (5-10 minutes)
- Navigate to resource once complete
6
Access Web Panel
Get the public IP address:
- Go to Virtual Machine resource
- Copy Public IP address
- Open browser:
http://PUBLIC_IP:5080 - 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
Public IP Configuration
Create Static Public IP
Configure DNS Label
Update Server Configuration
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
Azure Blob Storage Integration
Configure blob storage for recordings:Database Configuration (Enterprise)
Azure Cosmos DB (MongoDB API)
Configure Cluster Mode
SSL/TLS Configuration
Using Application Gateway with SSL
- Upload SSL certificate to Azure Key Vault
- Configure Application Gateway listener with certificate
- 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
- Check NSG rules in Azure Portal
- Verify VM is running
- Check public IP association
- Review boot diagnostics logs
Performance Issues
- Check Azure Monitor metrics
- Verify accelerated networking is enabled
- Check disk IOPS and throughput
- Review application logs
WebRTC Connection Issues
- Verify UDP ports 5000-65000 in NSG
- Check public IP configuration
- Ensure server.name is correctly set
- Test with STUN servers
