IaC Bazaar
AzureLive-tested

Jenkins Controller on Azure (VM)

Self-hosted Jenkins on a hardened Azure Linux VM - self-contained vnet/subnet/NSG, SSH-key auth only, managed-disk encryption, Jenkins installed via cloud-init.

terraformAzure#azure
azure-jenkinsterraform v1.7

Verification

Live-tested

Really deployed to a cloud sandbox, verified against its outputs and assertions, then destroyed - with the teardown confirmed.

Conformance

  • Static validation (fmt · validate · tflint)
  • Security scan clean (Checkov)
  • Plan test superseded by live test

Provenance

Functional

  • Live-tested - applied, verified, destroyed

Last verified 2026-06-29 · how we verify

Verify this download

cosign · sha-256

Don't take our word for it. Every release is signed with cosign - check the bytes against our pinned public key before you trust them.

# 1. Our pinned public key - fetch once, trust out-of-band
curl -O https://www.iac-bazaar.com/cosign.pub

# 2. This module's Sigstore bundle
curl -o azure-jenkins-1.0.0.sigstore.json \
  https://www.iac-bazaar.com/api/artifacts/azure-jenkins/signature

# 3. Verify the tarball you downloaded
cosign verify-blob \
  --key cosign.pub \
  --bundle azure-jenkins-1.0.0.sigstore.json \
  azure-jenkins-1.0.0.tar.gz
# → Verified OK

# 4. (optional) confirm the checksum too
echo "bc775f895a3a828474e33a3a499d04cb67d1cad9866dc85a662de1b711b458f3  azure-jenkins-1.0.0.tar.gz" | sha256sum -c

Use it from the registry

terraform · opentofu
module "jenkins" {
  source  = "www.iac-bazaar.com/iac-bazaar/azure-jenkins/azure"
  version = "1.0.0"
}

Paid module — needs a purchase (or a subscription that covers it) plus a registry token from /account/tokens. Full setup: registry docs.

Inputs & outputs

Create a free account to read this module's contract

The declared contract — every input name, type, default and description, plus every output — is shown to signed-in accounts, not to anonymous visitors.

A free account sees the contract of every Free module. This one is Premium, so its contract unlocks when you buy it.

Documentation

azure-jenkins

Status: static-validated, live-test pending. Ships under live-test quarantine until promoted by the Azure live lane. Schema is validated against the azurerm v4 provider docs. Jenkins installs asynchronously via cloud-init after the VM boots — the apply completes before Jenkins is reachable.

A fully self-contained Jenkins controller on a single Azure Linux VM. One tofu apply creates everything — resource group, virtual network, subnet, NSG, NIC, an optional public IP and the VM — and bootstraps Jenkins via cloud-init. tofu destroy removes all of it (including the resource group). Works with Terraform and OpenTofu (>= 1.6), azurerm provider >= 4.0, < 5.0.

What it provisions

  • azurerm_resource_group (created and destroyed by this module)
  • azurerm_virtual_network + azurerm_subnet
  • azurerm_network_security_group — SSH (22) and the Jenkins UI (jenkins_port) allowed only from allowed_source_cidr, plus an explicit DenyAllInbound
  • azurerm_network_interface (+ NSG association at both the NIC and the subnet)
  • optional azurerm_public_ip (Standard, static; create_public_ip)
  • azurerm_linux_virtual_machine (SSH-key-only, system-assigned identity, cloud-init Jenkins bootstrap)

Secure defaults

  • SSH-key auth onlydisable_password_authentication = true; a valid admin_ssh_public_key is required.
  • No open ingress by defaultallowed_source_cidr is required (no default) and gates both SSH and the Jenkins UI; a catch-all rule denies everything else.
  • System-assigned managed identity for least-privilege role grants.
  • OS disk encrypted at rest with platform-managed keys (always on in Azure).
  • VM extension operations disabled (allow_extension_operations = false) — Jenkins bootstraps via cloud-init, so the extension channel is unused attack surface. Set allow_extension_operations = true if you attach extension-delivered agents (Azure Monitor, AAD SSH login, ...). Upgrade note: before this hardening the provider default (true) applied; existing deployments that rely on extensions must now opt in.
  • Optional Trusted Launch (Secure Boot + vTPM) for capable VM sizes (secure_boot_enabled / vtpm_enabled, off by default so the cheapest B1s size always applies).

License

Commercial — LicenseRef-IaCBazaar-Commercial

Usage code & full reference unlock after purchase

The complete copy-paste usage, the full input/output reference, and operational notes ship with your licence - shown here and bundled in the download.

  • Usage
  • Inputs
  • Outputs
  • Requirements & notes

Related modules