Installing 3CX PBX from Microsoft Azure Marketplace

Introduction

Easily host and manage 3CX on Microsoft Azure, managing all your servers from one account and leveraging your Microsoft Azure knowledge to stay in full control of your 3CX install.

Step 1: Deploy a 3CX VM from Azure Marketplace

New 3CX VM in Azure Marketplace

  1. Login to your Αzure account.
  2. Go to Azure Marketplace Apps page. Click here for V20 deployment.
  3. Search for “3CX” and click to open.
  4. Click on “Create” to set up a new VM instance.
  5. On the “Create a virtual machine” > “Basics” page:
  1. Select your “Subscription”.
  2. Select a “Resource group” or create a new.
  3. Set the “Virtual machine name”.
  4. Verify that the “Image” is “3CX Phone System - Gen 1”.
  5. Confirm or change the VM’s “Size”.
  6. Set the “Authentication type”, “Username” and the “Password” or “SSH public key” for the VM’s administrator account.
  1. Review the new VM’s options in “Disks”, “Networking”, “Management”, “Advanced”, “Tags” and click on “Review + Create”.
  2. Click on “Create” to deploy the new VM.

New 3CX VM in Azure Marketplace Review+Create step

Step 2: Configure the VM firewall

Adding an inbound port rule

Adding RTP Port rule for 3CX VM in Azure Marketplace

  1. When the new VM is deployed, click “Go to Resource”.
  2. The required SSH and RTP port ranges need to be created manually for the new VM after deployment. Click on “Settings” > “Networking” and then on “Add inbound port rule”. You will have to create 2 inbound rules.
  3. To enable RTP traffic set the new inbound rule:
  1. “Source” to “Any”.
  2. “Source port ranges” to “*”.
  3. “Destination” to “Any”.
  4. “Destination port ranges” to “9000-10999”.
  5. “Protocol” to “UDP”.
  6. “Name” to a descriptive string with no spaces, e.g. “9000-10999_UDP”.
  7. “Description” to a rule description, e.g. “3CX RTP Port Range”.
  1. For the SSH set the new inbound port rule (delete “default-allow-ssh”):
  1. “Name” to “SSH”.
  2. “Source” to “IP address of your choice”.
  3. “Destination port ranges” to “22”.
  4. “Protocol” to “TCP”.
  1. Click on “Add” to apply the rules and then click on “Overview”.

Step 3 - Create a swap file

Due to a restriction of Azure on waagent and cloud-init on marketplace images, the swap file must be created manually after creation of the machine. SSH to your machine and proceed as explained here.

Step 4: Upload 3CX configuration

Once your VM instance is created you will need to upload the configuration file to complete the installation.

  1. If you have not already done so, go to http://www.3cx.com/install/
  2. Login with your 3CX account and during installation select On-Premise. At the end of the process, you will be given the configuration file. You can copy the link or download the file. For more information see Installing 3CX
  3. Copy the “Public IPv4 address” of your new instance and open it in a browser with port 5015, e.g.
    http://public_ip:5015
    .
  4. Now either upload the file using the upload option or provide the link to the configuration file.

See Also

Install 3CX from:

Last Updated

This document was last updated on 9 October 2024

https://www.3cx.com/docs/pbx-azure-marketplace/ 

Discuss this article