Configuring FusionHub on Microsoft Azure


#1

FusionHub is the virtual SpeedFusion appliance from Peplink which allows you to establish SpeedFusion connections between cloud servers and physical Peplink devices, among those supported is Microsoft Azure.

Configuration (InControl 2):

1) From your InControl 2 Organization level -
  • Organization > Settings > Warranty & License

FH1

On the “Warranty Status” screen, click the Create Evaluation License button-

image

To add FusionHub onto your organization, navigate to Organization>Settings>Add Devices -

FH3
image

FusionHub Download:

Download FusionHub from the following link:

image
image
image
image

Configuration steps (MS Azure):

1. Create an Azure storage account to save the FusionHub .vhd image that you downloaded to your local computer.

Login to your Azure Portal: https://portal.azure.com/

  • Create a Blob Storage account and applicable Resource Group together.

Click New > Storage Account
image
image

Fill in the Name for the Storage Account and Resource Group; set Account Kind to Blob Storage, Replication to LRS and Location to” your own location” and click Create.

image

Open the Storage Account that you just created by clicking on it and create a container.

Click + Container to get started.

image

Type the Name of the container in the Name field, choose access type Private and click OK.

FH14

2. Create a Virtual Network that your FusionHub will use to connect to existing and new Virtual Machines in your Azure Portal

Click +New > Networking > Virtual Network and fill in the fields required.

Click Create

image

3. Upload the VHD file from your local computer to the Azure Portal

To upload the FusionHub.vhd file you need to make a note of the Source and Destination path.
NOTE: You’ll have to manually add “\fusionhub.vhd” to the end of the file path for both the Source and Destination when entering.

image

In this example the source path is: “C:\Users/localadmin/Desktop/FHAzure/fusionhub.vhd"

Your Destination path is the location in Microsoft Azure.

  • These details can be copied from the properties of the Azure Storage Container.

image

Install Azure Powershell

Azure PowerShell is a set of modules that provide cmdlets to manage Azure with Windows PowerShell. You’ll need this to upload the .VHD file to your Azure Portal and create the Virtual Machine.

Download and install the Micrososft Azure Powershell using the WEBPI here:
https://www.microsoft.com/web/downloads/platform.aspx

image
image

Start Windows Powershell with administrator privileges.
image

When Powershell is open, log on to Azure within Powershell by typing the following
command:

  • Login-AzureRmAccount

image

Enter your Microsoft Azure login details.
image

To make the commands a bit easier, we’ll define macros for both the Source and Destination information. This allows you to type “$destinationVHD” or “$destinationVHD” in any code when you are referring to their file paths.

Define the macros as follows:

$SourceVHD = “C:\temp\fusionhub\FusionHub\VHD\fusionhub.vhd”

  • where you downloaded the VHD file on your local PC

$destinationVHD = “https://peptutsa.blob.core.windows.net/pepturcont /fusionhub.vhd”

  • where your Azure Storage Container is located

image

The following command starts copying the file to your Microsoft Azure portal (use your own resource
Group Name):

Add-AzureRmVhd -ResourceGroupName %yourresourcegroupname% -LocalFilePath $SourceVHD -Destination $destinationVHD

image

4. Create a VM from the FusionHub VHD

In this example, we create the FusionHub VM using a script, you only have to add a few parameters and our FusionHub VM should be up and running. You can find most of the parameters in the Microsoft Azure Portal.

location: defined in MS Azure (Storage Account)
vmName: defined in MS Azure
osType: Linux
osDiskVhdUri: defined in MS Azure (Storage Container file path)
vmSize: if unknown, use “Standard_A0
existingVirtualNetworkName: defined in MS Azure (Virtual Network)
existingVirtualNetworkResourceGroup: defined in MS Azure (Storage Account)
subnetName: default (manually entered)
dnsNameForPublicIP: same as vmName

image

Copy and paste (right-click!) the following code into Azure Powershell after you have replaced the ResourceGroupname for your ResourceGroupname

New-AzureRmResourceGroupDeployment -Name FHDeployment -ResourceGroupName peptutrg -TemplateUri http://download.peplink.com/files/fh/azuredeploy.json

When the script is successful you’ll see this screen:

image

You will see the FusionHub VM in your resources in the Microsoft Azure Portal and are able to access the FusionHub UI via the Public IP address (found in the Azure portal).

image
image


Deploy FusionHub in Azure?
FusionHub and Cloud Platform integration (AWS, Azure, Google Cloud)
Deploy FusionHub in Azure?
FusionHub supported in the Azure environment
#2

Getting this error when attempting to deploy.

New-AzureRmResourceGroupDeployment : 5:07:28 PM - Error: Code=InvalidTemplateDeployment; Message=The template
deployment ‘FHDeployment’ is not valid according to the validation procedure. The tracking id is
‘f96b4b97-e848-439f-a09d-4adeaaed8d98’. See inner errors for details. Please see https://aka.ms/arm-deploy for usage
details.
At line:1 char:1

  • New-AzureRmResourceGroupDeployment -Name FHDeployment -ResourceGroupN …
  •   + CategoryInfo          : NotSpecified: (:) [New-AzureRmResourceGroupDeployment], Exception
      + FullyQualifiedErrorId : Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation.NewAzureResourceGroupDep
     loymentCmdlet
    
    

Why?