It seems like your browser didn't download the required fonts. Please revise your security settings and try again.
Barracuda CloudGen Firewall

This Firmware Version Is End-Of-Support

Documentation for this product is no longer updated. Please see End-of-Support for CloudGen Firewall Firmware for further information on our EoS policy.

How to Upload Azure VHD Images for User Defined Images using ARM

  • Last updated on

To use the VHD disk images from the Barracuda Download Portal to deploy your CloudGen Firewall or Control Center in Azure, you must upload the images to your storage account. 

If you prefer to use the Microsoft Azure Portal, download the CloudGen Firewall or Control Center VHD disk images from the Barracuda Download Portal, then upload the VHD to a storage container as a page blob. Follow the instructions at Microsoft to create an image, but instead of using a virtual machine, use the VHD uploaded before. For more information, see https://docs.microsoft.com/en-us/azure/virtual-machines/windows/create-vm-generalized-managed.

Before You Begin

  • Download the CloudGen Firewall or Control Center VHD disk images from the Barracuda Download Portal.
  • Install Azure PowerShell version 1.1.0 or higher.
  • Log into your Azure account with Login-AzureRmAccount.

Step 1. Create a Resource Group for Storage

Create an Azure resource group for the storage account. Skip this step to use an existing Azure resource group.

  1. Open an Azure PowerShell.
  2. Create a resource group:

    New-AzureRmResourceGroup -Name RESOURCE_GROUP_NAME -Location LOCATION

Step 2. Create a Storage Account

Create an Azure storage account in the resource group created in Step 1. Skip this step to use an existing Azure storage account.

  1. Open an Azure PowerShell.

  2. Create a storage account:

    New-AzureRmStorageAccount -ResourceGroupName RG_NAME -Name STORAGE_ACCOUNT_NAME -Type Standard_LRS -Location YOUR_LOCATION

    azure_vhd_upload_02.png

Step 3. Create a Container and Upload the VHD Disk Image

Create a Blob container and then upload the VHD disk image to the storage account.

  1. Open an Azure PowerShell.

  2. Create a Blob container:

    $storageAcc = Get-AzureRmStorageAccount -ResourceGroupName RESOURCE_GROUP_NAME -Name STORAGE_ACCOUNT_NAME
    New-AzureStorageContainer -Name CONTAINER_NAME -Context $storageAcc.Context -Permission Blob

    azure_vhd_upload_03.png

  3. Upload the VHD disk image:

    Add-AzureRmVhd -LocalFilePath PATH_TO_LOCAL_DISK_IMAGE_FILE -ResourceGroupName RESOURCE_GROUP_NAME -Destination "$($storageAcc.PrimaryEndpoints.Blob)CONTAINER_NAME/DISK_IMAGE_NAME.vhd"
    

    azure_vhd_upload_04.png

You can now use the uploaded VHD disk image for your custom PowerShell or template-based Azure deployments using the Azure Resource Manager.

To create a reusable image that can be paired with managed disks, you can use the following commands:

$imageConfig = New-AzureRmImageConfig -Location $location
$imageConfig = Set-AzureRmImageOsDisk -Image $imageConfig -OsState Generalized -OsType Linux -BlobUri "$($storageAcc.PrimaryEndpoints.Blob)CONTAINER_NAME/DISK_IMAGE_NAME.vhd"
$image = New-AzureRmImage -ImageName IMAGE_NAME -ResourceGroupName RESOURCE_GROUP_NAME -Image $imageConfig

Next Steps

Deploy a CloudGen Firewall F VM using the uploaded source image via Azure PowerShell. For more information, see How to Deploy a CloudGen Firewall in Microsoft Azure Using PowerShell and ARM.