CloudEstimate

Size GitLab Self-Managed on Azure

Medium — 2,000 to 5,000 users (100 RPS)

Monthly cost

$2,822.61

Annual cost

$33,871/year

Line-item breakdown

Compute $2,198.76
Storage $623.85
Other $0.00
Arm64 option (Azure Cobalt 100 (Dv6/Ev6 Arm)) $2,293.36/mo

Saves $529.25/mo (19%) across Standard_D8plds_v6, Standard_D4ps_v6, Standard_D8ps_v6, Standard_E8ps_v6.

Components provisioned

Role Instance vCPU GB RAM Storage
Webservice 3 × Standard_D8ls_v6 8 16 100 GB ssd
Sidekiq 2 × Standard_D4s_v6 4 16 100 GB ssd
Gitaly 2 × Standard_D8s_v6 8 32 2 TB nvme
Database 1 × Standard_E8s_v6 8 64 1 TB ssd
Cache 1 × Standard_D4s_v6 4 16 50 GB ssd
Object Storage 1 × object-bucket — — 1.5 TB object

Why this sizing

This Azure architecture in westus3 supports the GitLab 5k-users medium tier for two to five thousand users at one hundred requests per second without high availability. Compute is the primary cost driver at two thousand one hundred ninety-eight dollars and seventy-six cents monthly. Gitaly instances utilize two thousand gigabytes of NVMe storage, while object storage consumes fifteen hundred gigabytes.

Export

Share the current URL or copy the Azure Terraform / OpenTofu baseline.

Open generic Azure calculator
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     = "gitlab-westus3-rg"
  location = "westus3"
}

