You can deploy an on-prem host in Microsoft Azure to deliver BloxOne services, such as BloxOne DDI or BloxOne Threat Defense, to the instances in your Azure-based deployments.
Before you deploy on-prem hosts in Azure, ensure that you have completed the following:
- Setting up a Microsoft Azure account and creating a resource manager in Azure. For information, refer to the Microsoft Azure documentation.
- Downloading the .vhd package from the BloxOne Cloud Services Portal. For information, see Downloading VHD Packages.
- Optionally, installing the Microsoft Azure CLI if you want to use the CLI to deploy the on-prem host. For information, see How to install the Azure CLI.
- The DHCP service is not officially supported yet.
- You cannot update network configuration through the Cloud Services Portal.
Supported Azure VM Flavors
# of vCPU
Deploying On-Prem Hosts in Microsoft Azure
Before deploying the on-prem host, you must first download the .vhd package from the BloxOne Cloud Services Portal, and then upload it to the Azure storage account. If you prefer to deploy the on-prem host using the Azure CLI, ensure that you install the Azure CLI on Linux.
To deploy an on-prem host in Microsoft Azure, complete the following:
- Set up a Microsoft Azure account and create a resource manager in Azure. For information, refer to the Microsoft Azure documentation.
- Download the .vhd package from the Infoblox Cloud Services Portal. For information, see Downloading VHD Packages.
- Upload the .vhd package to your Azure storage account. For information see Uploading VHD to Azure Storage Account.
- Deploy the on-prem host in Azure. For information, see Deploying On-Prem Hosts in Azure.
Downloading VHD Packages
To download the .vhd package, complete the following:
Log in to the Cloud Services Portal.
Go to Administration -> Downloads.
On the Downloads page, click Download Package for OVA in the On-Prem Hosts section.
Choose Download Package for Azure (60 GB Disk) from the drop-down menu.
- Click Download Package for VM, and then save the .vhd file on your system.
Uploading VHD to Azure Storage Account
After you have downloaded the Azure .vhd package from the Cloud Services Portal, you can upload the package to your Azure storage account using the Docker commands (if you have a Docker environment) or Azure commands.
Using Docker Commands
In your Docker environment, enter the following commands:
docker run --rm -v <abs-path-to-the-dir-of-vhd>:/vhd -v $HOME/.azure:$HOME/.azure infoblox/azurevhdutils upload --localvhdpath /vhd/<your-local-fixed-size-vhd-name>.vhd --stgaccountname <mystorageaccount> --stgaccountkey <get-it-from-storage-acc-access-keys> --containername <mycontainer> --blobname bloxone.vhd
Using Azure Commands
To use the Azure commands, you need to first build the Azure-vhd-utils binary from Git. The Azure-vhd-utils binary can be built from the public Git repo at https://github.com/microsoft/azure-vhd-utils.
Azure only supports disks with a fixed size format; if you use azure-vhd-utils to perform the upload, it will convert the image to a fixed size format.
To build the Azure-vhd-utils binary, complete the following:
- Run the
mkdir ~/tmpcommand to make a temporary directory.
- Run the
cp -r ~/upload/src/github.com/Microsoft/azure-vhd-utils ~/tmpcommand to copy azure-vhd-utils to the temporary directory.
- Run the
- Run the
makecommand to install azure-vhd-utils.
If the command displays the if exec: "gcc": executable file not found in $PATH error message, run the
export CGO_ENABLED="0"command and then run the
- Run the
sudo cp azure-vhd-utils /usr/bin/command.
After you have built the Azure-vhd-utils binary, run the following command to upload the .vhd file to Azure using the following format:
azure-vhd-utils upload --localvhdpath <local_path> --stgaccountname <storage_account> --stgaccountkey <account_key>
--containername <container_name> --blobname <image_name>
Deploying On-Prem Hosts in Azure
After you have successfully uploaded the .vhd file to the Azure storage account, you can deploy the on-prem host in Azure using one of the following methods:
- Microsoft Azure CLI. For information, see Using the Azure CLI to Deploy the On-Prem Host.
- Microsoft Azure Portal: For information, see Using the Azure Portal to Deploy the On-Prem Host.
Using the Azure CLI to Deploy the On-Prem Host
To deploy the on-prem host using the Azure CLI, complete the following:
- If you haven't already done so, install the Azure CLI. For information, see see How to install the Azure CLI.
- Run the
az logincommand in the Azure CLI to generate an authentication token.
- The CLI opens your default browser and loads the sign-in page. If the CLI does not open the browser for you, open a browser window and log in to https://microsoft.com/devicelogin using the authentication token you obtained from Azure. For more information, see Sign in with Azure CLI.
- Sign in using your account credentials.
- Run the following command at the CLI prompt:
az vm create --resource-group <> --name <> --os-type Linux --storage-account <> --storage-container <> --image "https://<storage_account_name>.blob.core.windows.net/<storage>/<container_blob_name>/<image_name>" --os-disk-name <> --size Standard_F4s_v2 --admin-username azureuser --admin-password Infoblox@123 --use-unmanaged-disk --location westus --custom-data <> --public-ip-address ""
The following is a sample CLI command with values:
az vm create --resource-group onprem-qa-west --name bloxone-test-vm --os-type Linux --storage-account onpremqa --storage-container testing --image "" --os-disk-name bloxone-test-vm --size Standard_F4s_v2 --admin-username azureuser --admin-password Infoblox@123 --use-unmanaged-disk --location westus --custom-data userdata_1.yaml --public-ip-address ""
Using the Azure Portal to Deploy the On-Prem Host
To deploy the on-prem host using the Azure Portal, complete the following:
- Log in to your Azure Portal.
- Go to Images, and click Create to create an image from the .vhd package in the storage account.
- Enter all the relevant fields. In the Storage blob field, ensure that you navigate to and locate the .vhd file you uploaded to the storage account.
- Click Review + Create to review the image before you create it.
- Create a virtual machine using the image you created. In the Size field, ensure that you select the supported flavor, which is Standard_F4S.
- In the Custom data field, ensure that you add the parameters that are specific to your on-prem host. You can download a YML file and customize your user data file. You can then copy the information and past it here. For information about the YML file and supported parameters, see YML and JSON Templates.
Optionally, you can use custom data with http proxy as shown below:
- Click Review + Create to launch the on-prem host.
To check the current status of the on-prem host, you can go to Manage -> On-Prem Hosts in the Cloud Services Portal. For more information about the host status, see Viewing On-Prem Host Status.
You cannot use the IP Interface Settings In the Cloud Services Portal to modify IP configurations for the on-prem host in Azure. Instead, use the options provided in the Azure Cloud Portal to change IP configurations for the on-prem host.
This page has no comments.