VM-based Setup on Azure
- 26 Oct 2023
- 1 Minute to read
- Print
- DarkLight
- PDF
VM-based Setup on Azure
- Updated on 26 Oct 2023
- 1 Minute to read
- Print
- DarkLight
- PDF
Article summary
Did you find this summary helpful?
Thank you for your feedback
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:
- VM instance with:
- Docker
- Docker Compose
- 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
- Access the Azure Virtual machines console and click Virtual machines
- Navigate to Virtual machines > Create > Azure virtual machine
- Provide the required information:
- Subscription: Free Trial/pay-as-you-go
- Resource group: If there is no existing resource group, create a new one
- Virtual machine name: Custom name for the VM
- Region: Provide the Custom region
- Availability Zone: Select the appropriate Availability Zone
- Security Type: Standard
- Image: RHEL 8.2 – Gen2
- Size: Select the below option according to the CMS Deployment Type:
- Large: standard_D16s_v3 (vcpu -16 Memory-64GiB)
- Small: standard_D8s_v3 (vcpu -8 Memory-32GiB)
- Authenticate Type: Select Password. Provide the username and password
- Enable SSH protocol to access the VM. Click Next: Disks
- Configure OS Disk type and Encryption type. Click Create and attach a new disk
- Configure Name, Source Type and Size. Click OK
- After Configuring disk, click Next: Networking
- Select the default values and click Management
- Click Tags and provide the tags for identification. Click Review + Create
- After validation, click Create to provision the VM
- After a successful VM creation, click Go to resource
- Copy the Public IP address and login to the machine using MobaXterm/CLI
Installation
- 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/
- 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?