resource "azurerm_virtual_network" "workload" {
  name                = "gitlab-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" "webservice_1_nic" {
  count               = 3
  name                = "gitlab-webservice-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" "webservice_1" {
  count                 = 3
  name                  = "gitlab-webservice-1-${count.index + 1}"
  location              = azurerm_resource_group.workload.location
  resource_group_name   = azurerm_resource_group.workload.name
  size                  = "Standard_D8ls_v6"
  zone                  = tostring((count.index % 3) + 1)
  admin_username        = "azureuser"
  network_interface_ids = [azurerm_network_interface.webservice_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  = "gitlab"
    role = "webservice"
  }
}

resource "azurerm_managed_disk" "webservice_1_data" {
  count                = 3
  name                 = "gitlab-webservice-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         = 100
  zone                 = tostring((count.index % 3) + 1)
}

resource "azurerm_virtual_machine_data_disk_attachment" "webservice_1_attach" {
  count              = 3
  managed_disk_id    = azurerm_managed_disk.webservice_1_data[count.index].id
  virtual_machine_id = azurerm_linux_virtual_machine.webservice_1[count.index].id
  lun                = 0
  caching            = "None"
}

resource "azurerm_network_interface" "sidekiq_2_nic" {
  count               = 2
  name                = "gitlab-sidekiq-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" "sidekiq_2" {
  count                 = 2
  name                  = "gitlab-sidekiq-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.sidekiq_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  = "gitlab"
    role = "sidekiq"
  }
}

resource "azurerm_managed_disk" "sidekiq_2_data" {
  count                = 2
  name                 = "gitlab-sidekiq-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         = 100
  zone                 = tostring((count.index % 3) + 1)
}

resource "azurerm_virtual_machine_data_disk_attachment" "sidekiq_2_attach" {
  count              = 2
  managed_disk_id    = azurerm_managed_disk.sidekiq_2_data[count.index].id
  virtual_machine_id = azurerm_linux_virtual_machine.sidekiq_2[count.index].id
  lun                = 0
  caching            = "None"
}

resource "azurerm_network_interface" "gitaly_3_nic" {
  count               = 2
  name                = "gitlab-gitaly-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" "gitaly_3" {
  count                 = 2
  name                  = "gitlab-gitaly-3-${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.gitaly_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  = "gitlab"
    role = "gitaly"
  }
}

resource "azurerm_managed_disk" "gitaly_3_data" {
  count                = 2
  name                 = "gitlab-gitaly-3-data-${count.index + 1}"
  location             = azurerm_resource_group.workload.location
  resource_group_name  = azurerm_resource_group.workload.name
  storage_account_type = "Premium_LRS"
  create_option        = "Empty"
  disk_size_gb         = 2000
  zone                 = tostring((count.index % 3) + 1)
}

resource "azurerm_virtual_machine_data_disk_attachment" "gitaly_3_attach" {
  count              = 2
  managed_disk_id    = azurerm_managed_disk.gitaly_3_data[count.index].id
  virtual_machine_id = azurerm_linux_virtual_machine.gitaly_3[count.index].id
  lun                = 0
  caching            = "None"
}

resource "azurerm_network_interface" "database_4_nic" {
  count               = 1
  name                = "gitlab-database-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" "database_4" {
  count                 = 1
  name                  = "gitlab-database-4-${count.index + 1}"
  location              = azurerm_resource_group.workload.location
  resource_group_name   = azurerm_resource_group.workload.name
  size                  = "Standard_E8s_v6"
  zone                  = tostring((count.index % 3) + 1)
  admin_username        = "azureuser"
  network_interface_ids = [azurerm_network_interface.database_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  = "gitlab"
    role = "database"
  }
}

resource "azurerm_managed_disk" "database_4_data" {
  count                = 1
  name                 = "gitlab-database-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         = 1000
  zone                 = tostring((count.index % 3) + 1)
}

resource "azurerm_virtual_machine_data_disk_attachment" "database_4_attach" {
  count              = 1
  managed_disk_id    = azurerm_managed_disk.database_4_data[count.index].id
  virtual_machine_id = azurerm_linux_virtual_machine.database_4[count.index].id
  lun                = 0
  caching            = "None"
}

resource "azurerm_network_interface" "cache_5_nic" {
  count               = 1
  name                = "gitlab-cache-5-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_5" {
  count                 = 1
  name                  = "gitlab-cache-5-${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.cache_5_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  = "gitlab"
    role = "cache"
  }
}

resource "azurerm_managed_disk" "cache_5_data" {
  count                = 1
  name                 = "gitlab-cache-5-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_5_attach" {
  count              = 1
  managed_disk_id    = azurerm_managed_disk.cache_5_data[count.index].id
  virtual_machine_id = azurerm_linux_virtual_machine.cache_5[count.index].id
  lun                = 0
  caching            = "None"
}

resource "azurerm_storage_account" "object_storage_6" {
  count                           = 1
  name                            = "gitlabobj6${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          = "gitlab"
    role         = "object-storage"
    estimated_gb = "1500"
  }
}

resource "azurerm_storage_container" "object_storage_6_blobs" {
  count                 = 1
  name                  = "object-storage-blobs"
  storage_account_id    = azurerm_storage_account.object_storage_6[count.index].id
  container_access_type = "private"
}

Related views

Sources

Reference architecture: GitLab Self-Managed for 5k-users, version GitLab 18.x Reference Architectures, retrieved November 11, 2026.

https://docs.gitlab.com/administration/reference_architectures/

Pricing: Azure pricing snapshot, retrieved November 29, 2026.

Commercial pricing only. GovCloud, sovereign cloud, and discounts beyond those shown are not modelled.

Not included in this estimate

  • Vendor licensing and support
  • Professional services
  • Network egress
  • Compliance controls
  • Backup storage
  • Monitoring

Based on GitLab 18.x published reference architectures (1K through 25K users) normalized to VM-backed Linux Package / Hybrid footprints.

Estimate excludes GitLab Ultimate/Premium licensing, CI/CD runner pools, OpenSearch Advanced Search nodes, GitLab Duo AI add-ons, and backup storage.

Related workloads on Azure