Azure Infrastructure Setup and CLI Configuration
Provision a Virtual Machine in Azure Portal
Go to the Azure Portal and create a new Virtual Machine with these specifications:
Image: Ubuntu Server 22.04 LTS
VM Size: Standard_D4s_v5 (4 vCPU, 16GB RAM)
Storage: 50GB Premium SSD managed disk
Network Security Group: Allow inbound traffic on ports 22, 80, 443, 3000, 4317 (required only while integrating Claude Code) and 5432 (Database access from application server only, no public or external access permitted).
After creation, note the public and private IP addresses
Install Prerequisites on the VM
Connect to your VM via SSH and run the commands below. This installs Docker, Docker Compose, Azure CLI, and AWS CLI.
On the VM, run:
Verify: Each --version command prints a version string with no error; docker ps runs without a permissions error after logging back in.
If it fails: If docker ps still asks for sudo after logging back in, run newgrp docker or reboot the VM. The group membership change didn't take effect in your current shell session.
Next step: configure the AWS CLI below, then continue to ECR Access Configuration.
Configure AWS CLI on the VM
Hivel's Docker images and installer package are hosted on AWS (ECR and S3), even though your infrastructure runs on Azure. AWS CLI must be configured to authenticate and pull container images.
On the VM, run:
Enter these values when prompted:
AWS Access Key ID: [Hivel-provided access key]
AWS Secret Access Key: [Hivel-provided secret key]
Default region name:
ap-south-1Default output format:
json
Verify AWS CLI Configuration:
Expected result: A JSON object with Account, UserId, and Arn fields appears with no error.
Troubleshooting: If you see "Unable to locate credentials," re-run aws configure and verify with cat ~/.aws/credentials.
Next step: Your VM is now provisioned and set up. Head to Prerequisites and Virtual Machine Requirements to confirm it's installed correctly, then continue with the rest of the deployment process.
Last updated