Deployment guide

Jellyfin

Overview

Jellyfin is a free-software, self-hosted media server (GPL-2.0) and an open alternative to Plex and Emby. It organises your movies, TV, music and photos and streams them to any device through a polished web UI and native apps, with no tracking, no subscriptions and no premium tier.

This SecureAnyCloud image installs a stable Jellyfin 10.x from the official Jellyfin APT repository. Jellyfin runs as a systemd service bound to loopback, behind an nginx reverse proxy on port 80. All Jellyfin state lives on a dedicated Azure data disk, and a small demo library means the UI shows content immediately. A unique administrator account is seeded on the first boot of every VM.

What you get:

  • Jellyfin (stable 10.x) installed from the official repo.jellyfin.org APT repository, running as jellyfin.service
  • nginx on :80 as a reverse proxy to the loopback Jellyfin backend (127.0.0.1:8096), with WebSocket upgrade headers
  • A per-VM admin administrator account (username admin) seeded on first boot and recorded in a root-only file
  • A dedicated 60 GiB Azure data disk at /var/lib/jellyfin holding config, metadata, cache, transcodes and the media library
  • A ready-to-play demo movie, so the library is populated out of the box
  • jellyfin.service and nginx.service as enabled, active systemd units
  • 24/7 SecureAnyCloud support

Prerequisites

You need an active Azure subscription, an SSH key pair, and a VNet with a subnet in the target region.

Standard_B2s (2 vCPU / 4 GiB RAM) is a good starting size. Step up to a size with more vCPUs if you expect concurrent transcoding.

Configure the network security group (NSG) to allow inbound 22/tcp from your management network and 80/tcp. Jellyfin serves plain HTTP on port 80, so for production terminate TLS in front of it with your own domain.

Step 1 - Deploy from the Azure Marketplace

Sign in to the Azure Portal, choose Create a resource, search the Marketplace for Jellyfin by SecureAnyCloud, and select Create.

On the Basics tab, pick your subscription, resource group, region and size. Under Administrator account, choose SSH public key and paste your key. Under Inbound port rules, allow SSH (22) and HTTP (80).

Review the dedicated data disk on the Disks tab, then select Review + create and Create.

Step 2 - Deploy from the Azure CLI

# Accept the Marketplace terms once per subscription (required before the first CLI deploy)
az vm image terms accept --urn sac1647283583153:jellyfin-ubuntu-24-04:default:latest
az vm create \
  --resource-group <your-rg> \
  --name jellyfin \
  --image sac1647283583153:jellyfin-ubuntu-24-04:default:latest \
  --size Standard_B2s \
  --admin-username azureuser \
  --ssh-key-values ~/.ssh/id_ed25519.pub \
  --vnet-name <your-vnet> --subnet <your-subnet> \
  --public-ip-sku Standard
az vm open-port --resource-group <your-rg> --name jellyfin --port 80 --priority 1010

Step 3 - Connect to your VM

ssh azureuser@<vm-public-ip>

Step 4 - Confirm the services are running

systemctl is-active jellyfin.service nginx.service

Both units report active. On first boot, Jellyfin runs its startup wizard automatically and seeds a per-VM administrator.

Step 5 - Retrieve your admin password

The admin account password is generated uniquely on the first boot of your VM and written to a root-only file. Read it with sudo:

sudo cat /root/jellyfin-credentials.txt

The file contains JELLYFIN_URL, JELLYFIN_ADMIN_USER (admin) and JELLYFIN_ADMIN_PASSWORD. Store the password somewhere safe.

Step 6 - Confirm the health endpoint

Jellyfin exposes an unauthenticated health endpoint, proxied by nginx on :80, for load balancers and probes:

curl -s http://localhost/health; echo

The endpoint returns Healthy. You can also read the public server info, which reports the installed version:

curl -s http://localhost:8096/System/Info/Public

Step 7 - Sign in to the web UI

Browse to http://<vm-public-ip>/ and sign in as user admin with the password from Step 5.

After you sign in, the home screen opens. The bundled Demo Movies library appears under My Media, and the demo clip appears under Recently Added.

Open the Demo Movies library to browse its contents. The preloaded clip confirms that media playback works end to end.

Step 8 - Explore the administration dashboard

From the user menu, choose Administration -> Dashboard. The dashboard shows the server name and version, your libraries, connected devices and a live activity log.

Step 9 - Verify authentication from the command line (optional)

Jellyfin's authentication endpoint rejects a wrong password with HTTP 401. It accepts the per-VM admin password with HTTP 200 and returns an AccessToken.

Use the JELLYFIN_ADMIN_PASSWORD from Step 5 and substitute your own password for <JELLYFIN_ADMIN_PASSWORD>:

curl -s -X POST -H 'Content-Type: application/json' \
  -H 'Authorization: MediaBrowser Client="sac", Device="cli", DeviceId="cli", Version="1.0.0"' \
  -d '{"Username":"admin","Pw":"<JELLYFIN_ADMIN_PASSWORD>"}' \
  http://localhost:8096/Users/AuthenticateByName

A correct password returns a JSON body containing "AccessToken". A wrong password returns HTTP 401.

Step 10 - Confirm data lives on the dedicated disk

All Jellyfin state is stored on the dedicated Azure data disk: configuration, metadata, cache, transcodes and the media library. The state therefore survives OS changes, and you can resize the disk independently. Confirm the mount:

findmnt /var/lib/jellyfin

The mount is backed by a separate Azure data disk that is captured into the image and re-provisioned on every VM. Your media lives under /var/lib/jellyfin/media.

Adding your own media

Copy your files onto the data disk under /var/lib/jellyfin/media, for example into /var/lib/jellyfin/media/movies and /var/lib/jellyfin/media/shows. Follow Jellyfin's movie and show naming conventions.

Then open Administration -> Dashboard -> Libraries and add a library, or scan an existing one, that points at that folder. Jellyfin fetches artwork and metadata automatically and streams to the web player, mobile apps and TV apps.

Maintenance

  • Admin users: add or manage users from Administration -> Dashboard -> Users.
  • Libraries: manage and scan libraries from Administration -> Dashboard -> Libraries. Media lives under /var/lib/jellyfin/media.
  • Data: configuration, metadata, cache, transcodes and media all live under /var/lib/jellyfin on the dedicated data disk. Snapshot the disk to back Jellyfin up.
  • TLS: Jellyfin serves plain HTTP on port 80. Before you run it in production, front it with TLS (for example with certbot) and your own domain.
  • Upgrades: sudo apt-get update && sudo apt-get install --only-upgrade jellyfin pulls newer Jellyfin releases from the official repository.
  • Security patches: unattended-upgrades remains enabled, so the OS keeps receiving security updates automatically.

Support

SecureAnyCloud provides 24/7 expert support for this image. Contact sales@secureanycloud.com for help with your deployment.

Deploy on Azure

Launch Jellyfin on Ubuntu 24.04 LTS on Azure with 24/7 support from SecureAnyCloud.

View this image

Need Help?

Our support team is available 24/7.

sales@secureanycloud.com

Deploy on Azure