Create the Azure Connector Virtual Machine in Azure using the Command Line Interface (CLI)
- Last Updated: February 27, 2024
- 2 minute read
- LoadMaster
- LoadMaster 360
- Documentation
You can also create the Connector Virtual Machine (VM) in Azure using CLI commands.
You must have a resource group and storage account created in Azure
before you can deploy a Connector. If you need to create a storage account and add a
container to it, you can use the following commands:
Note: In the following examples, placeholder text is indicated by text
within angular brackets, for example, <storage_account> would be replaced by
the relevant storage account name, such as examplestorageaccountname.
Note: Refer to the Azure CLI documentation for further details on the
command line options.
az storage account create -g <resource_pool> -n <storage_account>
az storage container create -g <resource_pool> --account-name <storage_account> -n <container_name>
To upload the Connector.vhd file to the container, run the following command:
az storage blob upload -f Connector.vhd -c <container_name> --account-name <storage_account> -n Connector.vhd
Note: It can take approximately 10 to 15 minutes for
the file to upload depending on the speed of your internet connectivity from your device
to the Azure portal.
After uploading the Connector.vhd file, create a managed disk using the following command:
az disk create -n <disk_name> -g <resource_pool> --source https://<storage_account>.blob.core.windows.net/<container_name>/Connector.vhd --os-type linux --size-gb 32
The az vm create command accepts different inputs depending on your configuration. Once the disk is created, create the Connector VM by using a command similar to the following:
az vm create -n <connector_VM_name> -g <resource_pool> --nsg <network_security_group_name> --os-type linux --vnet-name <virtual_network_name> --subnet <subnet_name> --verbose --boot-diagnostics-storage <storage_account> --public-ip-address "" --attach-os-disk <disk_name>
It takes approximately 4 minutes for the Connector to become reachable in LoadMaster 360 after the Virtual Machine is deployed in Azure.
When adding a LoadMaster that is deployed in Azure to LoadMaster 360, ensure to include the port number as part of the IP address, for example, <IPAddress>:8443.