Creating an Image with the Wallarm Filter Node · Wallarm
Creating an Image with the Wallarm Filter Node on the Microsoft Azure Platform
To set up auto-scaling of the Wallarm filter nodes deployed on the Microsoft Azure platform, you first need virtual machine images. This document describes the procedure for preparing an image of the virtual machine with the Wallarm filter node installed. For detailed information about setting up auto-scaling, proceed to this link.
To create an image with the Wallarm filter node on the Microsoft Azure platform, perform the following procedures:
Creating and configuring a virtual machine with the filter node on the Microsoft Azure platform;
Creating an image on the basis of the configured virtual machine.
1. Creating and Configuring a Virtual Machine Containing the Filter Node on Microsoft Azure
Before creating an image, you need to perform an initial configuration of a single Wallarm filter node. To configure a filter node, do the following:
Create and configure a virtual machine with the filter node on the Microsoft Azure platform.
The filter node requires access to a Wallarm API server for proper operation. The choice of Wallarm API server depends on the Wallarm Cloud you are using:
Connecting to the virtual machine via a custom private key
Make sure you have access to the private key from the key pair that is used to connect to your filter node via SSH.
Please note that you need to connect the filter node to the Wallarm cloud using the addcloudnode script. Multiple filter nodes are allowed to connect to the Wallarm cloud using the same token.
Thus, you will not need to manually connect each of the filter nodes to the Wallarm cloud when the size of the scale set increases.
It is recommended to perform a virtual machine deprovision before creating an image so that you create a deprovisioned image of the virtual machine. Virtual machines created on the basis of such an image can be deployed in the scale set with new user accounts without any dependence on the user who created the image.
Connect to the virtual machine via the SSH protocol using the private key created during filter node deployment on the Azure platform.
Run the following deprovision command:
# waagent -deprovision+user
Enter y to confirm deprovisioning.
Wait until the deprovision process is finished.
The deprovision process
During the deprovision process, some of the files and the existing user account that was used to connect to the machine via SSH are deleted from the virtual machine.
To see detailed information about the deprovision procedure, proceed to this link.
Note that the filter node configuration is not affected by the deprovision procedure.
After you have finished configuring the virtual machine, turn it off by completing the following actions:
Navigate to the “Virtual Machines” page.
Open the drop-down menu by clicking the menu button on the right of the “Subscription” column.
Select “Stop” in the drop-down menu.
2. Creating a Virtual Machine Image
To create an image and use it successfully in the future, virtual machine deprovision is required.
To see detailed information about the virtual machine deprovision process, proceed to this link.
Proceed to the “Virtual Machines” page and click the name, from the list, of the previously created virtual machine.
Click the “Capture” button in the virtual machine overview window that appears.
Enter the desired image name into the “Name” field.
Select the resource group that the image should be placed into from the “Resource group” drop-down list. If necessary, you can create a new resource group by clicking the “Create” button under the drop-down list.
During the image creation process, the generalization of the base virtual machine is performed. After this action, the machine becomes unavailable for further use and cannot be launched. If you want to delete the base virtual machine after image capturing, select the “Automatically delete this virtual machine after creating the image” checkbox.
If necessary, turn on zone resiliency by clicking the “On” button.
This function replicates the image onto all of the availability zones of the current region. This ensures that the image is still accessible from other zones in case of an accident in one of the availability zones where the image is stored.
To see detailed information about availability zones on the Azure platform, proceed with this link.
Click the “Create” button to launch the virtual machine image creation process.
Once the creation process is finished, make sure that the created image is present in the list on the “Images” page. You can find it by searching by name.
Now you can set up the auto-scaling of Wallarm filter nodes on the Microsoft Azure platform using the prepared image.
Creating an Image with the Wallarm Filter Node · Wallarm
Creating an Image with the Wallarm Filter Node on the Microsoft Azure Platform
To set up auto-scaling of the Wallarm filter nodes deployed on the Microsoft Azure platform, you first need virtual machine images. This document describes the procedure for preparing an image of the virtual machine with the Wallarm filter node installed. For detailed information about setting up auto-scaling, proceed to this link.
To create an image with the Wallarm filter node on the Microsoft Azure platform, perform the following procedures:
Creating and configuring a virtual machine with the filter node on the Microsoft Azure platform;
Creating an image on the basis of the configured virtual machine.
1. Creating and Configuring a Virtual Machine Containing the Filter Node on Microsoft Azure
Before creating an image, you need to perform an initial configuration of a single Wallarm filter node. To configure a filter node, do the following:
Create and configure a virtual machine with the filter node on the Microsoft Azure platform.
The filter node requires access to a Wallarm API server for proper operation. The choice of Wallarm API server depends on the Wallarm Cloud you are using:
Connecting to the virtual machine via a custom private key
Make sure you have access to the private key from the key pair that is used to connect to your filter node via SSH.
Please note that you need to connect the filter node to the Wallarm cloud using the addcloudnode script. Multiple filter nodes are allowed to connect to the Wallarm cloud using the same token.
Thus, you will not need to manually connect each of the filter nodes to the Wallarm cloud when the size of the scale set increases.
It is recommended to perform a virtual machine deprovision before creating an image so that you create a deprovisioned image of the virtual machine. Virtual machines created on the basis of such an image can be deployed in the scale set with new user accounts without any dependence on the user who created the image.
Connect to the virtual machine via the SSH protocol using the private key created during filter node deployment on the Azure platform.
Run the following deprovision command:
# waagent -deprovision+user
Enter y to confirm deprovisioning.
Wait until the deprovision process is finished.
The deprovision process
During the deprovision pr
ocess, some of the files and the existing user account that was used to connect to the machine via SSH are deleted from the virtual machine.
To see detailed information about the deprovision procedure, proceed to this link.
Note that the filter node configuration is not affected by the deprovision procedure.
After you have finished configuring the virtual machine, turn it off by completing the following actions:
Navigate to the “Virtual Machines” page.
Open the drop-down menu by clicking the menu button on the right of the “Subscription” column.
Select “Stop” in the drop-down menu.
2. Creating a Virtual Machine Image
To create an image and use it successfully in the future, virtual machine deprovision is required.
To see detailed information about the virtual machine deprovision process, proceed to this link.
Proceed to the “Virtual Machines” page and click the name, from the list, of the previously created virtual machine.
Click the “Capture” button in the virtual machine overview window that appears.
Enter the desired image name into the “Name” field.
Select the resource group that the image should be placed into from the “Resource group” drop-down list. If necessary, you can create a new resource group by clicking the “Create” button under the drop-down list.
During the image creation process, the generalization of the base virtual machine is performed. After this action, the machine becomes unavailable for further use and cannot be launched. If you want to delete the base virtual machine after image capturing, select the “Automatically delete this virtual machine after creating the image” checkbox.
If necessary, turn on zone resiliency by clicking the “On” button.
This function replicates the image onto all of the availability zones of the current region. This ensures that the image is still accessible from other zones in case of an accident in one of the availability zones where the image is stored.
To see detailed information about availability zones on the Azure platform, proceed with this link.
Click the “Create” button to launch the virtual machine image creation process.
Once the creation process is finished, make sure that the created image is present in the list on the “Images” page. You can find it by searching by name.
Now you can set up the auto-scaling of Wallarm filter nodes on the Microsoft Azure platform using the prepared image.