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

How to Upload Azure VHD Images for User-Defined Images Using PowerShell

  • Last updated on

To deploy the Barracuda CloudGen Firewall on Microsoft Azure using Azure PowerShell, you can upload a local VHD image to a managed Azure disk and then create an Azure gallery image definition.

Before You Begin

  • Download the CloudGen Firewall or Control Center VHD disk images from the Barracuda Download Portal.

  • Install Azure PowerShell version 7 or higher.

  • Log into your Azure account with Login-AzureRmAccount.

Step 1. Upload the Local VHD as a Managed Disk

  1. Open an Azure PowerShell.

  2. To upload a local VHD file to a managed Azure disk, use the PowerShell command:

Add-AzVhd -LocalFilePath <path> -ResourceGroupName <resource-group> -Location <region> -DiskName <name> -DiskOsType Linux -DiskHyperVGeneration V1 [-DiskZone <zone>]

For the command, replace the following details:

* path: full path to the local VHD file
* resource-group: name of the resource group where the managed disk will be created
* region: region where the managed disk will be created
* name: name of the managed disk
* zone: (optional) name of the availability zone, if high availability is desired (and supported by the chosen region)

This command first computes an MD5 checksum of the image and then starts the upload itself. When done, a managed disk will be created in the target region and resource group with the specified name.

Step 2. Create the Azure Gallery Image Version

Create an Azure gallery image version from the managed disk created in the previous step.

  1. Log into the Azure portal: https://portal.azure.com

  2. Go to the managed disk created at the previous point.

  3. Select + Create VM image version.

    managed_disk.png
  4. The Create VM image version window opens.

  5. Select the name of the Resource group that will hold the Azure gallery.

  6. Enter the Version number of your Barracuda CloudGen Firewall.

    create_image_version_01a.png
  7. In the Gallery details section, select a name for your gallery, or click Create new to create a new entry.

  8. Click Create new to create a VM image definition.

  9. The Create a VM image definition window opens. Fill in VM image definition name, Publisher, Offer, and SKU.

    create_image_version_01b.png

  10. Click Ok.

  11. Click Next : Replication.

  12. In the Replication dialog, chose the number and the name of the regions holding replicas.

  13. Click Next : Encryption.

  14. In the Encryption dialog, leave the settings as default.

    create_image_version_03.png

  15. Click Next : Tags.

  16. In the Tags dialog, add your tags if needed.

  17. Click Review + create.

    create_image_version_04.png

  18. Review your settings and click Create. Wait for the deployment to finalize. Note that this can take some time depending on how fast the replication is done.

After the deployment is finalized, you can use the Azure gallery image definition to launch VM instances through the usual methods.

Next Steps

Deploy a CloudGen Firewall 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.