> For the complete documentation index, see [llms.txt](https://docs.hivel.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.hivel.ai/self-managed-hivel-deployment/virtual-private-cloud/azure/hivel-on-premises-deployment-guide-azure/deployment-methods/method-1-deployment-using-deploy.sh-script.md).

# Method 1: Deployment Using deploy.sh Script

On-Prem Deployment Guide (Azure)

### Deploy VM Services

**Goal:** bring up all primary services (UI, API Gateway, Auth, integrations, Redis) on VM.

**Prerequisites:** flyway-migration completed and .env switched to the application user (Database Migration); ECR access configured (ECR Access Configuration).

**On VM only:**

```
cd /opt/hivel-onprem
 
# Deploy all VM services
./deploy.sh --vm
```

**Or deploy a specific service:**&#x20;

{% hint style="info" %}
**Contact Hivel** [**support@hivel.ai**](mailto:support@hivel.ai) **for more info on deploying a specific service and list of services.**
{% endhint %}

**Expected result:** `./deploy.sh --status` on VM shows all VM services as Up.

**If it fails:** see Services not starting in [Troubleshooting](/self-managed-hivel-deployment/virtual-private-cloud/azure/hivel-on-premises-deployment-guide-azure/troubleshooting.md).

### Available deploy.sh Commands

```
# Deploy all services 
./deploy.sh --all
 
# Deploy VM services only
./deploy.sh --vm
 
# Deploy specific service
./deploy.sh --service <service-name>
 
# Check service status
./deploy.sh --status
 
# Check service health
./deploy.sh --health
 
# View logs
./deploy.sh --logs
./deploy.sh --logs <service-name>
 
# Start services
./deploy.sh --start
 
# Stop services
./deploy.sh --stop
 
# Restart services
./deploy.sh --restart
 
# Update services (pull latest images)
./deploy.sh --update
 
# List all services
./deploy.sh --list
 
# Show help
./deploy.sh --help

```

**Next step:** Log Rotation Setup.

{% columns %}
{% column %} <a href="/self-managed-hivel-deployment/virtual-private-cloud/azure/hivel-on-premises-deployment-guide-azure/deployment-methods.md" class="button primary" data-icon="backward">Deployment Methods</a>
{% endcolumn %}

{% column %}

{% endcolumn %}

{% column %} <a href="/self-managed-hivel-deployment/virtual-private-cloud/azure/hivel-on-premises-deployment-guide-azure/deployment-methods/method-2-deployment-using-docker-compose.md" class="button primary" data-icon="forward">Method 2: Docker Compose</a>
{% endcolumn %}
{% endcolumns %}
