VM-based Setup on Azure
  • 26 Oct 2023
  • 1 Minute to read
  • Dark
    Light
  • PDF

VM-based Setup on Azure

  • Dark
    Light
  • PDF

Article summary

About this Article
This article provides environment setup steps for deploying VSP on Azure VM.


Pre-requisites

Two VM instances are required for VSP – one for VSP CMS and (Optional - Remote AE only) one for VSP AE.

The pre-requisites for VSP installation:

  1. VM instance with:
    1. Docker
    2. Docker Compose
    3. Network Security Group with the list of ports utilized by VSP components. Refer to the VM article for information on the ports


Azure Machine Creation

  1. Access the Azure Virtual machines console and click Virtual machines
  2. Navigate to Virtual machines > Create > Azure virtual machine
  3. Provide the required information:
    1. Subscription: Free Trial/pay-as-you-go
    2. Resource group: If there is no existing resource group, create a new one
    3. Virtual machine name:   Custom name for the VM
    4. Region: Provide the Custom region
    5. Availability Zone: Select the appropriate Availability Zone 
    6. Security Type: Standard
    7. Image: RHEL 8.2 – Gen2 
    8. SizeSelect the below option according to the CMS Deployment Type:
      1. Large: standard_D16s_v3 (vcpu -16 Memory-64GiB)
      2. Small: standard_D8s_v3 (vcpu -8 Memory-32GiB)
    9. Authenticate Type: Select Password. Provide the username and password
    10. Enable SSH protocol to access the VM. Click Next: Disks
    11. Configure OS Disk type and Encryption type. Click Create and attach a new disk
    12. Configure Name, Source Type and Size. Click OK
    13. After Configuring disk, click Next: Networking
    14. Select the default values and click Management
    15. Click Tags and provide the tags for identification. Click Review + Create
  4. After validation, click Create to provision the VM
  5. After a successful VM creation, click Go to resource
  6. Copy the Public IP address and login to the machine using MobaXterm/CLI


Installation

  1. Log in to the two newly created machines using SSH and install Docker and Docker Compose using the commands below:
    sudo su
    subscription-manager register --username <username> --password <password> --auto-attach  #Register the machine with the Red Hat subscription to download dependencies
    yum update
    subscription-manager repos --enable=rhel-7-server-rpms --enable=rhel-7-server-extras-rpms --enable=rhel-7-server-optional-rpms
    sudo yum install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm 
    sudo yum install -y yum-utils device-mapper-persistent-data lvm2
    sudo yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo
    sudo yum install docker-ce 
    sudo systemctl enable --now docker.service
    sudo curl -L "https://github.com/docker/compose/releases/download/1.29.x/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
    sudo chmod +x /usr/local/bin/docker-compose
    mv /usr/local/bin/docker-compose /usr/bin/
    
  2. Verification: Execute the commands below to verify the Docker and Docker Compose versions:
    docker version
    docker-compose version
    

NOTE
To enable custom ports for network security, click Networking and add inbound port rule so that VM allows inbound traffic for specified ports.



Was this article helpful?