We use cookies on our website to ensure we provide you with the best experience on our website. By using our website, you agree to the use of cookies for analytics and personalized content.This website uses cookies. More Information
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 https://campus.barracuda.com/doc/71862301/ for further information on our EoS policy.

How to Create a Azure Image from a VHD Disk Image

  • Last updated on

To create your own custom Barracuda NG Firewall or NG Control Center images from the VHD disk images available in the Barracuda Download Portal, you must upload the VHD file to your Azure storage account. Then, you can create a custom image using the uploaded disk image.

In this article

Before You Begin

Step 1.  Create an Azure Storage Account

Create the storage account and a container as the upload destination.

  1. Log into your Microsoft Azure Management Portal (https://manage.windowsazure.com).
  2. In the left pane, click STORAGE.
  3. In the bottom left corner, click + NEW. The Storage Account window opens.
  4.  Click  Quick Create, and configure the following settings:
    • URL – Enter a unique URL.
    • Location/Affinity Group – Select your Location. E.g., West Europe
    • Replication – Select Geo-Redundant.

The storage account is ready when its status changes from Creating to Online.

Step 2. Create a Storage Container

You must create a storage container because you cannot create virtual machine images from files that are uploaded to the root directory of the storage account.

  1. Log into your Microsoft Azure Management Portal (https://manage.windowsazure.com).
  2. In the left pane, click STORAGE.
  3. Click the storage account that you created in Step 1.
  4. Click on the CONTAINERS tab.
  6. Enter a NAME for the container (e.g., vhd).
  7. From the ACCESS list, select Private.
  8. Click the check mark icon (AzureOK.png).


Step 3. Upload the Barracuda NG Firewall Azure VHD Image

Upload the Barracuda NG Firewall Azure VHD image to a Microsoft Azure storage container.


You only need to import the publishsettings file when using Azure PowerShell for the first time.

  1. Launch the Azure PowerShell.
  2. At the PS prompt, download your Azure Publish Settings file: 
  3. Your default browser opens. Save the publish settings file.
  4. Import the publishsettings file by typing:

    Import-AzurePublishSettingsFile c:\path-to-settingsfile\settingsfile.publishsettings
  5. Verify the Azure account subscription by typing:


  6. Log into your Microsoft Azure Management Portal (https://manage.windowsazure.com).
  7. On the DASHBOARD page of the storage account, click Storage in the left pane and get the URL of the Blob destination (e.g., http://techlib.blob.core.windows.net).
  8. Upload the VHD to your Azure storage container by typing:

    Add-AzureVhd -Destination <BLOBS-URL/container/FILENAME.vhd> -LocalFilePath <path-to-vhd-file/filename.vhd>



    Upload the VHD to a storage container. Microsoft Azure does not allow a virtual machine to be created from a VHD file in the root ($root) directory.

Step 4. Create a Virtual Machine from a VHD Image

Create a virtual image from the uploaded VHD image.

  1. Log into your Microsoft Azure Management Portal (https://manage.windowsazure.com).
  2. In the left pane, click VIRTUAL MACHINES.
  3. Click IMAGES.
  5. In the Create an image from a VHD window:
    1. Enter the NAME for the virtual image (e.g., BNG).
    2. Either enter the VHD URL, or click the folder icon to select the image that you uploaded in Step 3 from the storage container.
    3. From the OPERATING SYSTEM FAMILY list, select Linux.
    4. Select the check box to confirm that the Microsoft Azure Linux Agent has been run on the virtual machine associated with the VHD.
  6. Click the checkmark icon (AzureOK.png).

You can now select your custom Barracuda NG Firewall or NG Control Center image when deploying the VM.

Next Steps


Last updated on