JFrog Artifactory Self-Hosted
Self-hosted JFrog Artifactory for binary repositories, release promotion, and software supply chain distribution.
Medium — organization registry with concurrent CI/CD pulls, Trivy scanning, and 5 TB OCI blobs
Monthly cost
$1,340.11
Annual cost
$16,081/year
| Compute | $1,173.11 |
| Storage | $167.00 |
| Other | $0.00 |
Saves $356.82/mo (27%) across Standard_D8ps_v6, Standard_D4ps_v6, Standard_E4ps_v6, Standard_E2ps_v6.
| Role | Instance | vCPU | GB RAM | Storage |
|---|---|---|---|---|
| Harbor Core Jobservice | 2 × Standard_D8s_v6 | 8 | 32 | 200 GB ssd |
| Trivy Scanner | 2 × Standard_D4s_v6 | 4 | 16 | 150 GB ssd |
| Database | 1 × Standard_E4s_v6 | 4 | 32 | 250 GB ssd |
| Cache | 1 × Standard_E2s_v6 | 2 | 16 | 50 GB ssd |
| Object Storage | 1 × object-bucket | — | — | 5 TB object |
This medium tier sizing fits an organization registry handling concurrent CI/CD pulls, Trivy scanning, and five terabytes of OCI blobs. The primary cost driver is the compute line item at eleven hundred seventy-three dollars and eleven cents per month. Standard D8s instances power the harbor core services. High availability is disabled, meaning a single zone failure causes downtime for registry operations.
Share the current URL or copy the Azure Terraform / OpenTofu baseline.
# Compatible with Terraform >= 1.6 and OpenTofu >= 1.6
terraform {
required_version = ">= 1.6.0"
required_providers {
azurerm = {
source = "hashicorp/azurerm"
version = "~> 4.0"
}
}
}
variable "ssh_public_key" {
description = "SSH public key installed on Linux virtual machines."
type = string
default = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIG5vplaceholderreplacebeforeapply00000000000 azureuser@example"
}
provider "azurerm" {
features {}
}
resource "azurerm_resource_group" "workload" {
name = "harbor-westus3-rg"
location = "westus3"
}
resource "azurerm_virtual_network" "workload" {
name = "harbor-vnet"
address_space = ["10.42.0.0/16"]
location = azurerm_resource_group.workload.location
resource_group_name = azurerm_resource_group.workload.name
}
resource "azurerm_subnet" "workload" {
name = "workload-internal"
resource_group_name = azurerm_resource_group.workload.name
virtual_network_name = azurerm_virtual_network.workload.name
address_prefixes = ["10.42.1.0/24"]
}
# Generated for Azure (westus3) from the current estimate state.
resource "azurerm_network_interface" "harbor_core_jobservice_1_nic" {
count = 2
name = "harbor-harbor-core-jobservice-1-nic-${count.index + 1}"
location = azurerm_resource_group.workload.location
resource_group_name = azurerm_resource_group.workload.name
ip_configuration {
name = "internal"
subnet_id = azurerm_subnet.workload.id
private_ip_address_allocation = "Dynamic"
}
}
resource "azurerm_linux_virtual_machine" "harbor_core_jobservice_1" {
count = 2
name = "harbor-harbor-core-jobservice-1-${count.index + 1}"
location = azurerm_resource_group.workload.location
resource_group_name = azurerm_resource_group.workload.name
size = "Standard_D8s_v6"
zone = tostring((count.index % 3) + 1)
admin_username = "azureuser"
network_interface_ids = [azurerm_network_interface.harbor_core_jobservice_1_nic[count.index].id]
admin_ssh_key {
username = "azureuser"
public_key = var.ssh_public_key
}
os_disk {
caching = "ReadWrite"
storage_account_type = "StandardSSD_LRS"
disk_size_gb = 50
}
source_image_reference {
publisher = "Debian"
offer = "debian-12"
sku = "12-gen2"
version = "latest"
}
tags = {
app = "harbor"
role = "harbor-core-jobservice"
}
}
resource "azurerm_managed_disk" "harbor_core_jobservice_1_data" {
count = 2
name = "harbor-harbor-core-jobservice-1-data-${count.index + 1}"
location = azurerm_resource_group.workload.location
resource_group_name = azurerm_resource_group.workload.name
storage_account_type = "StandardSSD_LRS"
create_option = "Empty"
disk_size_gb = 200
zone = tostring((count.index % 3) + 1)
}
resource "azurerm_virtual_machine_data_disk_attachment" "harbor_core_jobservice_1_attach" {
count = 2
managed_disk_id = azurerm_managed_disk.harbor_core_jobservice_1_data[count.index].id
virtual_machine_id = azurerm_linux_virtual_machine.harbor_core_jobservice_1[count.index].id
lun = 0
caching = "None"
}
resource "azurerm_network_interface" "trivy_scanner_2_nic" {
count = 2
name = "harbor-trivy-scanner-2-nic-${count.index + 1}"
location = azurerm_resource_group.workload.location
resource_group_name = azurerm_resource_group.workload.name
ip_configuration {
name = "internal"
subnet_id = azurerm_subnet.workload.id
private_ip_address_allocation = "Dynamic"
}
}
resource "azurerm_linux_virtual_machine" "trivy_scanner_2" {
count = 2
name = "harbor-trivy-scanner-2-${count.index + 1}"
location = azurerm_resource_group.workload.location
resource_group_name = azurerm_resource_group.workload.name
size = "Standard_D4s_v6"
zone = tostring((count.index % 3) + 1)
admin_username = "azureuser"
network_interface_ids = [azurerm_network_interface.trivy_scanner_2_nic[count.index].id]
admin_ssh_key {
username = "azureuser"
public_key = var.ssh_public_key
}
os_disk {
caching = "ReadWrite"
storage_account_type = "StandardSSD_LRS"
disk_size_gb = 50
}
source_image_reference {
publisher = "Debian"
offer = "debian-12"
sku = "12-gen2"
version = "latest"
}
tags = {
app = "harbor"
role = "trivy-scanner"
}
}
resource "azurerm_managed_disk" "trivy_scanner_2_data" {
count = 2
name = "harbor-trivy-scanner-2-data-${count.index + 1}"
location = azurerm_resource_group.workload.location
resource_group_name = azurerm_resource_group.workload.name
storage_account_type = "StandardSSD_LRS"
create_option = "Empty"
disk_size_gb = 150
zone = tostring((count.index % 3) + 1)
}
resource "azurerm_virtual_machine_data_disk_attachment" "trivy_scanner_2_attach" {
count = 2
managed_disk_id = azurerm_managed_disk.trivy_scanner_2_data[count.index].id
virtual_machine_id = azurerm_linux_virtual_machine.trivy_scanner_2[count.index].id
lun = 0
caching = "None"
}
resource "azurerm_network_interface" "database_3_nic" {
count = 1
name = "harbor-database-3-nic-${count.index + 1}"
location = azurerm_resource_group.workload.location
resource_group_name = azurerm_resource_group.workload.name
ip_configuration {
name = "internal"
subnet_id = azurerm_subnet.workload.id
private_ip_address_allocation = "Dynamic"
}
}
resource "azurerm_linux_virtual_machine" "database_3" {
count = 1
name = "harbor-database-3-${count.index + 1}"
location = azurerm_resource_group.workload.location
resource_group_name = azurerm_resource_group.workload.name
size = "Standard_E4s_v6"
zone = tostring((count.index % 3) + 1)
admin_username = "azureuser"
network_interface_ids = [azurerm_network_interface.database_3_nic[count.index].id]
admin_ssh_key {
username = "azureuser"
public_key = var.ssh_public_key
}
os_disk {
caching = "ReadWrite"
storage_account_type = "StandardSSD_LRS"
disk_size_gb = 50
}
source_image_reference {
publisher = "Debian"
offer = "debian-12"
sku = "12-gen2"
version = "latest"
}
tags = {
app = "harbor"
role = "database"
}
}
resource "azurerm_managed_disk" "database_3_data" {
count = 1
name = "harbor-database-3-data-${count.index + 1}"
location = azurerm_resource_group.workload.location
resource_group_name = azurerm_resource_group.workload.name
storage_account_type = "StandardSSD_LRS"
create_option = "Empty"
disk_size_gb = 250
zone = tostring((count.index % 3) + 1)
}
resource "azurerm_virtual_machine_data_disk_attachment" "database_3_attach" {
count = 1
managed_disk_id = azurerm_managed_disk.database_3_data[count.index].id
virtual_machine_id = azurerm_linux_virtual_machine.database_3[count.index].id
lun = 0
caching = "None"
}
resource "azurerm_network_interface" "cache_4_nic" {
count = 1
name = "harbor-cache-4-nic-${count.index + 1}"
location = azurerm_resource_group.workload.location
resource_group_name = azurerm_resource_group.workload.name
ip_configuration {
name = "internal"
subnet_id = azurerm_subnet.workload.id
private_ip_address_allocation = "Dynamic"
}
}
resource "azurerm_linux_virtual_machine" "cache_4" {
count = 1
name = "harbor-cache-4-${count.index + 1}"
location = azurerm_resource_group.workload.location
resource_group_name = azurerm_resource_group.workload.name
size = "Standard_E2s_v6"
zone = tostring((count.index % 3) + 1)
admin_username = "azureuser"
network_interface_ids = [azurerm_network_interface.cache_4_nic[count.index].id]
admin_ssh_key {
username = "azureuser"
public_key = var.ssh_public_key
}
os_disk {
caching = "ReadWrite"
storage_account_type = "StandardSSD_LRS"
disk_size_gb = 50
}
source_image_reference {
publisher = "Debian"
offer = "debian-12"
sku = "12-gen2"
version = "latest"
}
tags = {
app = "harbor"
role = "cache"
}
}
resource "azurerm_managed_disk" "cache_4_data" {
count = 1
name = "harbor-cache-4-data-${count.index + 1}"
location = azurerm_resource_group.workload.location
resource_group_name = azurerm_resource_group.workload.name
storage_account_type = "StandardSSD_LRS"
create_option = "Empty"
disk_size_gb = 50
zone = tostring((count.index % 3) + 1)
}
resource "azurerm_virtual_machine_data_disk_attachment" "cache_4_attach" {
count = 1
managed_disk_id = azurerm_managed_disk.cache_4_data[count.index].id
virtual_machine_id = azurerm_linux_virtual_machine.cache_4[count.index].id
lun = 0
caching = "None"
}
resource "azurerm_storage_account" "object_storage_5" {
count = 1
name = "harborobj5${count.index + 1}"
resource_group_name = azurerm_resource_group.workload.name
location = azurerm_resource_group.workload.location
account_tier = "Standard"
account_replication_type = "LRS"
allow_nested_items_to_be_public = false
tags = {
app = "harbor"
role = "object-storage"
estimated_gb = "5000"
}
}
resource "azurerm_storage_container" "object_storage_5_blobs" {
count = 1
name = "object-storage-blobs"
storage_account_id = azurerm_storage_account.object_storage_5[count.index].id
container_access_type = "private"
}
Reference architecture: Harbor Registry for decoupled-ha-ready, version Harbor 2.12+ installation prerequisites & HA architecture, retrieved November 11, 2026.
https://goharbor.io/docs/latest/install-config/installation-prereqs/
Pricing: Azure pricing snapshot, retrieved November 22, 2026.
Commercial pricing only. GovCloud, sovereign cloud, and discounts beyond those shown are not modelled.
Based on Harbor hardware prerequisites and HA Helm architecture separating Harbor Core/Registry, Trivy scanners, PostgreSQL, Valkey/Redis, and cloud object storage.
Estimate excludes cross-region replication egress, CDN layer caching, and P2P Dragonfly/Kraken node agents.
Self-hosted JFrog Artifactory for binary repositories, release promotion, and software supply chain distribution.
Self-managed Sonatype Nexus Repository for package hosting, caching, and binary distribution across development pipelines.
Self-managed Confluent Platform 8.x (Apache Kafka 4.x KRaft) for durable event streaming, schema governance, and Connect pipelines.