WaveMaker Enterprise Setup on Azure
Prerequisites
- Access to Azure to create VM and other resources. For more details, see Azure resource documentation.
- An Azure Virtual Network (VNet) represents your network in the cloud. We are assuming an Azure Virtual Network (VNet) is already built or existed. For the creation of a virtual network, see Azure virtual network creation.
Creation of Network Security Groups
- For creating network security groups, see Creating NSG in Azure.
- For WME setup in Azure, it requires two security groups , including:
Creating network security group for platform virtual machine
- Provide necessary information, including name and region, by selecting the resource group.
- Provide tags that are name-value pairs for the network security group for categorizing the resources.
- Create a network security group for a platform virtual machine with the provided information.
- After creating the network security group under settings, select inbound security rules, create a rule for developer network access and select protocol TCP and add a rule to a network security group.
If you want ssh access to only desired networks, create another rule and provide your network IPs for ssh access.
Create another rule to open additional ports to access a Platform Virtual Machine from the Studio Workspace /App Deployment virtual machine. Next, select a destination.
If you select the destination as a virtual network, the security rule is applied to Virtual Machines irrespective of the virtual network of the platform Virtual Machine. If you choose the destination as an application security group, it applies only to the VMs connected to that application security group. If you select the destination as IP Addresses, the rules apply to the respected IP address resources. For more information, see Filter Network Traffic in Azure.
Next, select protocol as TCP and select action allow. Provide priority is after the public access ports and select save and add the rule to the network security group.
Creation of network security group for Workspace/AppDeployment virtual machine
- Provide necessary information, including name and region, by selecting the resource group.
- Provide tags that are name-value pairs for the network security group for categorizing the resources.
- Create network security group for a platform virtual machine with the provided information.
Create a security rule to open additional ports for access from the Platform Virtual Machine. Select a destination.based on the destination it applies the rules to virtual machines.
If you select the destination as a virtual network, the security rule is applied to Virtual Machines irrespective of the virtual network of the platform Virtual Machine. If you choose the destination as an application security group, it applies only to the VMs connected to that application security group. If you select the destination as IP Addresses, the rules apply to the respected IP address resources. For more information, see Filter Network Traffic in Azure.
- If you want ssh access to only desired networks create another rule and provide your network ips for ssh access.
Create a Virtual Machine for WME Platform
- Select Ubuntu 16.04 image, 4 vCPU, and 16 GiB (gigabyte) memory. For WME platform virtual machine, select the same resource group and region of the virtual network and network security group.
- Select the authentication type password or ssh public key for launching a virtual machine.
- At disk section create 2 disks one for wm-runtime and another for wm-data with 50 and 150 GB size.if you want any additional disk you can add.
- At the networking section provide created virtual network details at the virtual network and at the NIC network security group select advanced options provide network security group of the platform.
- Configure monitoring and management options for virtual machine.
- If required add additional configuration, agents or scripts for virtual machine.
- Provide tags that are name-value pairs for the virtual machine for categorizing the resources.
- After reviewing the virtual machine select creation option for creating a virtual machine.
Create a Virtual Machine for Studio Workspace/App Deployment Virtual Machine
Applies to workspace Virtual Machine/AppDeployment Virtual Machine
- Select the Ubuntu 16.04 image, 4 vCPU, 16 GiB (gigabyte) memory for the WME platform virtual machine, and select the same resource group and region of the virtual network and network security group.
- Select the authentication type password or ssh public key for launching a virtual machine.
- Create a disk for external usage at the disk section and provide a minimum of 100GB size with premium SSD disk type.
- At the networking section, provide the created-virtual network details for the virtual network. At the NIC network security group, select advanced options to give the network security group of Studio Workspace Virtual Machine/App Deployment Virtual Machine.
- Configure monitoring and management options for the virtual machine.
- If required, add additional configuration, agents, or scripts for the virtual machine.
- Provide tags that are name-value pairs for the virtual machine for categorizing the resources.
- After reviewing the virtual machine, select the creation option for creating a virtual machine.
Mounting Disks in Virtual Machines
Mounting Disk in Platform Virtual Machines
- For ssh into the platform virtual machine, use the following command.
- If you are using the ssh key method for login, use the following command.
ssh -i /path/to/ssh-privatekey username@ipaddress
- If you are using the ssh username and password for login, use the following command.
ssh username@ipaddress
- Check your list of block devices available by using the following command.
lsblk
- New volumes are raw block devices, and you must create a file system on them before you can mount and use them. For creating file systems, use the following command.
Command : mkfs -t ext4 /dev/<block-device-name_1>
mkfs -t ext4 /dev/<block-device-name_2>
Example :
mkfs -t ext4 /dev/sdd
mkfs -t ext4 /dev/sdc
- Use the
mkdir
command to create a mount point directory for the volume. The mount point is where the volume is located in the file system tree and where you read and write files after you mount the volume. For WME-Setup, create two directories using the following commands.
mkdir /wm-data /wm-runtime
- Use the following command to mount the volume at the directory.
Command :
mount /dev/<block-device-name_1> /wm-data
mount /dev/<block-device-name_2> /wm-runtime
Example :
mount /dev/sdc /wm-data
mount /dev/sdd /wm-runtime
- To mount an attached Azure Disks on every system reboot, add an entry for the device to the /etc/fstab file.
- Take UUID of disks for identification by using the command.
blkid
- To enter the UUID of the disks in fstab, use the following format.
UUID=your-block-device-UUID /wm-data ext4 defaults ,nofail 0 2
UUID=<block-device_1-UUID> /wm-runtime ext4 defaults ,nofail 0 2
Mounting Disks in Studio Workspace Virtual Machine/App Deployment Virtual Machine
Applies for StudioWorkspace Virtual Machine/AppDeployment Virtual Machine.
- For ssh into the platform virtual machine, use the following command.
- If you are using the ssh key method for login, use the following command.
ssh -i /path/to/ssh-privatekey username@ipaddress
- If you are using the ssh username and password for login, use the following command.
ssh username@ipaddress
- Check your list of block devices available by using the following command.
lsblk
- New volumes are raw block devices, and you must create a file system on them before you can mount and use them. For creating file systems, use the following command.
Command: mkfs -t ext4 /dev/< block-device-name >
Example: mkfs -t ext4 /dev/sdc
- Use the
mkdir
command to create a mount point directory for the volume. The mount point is where the volume is located in the file system tree and where you read and write files after you mount the volume. For WME-Setup, create two directories using the following commands.
mkdir /data
- Use the following command to mount the volume at the directory.
Command: mount /dev/block-device-name /data
Example: mount /dev/sdc /data
- To mount an attached Azure Disks on every system reboot, add an entry for the device to the
/etc/fstab
file. - Take UUID of disks for identification by using the command.
blkid
- To entery the UUID of the disks in fstab, use the following format.
UUID=your-block-device-UUID /data ext4 defaults ,nofail 0 2
What's next
- Install prerequisites softwares based on OS.
- Start WME Installation process