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

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 F-Series Firewall or NextGen Control Center in Azure, you must upload the images to your storage account. It is currently not possible to deploy user-defined images via the Azure web portal; instead, use PowerShell or template-based deployment methods.

Before You Begin

  • Download the F-Series 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 resuable image that can be paired with managed disks, you can then 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 NextGen Firewall F VM using the uploaded source image via Azure PowerShell. For more information, see How to Deploy an F-Series Firewall in Microsoft Azure Using PowerShell and ARM.

Last updated on