Azure Linux VMs and the Telnyx Network
Step 1: Telnyx Configuration with Azure Linux VMs
Reference the introduction to Telnyx Networking section located here: Telnyx Configuration
Copy and take note of the Peer Configuration file along with the private key that you got assigned from the above tutorial, it should look like the following:
Step 2: Create an Azure Linux VM and SSH in
Head over to the Azure Portal to create a Linux VM of your choosing. Edge router runs on WireGuard in the background which makes it easily compatible with most Linux distributions offered by the Azure Marketplace.
SSH into your Azure VM instance.
Step 3: Setting up WireGuard for Telnyx
While SSH'ed into your VM, install WireGuard on your machine.
sudo apt update$ sudo apt install wireguard
After installation, we should now have the WireGuard folder that is located at
/etc/wireguard, where we need to configure the
Let's open the conf file:
sudo vi /etc/wireguard/wg0.conf
and copy/paste the information that we got from Step 1
Save and quit:
Step 4: Test
We can now run the VPN by simply inputting:
sudo wg-quick up wg0
We can test to see if it's working by checking the portal and seeing the last seen status change:
or you can curl/trace into your server to confirm the Global IP that is configured to it.
root@MacBook-Pro % ping 172.27.1.17
PING 172.27.1.17 (172.27.1.17): 56 data bytes
64 bytes from 172.27.1.17: icmp_seq=0 ttl=53 time=184.512 ms
64 bytes from 172.27.1.17: icmp_seq=1 ttl=53 time=183.202 ms
64 bytes from 172.27.1.17: icmp_seq=2 ttl=53 time=183.365 ms
64 bytes from 172.27.1.17: icmp_seq=3 ttl=53 time=183.040 ms
64 bytes from 172.27.1.17: icmp_seq=4 ttl=53 time=183.310 ms
64 bytes from 172.27.1.17: icmp_seq=5 ttl=53 time=183.980 ms
64 bytes from 172.27.1.17: icmp_seq=6 ttl=53 time=183.457 ms
64 bytes from 172.27.1.17: icmp_seq=7 ttl=53 time=183.097 ms
--- 172.27.1.17 ping statistics ---
8 packets transmitted, 8 packets received, 0.0% packet loss
round-trip min/avg/max/stddev = 183.040/183.495/184.512/0.471 ms
Congratulations! You have successfully connected an Azure Linux VM instance to the Telnyx Edge Routing Network to the configured IP in your portal.
If you have any further questions or would like to see more tutorials, feel free to reach out to our support team or our external Slack channel for help!