The following describes how to download the .vhd file and upload it to Microsoft Azure.
To use the VHD to create a new Azure VM, you will need to upload the VHD to a storage account and create a managed disk from the VHD.
To download the .vhd file and upload it to Microsoft Azure
-
Log on to the support portal with your credentials.
-
Navigate to support portal and select syslog-ng Store Box. Select the product version or model corresponding to the version of your SSB, and download the compressed VHD disk image under Download Software.
Extract the image .zip file to the directory of your choice. The extracted file will be ssb-<full_version_number>.vhd.
-
Download and install azure-cli from GitHub - azure-cli.
You will use the az command and its parameters to create all the required prerequisites for uploading the VHD to Microsoft Azure.
-
Create a resource group:
az group create \ --name <resource_group_name> \ --location <resource_group_region>
Where:
-
--name: Name your resource group. For example, MyResourceGroup.
-
--location: The region of the resource group. For example, westus.
For details on the command and its parameters, see az group create.
-
-
Create a storage account:
az storage account create \ --name <storage_account_name> \ --resource-group <resource_group_name> \ --location <storage_account_location> \ --kind Storage \ --sku Standard_LRS
Where:
-
--name: Name your storage account. For example, myStorageAccount.
-
--resource-group: The name of the resource group in which you create the storage account. For example, MyResourceGroup.
-
--location: The region of the storage account, but only what is permitted by the resource group. For example, westus.
-
--kind: The type of storage account. You will create a storage, so enter Storage, which is the default value.
-
--sku: The storage account SKU. Standard_LRS is a standard, HDD-type storage.
For details on the command and its parameters, see az storage account create.
-
-
List the storage account keys:
Save one of these keys for later, because you will need it during the upload process:
az storage account keys list \ --resource-group <resource_group_name> \ --account-name <storage_account_name>
Where:
-
--resource-group: The name of the resource group in which you have created the storage account. For example, myResourceGroup.
-
--account-name: The name of the storage account. For example, MyStorageAccount.
For details on the command and its parameters, see az storage account keys list.
-
-
Create a storage container inside the storage account:
You will upload the VHD into this container:
az storage container create \ --name <container_name> \ --account-name <storage_account_name>
Where:
-
--name: Name your storage container. For example, MyStorageContainer.
-
--account-name: The name of the storage account. For example, MyStorageAccount.
For details on the command and its parameters, see az storage container create.
-
-
Upload the VHD file to the storage container:
az storage blob upload \ --name <name_of_uploaded_vhd> \ --account-name <storage_account_name> \ --account-key <storage_account_key> \ --container-name <container_name> \ --type page \ --file <path_to_local_vhd_file>
Where:
-
--name: Name your blob, that is, the upload VHD. For example, MyBlob.
-
--account-name: The name of the storage account. For example, MyStorageAccount.
-
--account-key: The storage account key that you have saved before.
-
--containername: The name of the storage container. For example, MyStorageContainer.
-
--type: Defaults to page for .vhd files.
-
--file: Path of the file to upload as the blob content. For example, path/to/ssb-<full_version_number>.vhd.
For details on the command and its parameters, see az storage blob upload.
-