Skip to main content

Tutorial: Connect Your Azure VNet to CloudConnexa by Deploying a Connector

Abstract

Deploy an OpenVPN Network Connector on an Azure VM to connect your Azure VNet to CloudConnexa. Provide secure network access to your Azure VNet resources.

Overview

This tutorial walks you through deploying a Network Connector to an Azure virtual network (VNet) from the CloudConnexa Administration portal.

During deployment, you can select one of the following methods:

  • Native deployment: Sign in to your Microsoft Azure account from the Network Configuration Wizard and let CloudConnexa deploy the Connector directly.

  • Manual deployment: Download an Azure Resource Manager (ARM) template from CloudConnexa and deploy it from the Azure portal.

Both methods create an Azure virtual machine (VM) and install the Connector software to provide secure, private network access.

Before you begin

Before starting this tutorial, ensure you have:

  • A CloudConnexa account and Cloud ID.

  • An Azure subscription.

  • Permissions to create virtual machines and networking resources in Azure.

  • An existing Azure VNet and VNet subnet where you want to deploy the Connector.

  • An SSH public key in the resource group where CloudConnexa will deploy the Connector VM.

Important

The downloaded ARM template contains deployment information specific to the Connector, including credentials used to retrieve its connector profile. Store the template securely, do not share it, and delete it when you no longer need it.

Step 1: Create a Network

To create a Network, follow the steps below:

  1. Navigate to Networks.

  2. Select Add Network and select your desired network scenario.

  3. Complete the Define Network page.

  4. Select Next.

The Deploy Network Connector page displays.

Step 2: Select a deployment method

On the Deploy Network Connector page, select one of the following methods:

  1. On the Deploy Network Connector page, select Azure from the drop-down.

    • The Native tab for Azure deployment is displayed by default.

  2. Select one of the following deployment methods:

Option A: Deploy the Connector using the Native tab

With native deployment, you sign in to Azure from CloudConnexa and configure the Azure resources from the Network Configuration Wizard.

After authentication, your Azure account is available for deployment.

To authorize CloudConnexa:

  1. On the Native tab, select Sign in to Azure.

  2. In the Microsoft authentication dialog, sign in using your Azure account.

  3. Review and grant the requested permissions.

    • After authentication, CloudConnexa displays the Azure deployment settings.

To configure the Connector VM:

  1. Select the Azure Subscription.

  2. Select the Resource Group where CloudConnexa will deploy the Connector VM.

  3. Enter a VM Name.

  4. Select the Region.

  5. Select an SSH public key.

  6. Enter a DNS Label Prefix.

  7. Select the Virtual Network Name.

  8. Select the Subnet.

  9. Select Deploy.

CloudConnexa deploys the VM, installs the Connector software, and retrieves the connector profile.

Important

Select the VNet subnet that corresponds to the subnet configured for the Network in CloudConnexa. Using a different subnet may prevent traffic from routing correctly.

Note

The Connector VM uses the assigned Network Security Group (NSG) to control network traffic. Ensure the NSG allows the required outbound connectivity so the Connector can establish and maintain its outbound tunnel to CloudConnexa.

Continue to Verify the Connector.

Option B: Deploy the Connector using the Manual tab

With manual deployment, you download an ARM template from CloudConnexa and deploy it from the Azure portal.

The template creates and configures the resources required for the Connector, including:

  • An Ubuntu VM.

  • A network interface with IP forwarding enabled.

  • A static public IP address.

  • A Network Security Group.

  • The Connector software and configuration.

  • Network Address Translation (NAT) rules for routed traffic.

To download the template:

  1. On the Deploy Network Connector page, select the Manual tab.

  2. Select the option to download the ARM template.

  3. Save the JSON template to your local computer.

Important

Download a new template for each Connector deployment. The template contains information specific to that Connector and shouldn't be reused for another Network or Connector.

To load the downloaded template:

  1. Sign in to the Azure portal.

  2. Select Create a resource.

  3. Search for Template deployment (deploy using custom templates).

  4. Select Create.

  5. Select Build your own template in the editor.

  6. Select Load file.

  7. Select the JSON ARM template you downloaded from CloudConnexa.

  8. Select Save.

    • Azure displays the deployment settings defined by the template.

Complete the template deployment settings:

  1. Select the Azure Subscription.

  2. Select an existing Resource Group, or create one.

    • The Connector resources are deployed to the Region associated with the resource group.

  3. Complete the following Instance details:

    Parameter

    Description

    Region

    The region value propagates from the resource group.

    VM Name

    Enter a name for the Connector VM.

    Disk Type

    Select the storage type for the VM operating system disk.

    Admin Username

    Enter the administrator username for the VM. The default is ubuntu.

    Authentication Type

    Select SSH public key or password authentication. SSH public key authentication is strongly recommended.

    Admin Password Or Key

    Enter the SSH public key or password for the VM, based on the selected authentication type.

    Dns Label Prefix

    Enter a unique DNS label prefix for the VM's public IP address.

    Vm Size

    Select the Azure VM size. The template provides a default size.

    Virtual Network Name

    Enter the exact name of the existing Azure VNet. You can find the VNet name on the Virtual Networks page.

    Subnet Name

    Enter the exact name of the existing subnet where you want to deploy the Connector. You can find the subnet name on the Subnets page of the VNet.

    Important

    The Subnet Name must identify the VNet subnet that corresponds to the subnet configured for the Network in CloudConnexa. Using a different subnet may prevent traffic from routing correctly.

    Network Security Group Name

    Enter a name for the Network Security Group, or use the generated default.

To deploy the Connector:

  1. Select Review + create.

  2. Review the deployment settings.

  3. Wait for Azure to validate the template.

  4. After validation succeeds, select Create.

    • Azure creates the Connector VM and its supporting networking resources. During initialization, the VM installs the Connector software, enables IP forwarding, configures NAT, and retrieves its connector profile from CloudConnexa.

Note

The generated Network Security Group permits inbound SSH access to the VM. Review the rule and restrict its source range to align with your organization's security requirements.

Continue to Verify the Connector.

Verify the Connector

Note

Deployment typically takes several minutes.

After deployment completes:

  1. If deployment succeeds, the Connector status displays as Connected.

  2. If deployment fails, CloudConnexa displays an error message so you can review and correct the deployment configuration.

Select Finish to complete the deployment.

What happens next

The Connector maintains an outbound connection from your Azure VNet to CloudConnexa.

You can now configure applications, IP services, and Access Groups to control which users and connected networks can access resources in the Azure VNet.